summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-11-09 17:19:29 +0100
committerJames Lopez <james@jameslopez.es>2016-11-17 08:22:58 +0100
commit4dfcab6ec3d4b3dae1e68374c1252d139c161534 (patch)
tree8eaba419f6a10f0efeec0284f6bb10cd5e16a29d /lib/gitlab/cycle_analytics
parent848ea241db74ffc160e61c23775e336c207e65af (diff)
downloadgitlab-ce-4dfcab6ec3d4b3dae1e68374c1252d139c161534.tar.gz
fix iid issue making spec to fail - MySQL only
Diffstat (limited to 'lib/gitlab/cycle_analytics')
-rw-r--r--lib/gitlab/cycle_analytics/events.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/cycle_analytics/events.rb b/lib/gitlab/cycle_analytics/events.rb
index 47b42621f2d..e4c9752f3f9 100644
--- a/lib/gitlab/cycle_analytics/events.rb
+++ b/lib/gitlab/cycle_analytics/events.rb
@@ -52,7 +52,7 @@ module Gitlab
private
def parse_event(event, entity: :issue)
- event['url'] = Gitlab::LightUrlBuilder.build(entity: entity, project: @project, id: event['iid'])
+ event['url'] = Gitlab::LightUrlBuilder.build(entity: entity, project: @project, id: event['iid'].to_s)
event['total_time'] = distance_of_time_in_words(event['total_time'].to_f)
event['created_at'] = interval_in_words(event['created_at'])
event['author_profile_url'] = Gitlab::LightUrlBuilder.build(entity: :user, id: event['author_username'])