Fix cycle analytics code after improving serializers
This commit is contained in:
parent
3cb37c0349
commit
6b3f52b46c
7 changed files with 7 additions and 7 deletions
|
@ -13,7 +13,7 @@ module Gitlab
|
|||
end
|
||||
|
||||
def as_json
|
||||
AnalyticsStageSerializer.new.represent(self).as_json
|
||||
AnalyticsStageSerializer.new.represent(self)
|
||||
end
|
||||
|
||||
def title
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue