Fix cycle analytics code after improving serializers

This commit is contained in:
Grzegorz Bizon 2017-01-27 14:37:14 +01:00
parent 3cb37c0349
commit 6b3f52b46c
7 changed files with 7 additions and 7 deletions

View file

@ -13,7 +13,7 @@ module Gitlab
end
def as_json
AnalyticsStageSerializer.new.represent(self).as_json
AnalyticsStageSerializer.new.represent(self)
end
def title

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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