diff options
author | James Lopez <james@jameslopez.es> | 2016-11-16 16:09:24 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 08:22:59 +0100 |
commit | 9e0102e494d27bbb7fcd4ae8f2b0c0bc4ce3e7ce (patch) | |
tree | e384b0007fe42362faf0b04efb5472185216a2a4 | |
parent | cbd7d000395ff60fe3726e67ec351bd4d44582ec (diff) | |
download | gitlab-ce-9e0102e494d27bbb7fcd4ae8f2b0c0bc4ce3e7ce.tar.gz |
small refactor - removing includes no longer needed
-rw-r--r-- | app/serializers/analytics_commit_entity.rb | 1 | ||||
-rw-r--r-- | lib/gitlab/cycle_analytics/events_fetcher.rb | 2 | ||||
-rw-r--r-- | spec/serializers/entity_date_helper_spec.rb | 2 |
3 files changed, 1 insertions, 4 deletions
diff --git a/app/serializers/analytics_commit_entity.rb b/app/serializers/analytics_commit_entity.rb index 2b363abbbd2..402cecbfd08 100644 --- a/app/serializers/analytics_commit_entity.rb +++ b/app/serializers/analytics_commit_entity.rb @@ -1,5 +1,4 @@ class AnalyticsCommitEntity < CommitEntity - include RequestAwareEntity include EntityDateHelper expose :short_id, as: :short_sha diff --git a/lib/gitlab/cycle_analytics/events_fetcher.rb b/lib/gitlab/cycle_analytics/events_fetcher.rb index 714afb88833..4c1d19774f5 100644 --- a/lib/gitlab/cycle_analytics/events_fetcher.rb +++ b/lib/gitlab/cycle_analytics/events_fetcher.rb @@ -1,8 +1,6 @@ module Gitlab module CycleAnalytics class EventsFetcher - include MetricsFetcher - def initialize(project:, options:) @query = EventsQuery.new(project: project, options: options) end diff --git a/spec/serializers/entity_date_helper_spec.rb b/spec/serializers/entity_date_helper_spec.rb index 90e57833de7..b9cc2f64831 100644 --- a/spec/serializers/entity_date_helper_spec.rb +++ b/spec/serializers/entity_date_helper_spec.rb @@ -42,4 +42,4 @@ describe EntityDateHelper do it 'converts 986760 seconds' do expect(date_helper_class.distance_of_time_as_hash(986760)).to eq(days: 11, hours: 10, mins: 6) end -end
\ No newline at end of file +end |