debian-mirror-gitlab/app/assets/javascripts/cycle_analytics/store/state.js
2021-11-18 22:05:49 +05:30

34 lines
706 B
JavaScript

import {
PAGINATION_SORT_FIELD_END_EVENT,
PAGINATION_SORT_DIRECTION_DESC,
} from '~/cycle_analytics/constants';
export default () => ({
id: null,
features: {},
endpoints: {},
createdAfter: null,
createdBefore: null,
stages: [],
summary: [],
analytics: [],
stats: [],
valueStreams: [],
selectedValueStream: {},
selectedStage: {},
selectedStageEvents: [],
selectedStageError: '',
medians: {},
stageCounts: {},
hasError: false,
isLoading: false,
isLoadingStage: false,
isEmptyStage: false,
permissions: {},
pagination: {
page: null,
hasNextPage: false,
sort: PAGINATION_SORT_FIELD_END_EVENT,
direction: PAGINATION_SORT_DIRECTION_DESC,
},
});