summaryrefslogtreecommitdiff
path: root/app/models/cycle_analytics.rb
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-09-17 12:08:23 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-09-17 12:16:48 +0530
commitedb38d69cc6cffef46b6c7b957ad97ce213173cf (patch)
treee41eae3d77847cd4189ef3c7c21d29543c8fa0ea /app/models/cycle_analytics.rb
parent7d69ff3ddf0fb83c6a1ec02f85b01b454080b647 (diff)
downloadgitlab-ce-edb38d69cc6cffef46b6c7b957ad97ce213173cf.tar.gz
Move cycle analytics JSON generation to a helper.
1. Use a new format, with each stage having a `title`, `description`, and `value.
Diffstat (limited to 'app/models/cycle_analytics.rb')
-rw-r--r--app/models/cycle_analytics.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/models/cycle_analytics.rb b/app/models/cycle_analytics.rb
index c26d50d693c..5f09e5d611b 100644
--- a/app/models/cycle_analytics.rb
+++ b/app/models/cycle_analytics.rb
@@ -6,13 +6,6 @@ class CycleAnalytics
@from = from
end
- def as_json(options = {})
- {
- issue: issue, plan: plan, code: code, test: test,
- review: review, staging: staging, production: production
- }
- end
-
def issue
calculate_metric!(:issue,
TableReferences.issues[:created_at],