summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/cycle_analytics/cycle_analytics_store.js
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-09-25 11:23:29 +0000
committerPhil Hughes <me@iamphill.com>2017-09-25 11:23:29 +0000
commitefecf2390748e7e7a6759044a315b1b4867bc145 (patch)
tree79a5217b3f649369781415345e7cede49d93cb04 /app/assets/javascripts/cycle_analytics/cycle_analytics_store.js
parentf55f925501d67579b9e30f19156be7005af86078 (diff)
downloadgitlab-ce-efecf2390748e7e7a6759044a315b1b4867bc145.tar.gz
Removes cycle analytics service and store from global namespace
Diffstat (limited to 'app/assets/javascripts/cycle_analytics/cycle_analytics_store.js')
-rw-r--r--app/assets/javascripts/cycle_analytics/cycle_analytics_store.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/assets/javascripts/cycle_analytics/cycle_analytics_store.js b/app/assets/javascripts/cycle_analytics/cycle_analytics_store.js
index 991f8c1f6fd..8bf9ae17de0 100644
--- a/app/assets/javascripts/cycle_analytics/cycle_analytics_store.js
+++ b/app/assets/javascripts/cycle_analytics/cycle_analytics_store.js
@@ -4,9 +4,6 @@ import { __ } from '../locale';
import '../lib/utils/text_utility';
import DEFAULT_EVENT_OBJECTS from './default_event_objects';
-const global = window.gl || (window.gl = {});
-global.cycleAnalytics = global.cycleAnalytics || {};
-
const EMPTY_STAGE_TEXTS = {
issue: __('The issue stage shows the time it takes from creating an issue to assigning the issue to a milestone, or add the issue to a list on your Issue Board. Begin creating issues to see data for this stage.'),
plan: __('The planning stage shows the time from the previous step to pushing your first commit. This time will be added automatically once you push your first commit.'),
@@ -17,7 +14,7 @@ const EMPTY_STAGE_TEXTS = {
production: __('The production stage shows the total time it takes between creating an issue and deploying the code to production. The data will be automatically added once you have completed the full idea to production cycle.'),
};
-global.cycleAnalytics.CycleAnalyticsStore = {
+export default {
state: {
summary: '',
stats: '',