small refactor - removing includes no longer needed
This commit is contained in:
parent
cbd7d00039
commit
9e0102e494
|
@ -1,5 +1,4 @@
|
||||||
class AnalyticsCommitEntity < CommitEntity
|
class AnalyticsCommitEntity < CommitEntity
|
||||||
include RequestAwareEntity
|
|
||||||
include EntityDateHelper
|
include EntityDateHelper
|
||||||
|
|
||||||
expose :short_id, as: :short_sha
|
expose :short_id, as: :short_sha
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
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
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue