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
Boxiang Sun
gitlab-ce
Commits
6b3f52b4
Commit
6b3f52b4
authored
Jan 27, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cycle analytics code after improving serializers
parent
3cb37c03
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
lib/gitlab/cycle_analytics/base_stage.rb
lib/gitlab/cycle_analytics/base_stage.rb
+1
-1
lib/gitlab/cycle_analytics/code_event_fetcher.rb
lib/gitlab/cycle_analytics/code_event_fetcher.rb
+1
-1
lib/gitlab/cycle_analytics/issue_event_fetcher.rb
lib/gitlab/cycle_analytics/issue_event_fetcher.rb
+1
-1
lib/gitlab/cycle_analytics/plan_event_fetcher.rb
lib/gitlab/cycle_analytics/plan_event_fetcher.rb
+1
-1
lib/gitlab/cycle_analytics/review_event_fetcher.rb
lib/gitlab/cycle_analytics/review_event_fetcher.rb
+1
-1
lib/gitlab/cycle_analytics/stage_summary.rb
lib/gitlab/cycle_analytics/stage_summary.rb
+1
-1
lib/gitlab/cycle_analytics/staging_event_fetcher.rb
lib/gitlab/cycle_analytics/staging_event_fetcher.rb
+1
-1
No files found.
lib/gitlab/cycle_analytics/base_stage.rb
View file @
6b3f52b4
...
...
@@ -13,7 +13,7 @@ module Gitlab
end
def
as_json
AnalyticsStageSerializer
.
new
.
represent
(
self
)
.
as_json
AnalyticsStageSerializer
.
new
.
represent
(
self
)
end
def
title
...
...
lib/gitlab/cycle_analytics/code_event_fetcher.rb
View file @
6b3f52b4
...
...
@@ -18,7 +18,7 @@ module Gitlab
private
def
serialize
(
event
)
AnalyticsMergeRequestSerializer
.
new
(
project:
@project
).
represent
(
event
)
.
as_json
AnalyticsMergeRequestSerializer
.
new
(
project:
@project
).
represent
(
event
)
end
end
end
...
...
lib/gitlab/cycle_analytics/issue_event_fetcher.rb
View file @
6b3f52b4
...
...
@@ -16,7 +16,7 @@ module Gitlab
private
def
serialize
(
event
)
AnalyticsIssueSerializer
.
new
(
project:
@project
).
represent
(
event
)
.
as_json
AnalyticsIssueSerializer
.
new
(
project:
@project
).
represent
(
event
)
end
end
end
...
...
lib/gitlab/cycle_analytics/plan_event_fetcher.rb
View file @
6b3f52b4
...
...
@@ -37,7 +37,7 @@ module Gitlab
def
serialize_commit
(
event
,
st_commit
,
query
)
commit
=
Commit
.
new
(
Gitlab
::
Git
::
Commit
.
new
(
st_commit
),
@project
)
AnalyticsCommitSerializer
.
new
(
project:
@project
,
total_time:
event
[
'total_time'
]).
represent
(
commit
)
.
as_json
AnalyticsCommitSerializer
.
new
(
project:
@project
,
total_time:
event
[
'total_time'
]).
represent
(
commit
)
end
end
end
...
...
lib/gitlab/cycle_analytics/review_event_fetcher.rb
View file @
6b3f52b4
...
...
@@ -15,7 +15,7 @@ module Gitlab
end
def
serialize
(
event
)
AnalyticsMergeRequestSerializer
.
new
(
project:
@project
).
represent
(
event
)
.
as_json
AnalyticsMergeRequestSerializer
.
new
(
project:
@project
).
represent
(
event
)
end
end
end
...
...
lib/gitlab/cycle_analytics/stage_summary.rb
View file @
6b3f52b4
...
...
@@ -16,7 +16,7 @@ module Gitlab
private
def
serialize
(
summary_object
)
AnalyticsSummarySerializer
.
new
.
represent
(
summary_object
)
.
as_json
AnalyticsSummarySerializer
.
new
.
represent
(
summary_object
)
end
end
end
...
...
lib/gitlab/cycle_analytics/staging_event_fetcher.rb
View file @
6b3f52b4
...
...
@@ -23,7 +23,7 @@ module Gitlab
private
def
serialize
(
event
)
AnalyticsBuildSerializer
.
new
.
represent
(
event
[
'build'
])
.
as_json
AnalyticsBuildSerializer
.
new
.
represent
(
event
[
'build'
])
end
end
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