Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
9e0102e4
Commit
9e0102e4
authored
Nov 16, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small refactor - removing includes no longer needed
parent
cbd7d000
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
4 deletions
+1
-4
app/serializers/analytics_commit_entity.rb
app/serializers/analytics_commit_entity.rb
+0
-1
lib/gitlab/cycle_analytics/events_fetcher.rb
lib/gitlab/cycle_analytics/events_fetcher.rb
+0
-2
spec/serializers/entity_date_helper_spec.rb
spec/serializers/entity_date_helper_spec.rb
+1
-1
No files found.
app/serializers/analytics_commit_entity.rb
View file @
9e0102e4
class
AnalyticsCommitEntity
<
CommitEntity
include
RequestAwareEntity
include
EntityDateHelper
expose
:short_id
,
as: :short_sha
...
...
lib/gitlab/cycle_analytics/events_fetcher.rb
View file @
9e0102e4
module
Gitlab
module
CycleAnalytics
class
EventsFetcher
include
MetricsFetcher
def
initialize
(
project
:,
options
:)
@query
=
EventsQuery
.
new
(
project:
project
,
options:
options
)
end
...
...
spec/serializers/entity_date_helper_spec.rb
View file @
9e0102e4
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment