summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics/events.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-11-14 11:52:29 +0100
committerJames Lopez <james@jameslopez.es>2016-11-17 08:22:58 +0100
commit81d0146c4cf0d34b1b81da770483ed864482149c (patch)
tree5c634b0fff5df0b5fe148a7cbbaee914b47cfcf5 /lib/gitlab/cycle_analytics/events.rb
parent1744d633eded81103ee4691e6980efb6930dc975 (diff)
downloadgitlab-ce-81d0146c4cf0d34b1b81da770483ed864482149c.tar.gz
WIP - refactoring URL builder and events presenter into serializers
Diffstat (limited to 'lib/gitlab/cycle_analytics/events.rb')
-rw-r--r--lib/gitlab/cycle_analytics/events.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/gitlab/cycle_analytics/events.rb b/lib/gitlab/cycle_analytics/events.rb
index e4c9752f3f9..21e295ceeb6 100644
--- a/lib/gitlab/cycle_analytics/events.rb
+++ b/lib/gitlab/cycle_analytics/events.rb
@@ -63,15 +63,8 @@ module Gitlab
def parse_build_event(event)
build = ::Ci::Build.find(event['id'])
- event['name'] = build.name
- event['url'] = Gitlab::LightUrlBuilder.build(entity: :build, project: @project, id: build.id)
- event['branch'] = build.ref
- event['branch_url'] = Gitlab::LightUrlBuilder.build(entity: :branch, project: @project, id: build.ref)
- event['sha'] = build.short_sha
- event['commit_url'] = Gitlab::LightUrlBuilder.build(entity: :commit, project: @project, id: build.sha)
- event['date'] = build.started_at
- event['total_time'] = build.duration
- event['author_name'] = build.author.try(:name)
+
+ #event['author_name'] = build.author.try(:name)
end
def first_time_reference_commit(commits, event)