Commit 9e0102e4 authored by James Lopez's avatar James Lopez

small refactor - removing includes no longer needed

parent cbd7d000
class AnalyticsCommitEntity < CommitEntity class AnalyticsCommitEntity < CommitEntity
include RequestAwareEntity
include EntityDateHelper include EntityDateHelper
expose :short_id, as: :short_sha expose :short_id, as: :short_sha
......
module Gitlab module Gitlab
module CycleAnalytics module CycleAnalytics
class EventsFetcher class EventsFetcher
include MetricsFetcher
def initialize(project:, options:) def initialize(project:, options:)
@query = EventsQuery.new(project: project, options: options) @query = EventsQuery.new(project: project, options: options)
end end
......
...@@ -42,4 +42,4 @@ describe EntityDateHelper do ...@@ -42,4 +42,4 @@ describe EntityDateHelper do
it 'converts 986760 seconds' do it 'converts 986760 seconds' do
expect(date_helper_class.distance_of_time_as_hash(986760)).to eq(days: 11, hours: 10, mins: 6) expect(date_helper_class.distance_of_time_as_hash(986760)).to eq(days: 11, hours: 10, mins: 6)
end end
end end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment