Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/analytics/cycle_analytics/store/state.js')
-rw-r--r--app/assets/javascripts/analytics/cycle_analytics/store/state.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/assets/javascripts/analytics/cycle_analytics/store/state.js b/app/assets/javascripts/analytics/cycle_analytics/store/state.js
new file mode 100644
index 00000000000..00dd2e53883
--- /dev/null
+++ b/app/assets/javascripts/analytics/cycle_analytics/store/state.js
@@ -0,0 +1,31 @@
+import {
+ PAGINATION_SORT_FIELD_END_EVENT,
+ PAGINATION_SORT_DIRECTION_DESC,
+} from '~/analytics/cycle_analytics/constants';
+
+export default () => ({
+ id: null,
+ features: {},
+ endpoints: {},
+ createdAfter: null,
+ createdBefore: null,
+ stages: [],
+ analytics: [],
+ valueStreams: [],
+ selectedValueStream: {},
+ selectedStage: {},
+ selectedStageEvents: [],
+ selectedStageError: '',
+ medians: {},
+ stageCounts: {},
+ hasNoAccessError: false,
+ isLoading: false,
+ isLoadingStage: false,
+ isEmptyStage: false,
+ pagination: {
+ page: null,
+ hasNextPage: false,
+ sort: PAGINATION_SORT_FIELD_END_EVENT,
+ direction: PAGINATION_SORT_DIRECTION_DESC,
+ },
+});