Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fad39868
Commit
fad39868
authored
Feb 03, 2022
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Roadmap - Introduce progress tracking setting
Review feedback
parent
b0096805
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
73 additions
and
80 deletions
+73
-80
ee/app/assets/javascripts/roadmap/components/epic_item_timeline.vue
...ets/javascripts/roadmap/components/epic_item_timeline.vue
+14
-14
ee/app/assets/javascripts/roadmap/components/roadmap_progress_tracking.vue
...ascripts/roadmap/components/roadmap_progress_tracking.vue
+2
-7
ee/app/assets/javascripts/roadmap/constants.js
ee/app/assets/javascripts/roadmap/constants.js
+18
-5
ee/app/assets/javascripts/roadmap/roadmap_bundle.js
ee/app/assets/javascripts/roadmap/roadmap_bundle.js
+3
-11
ee/spec/frontend/roadmap/components/epic_item_timeline_spec.js
...ec/frontend/roadmap/components/epic_item_timeline_spec.js
+11
-11
ee/spec/frontend/roadmap/components/roadmap_filters_spec.js
ee/spec/frontend/roadmap/components/roadmap_filters_spec.js
+2
-7
ee/spec/frontend/roadmap/components/roadmap_progress_tracking_spec.js
...tend/roadmap/components/roadmap_progress_tracking_spec.js
+3
-9
ee/spec/frontend/roadmap/mixins/months_preset_mixin_spec.js
ee/spec/frontend/roadmap/mixins/months_preset_mixin_spec.js
+2
-2
ee/spec/frontend/roadmap/mixins/quarters_preset_mixin_spec.js
...pec/frontend/roadmap/mixins/quarters_preset_mixin_spec.js
+2
-2
ee/spec/frontend/roadmap/mixins/weeks_preset_mixin_spec.js
ee/spec/frontend/roadmap/mixins/weeks_preset_mixin_spec.js
+2
-2
ee/spec/frontend/roadmap/store/mutations_spec.js
ee/spec/frontend/roadmap/store/mutations_spec.js
+2
-1
locale/gitlab.pot
locale/gitlab.pot
+12
-9
No files found.
ee/app/assets/javascripts/roadmap/components/epic_item_timeline.vue
View file @
fad39868
...
@@ -8,7 +8,7 @@ import {
...
@@ -8,7 +8,7 @@ import {
PRESET_TYPES
,
PRESET_TYPES
,
SMALL_TIMELINE_BAR
,
SMALL_TIMELINE_BAR
,
TIMELINE_CELL_MIN_WIDTH
,
TIMELINE_CELL_MIN_WIDTH
,
PROGRESS_
TRACKING_OPTIONS
,
PROGRESS_
COUNT
,
}
from
'
../constants
'
;
}
from
'
../constants
'
;
import
CommonMixin
from
'
../mixins/common_mixin
'
;
import
CommonMixin
from
'
../mixins/common_mixin
'
;
...
@@ -79,7 +79,7 @@ export default {
...
@@ -79,7 +79,7 @@ export default {
return
this
.
isTimelineBarSmall
?
'
...
'
:
this
.
epic
.
title
;
return
this
.
isTimelineBarSmall
?
'
...
'
:
this
.
epic
.
title
;
},
},
progressTrackingIsCount
()
{
progressTrackingIsCount
()
{
return
this
.
progressTracking
===
PROGRESS_
TRACKING_OPTIONS
.
COUNT
;
return
this
.
progressTracking
===
PROGRESS_COUNT
;
},
},
epicDescendants
()
{
epicDescendants
()
{
return
this
.
progressTrackingIsCount
return
this
.
progressTrackingIsCount
...
@@ -99,25 +99,25 @@ export default {
...
@@ -99,25 +99,25 @@ export default {
:
0
;
:
0
;
},
},
epicPercentageText
()
{
epicPercentageText
()
{
return
sprintf
(
__
(
`%{percentage}%% %{trackingOption}`
),
{
const
str
=
this
.
progressTrackingIsCount
percentage
:
this
.
epicPercentage
,
?
__
(
'
%{percentage}%% issues closed
'
)
trackingOption
:
this
.
trackingOptionText
,
:
__
(
'
%{percentage}%% weight completed
'
);
});
return
sprintf
(
str
,
{
percentage
:
this
.
epicPercentage
});
},
},
popoverText
()
{
popoverText
()
{
if
(
this
.
epicDescendants
)
{
if
(
this
.
epicDescendants
)
{
return
sprintf
(
__
(
'
%{completed} of %{total} %{trackingOption}
'
),
{
const
str
=
this
.
progressTrackingIsCount
?
__
(
'
%{completed} of %{total} issues closed
'
)
:
__
(
'
%{completed} of %{total} weight completed
'
);
return
sprintf
(
str
,
{
completed
:
this
.
epicDescendants
.
closedIssues
,
completed
:
this
.
epicDescendants
.
closedIssues
,
total
:
this
.
epicTotal
,
total
:
this
.
epicTotal
,
trackingOption
:
this
.
trackingOptionText
,
});
});
}
}
return
sprintf
(
__
(
'
- of - %{trackingOption}
'
),
{
return
this
.
progressTrackingIsCount
trackingOption
:
this
.
trackingOptionText
,
?
__
(
'
- of - issues closed
'
)
});
:
__
(
'
- of - weight completed
'
);
},
trackingOptionText
()
{
return
this
.
progressTrackingIsCount
?
__
(
'
issues closed
'
)
:
__
(
'
weight completed
'
);
},
},
progressIcon
()
{
progressIcon
()
{
return
this
.
progressTrackingIsCount
?
'
issue-closed
'
:
'
weight
'
;
return
this
.
progressTrackingIsCount
?
'
issue-closed
'
:
'
weight
'
;
...
...
ee/app/assets/javascripts/roadmap/components/roadmap_progress_tracking.vue
View file @
fad39868
...
@@ -12,12 +12,6 @@ export default {
...
@@ -12,12 +12,6 @@ export default {
},
},
computed
:
{
computed
:
{
...
mapState
([
'
progressTracking
'
]),
...
mapState
([
'
progressTracking
'
]),
availableOptions
()
{
const
weight
=
{
text
:
__
(
'
Use issue weight
'
),
value
:
PROGRESS_TRACKING_OPTIONS
.
WEIGHT
};
const
count
=
{
text
:
__
(
'
Use issue count
'
),
value
:
PROGRESS_TRACKING_OPTIONS
.
COUNT
};
return
[
weight
,
count
];
},
},
},
methods
:
{
methods
:
{
...
mapActions
([
'
setProgressTracking
'
]),
...
mapActions
([
'
setProgressTracking
'
]),
...
@@ -30,6 +24,7 @@ export default {
...
@@ -30,6 +24,7 @@ export default {
i18n
:
{
i18n
:
{
header
:
__
(
'
Progress tracking
'
),
header
:
__
(
'
Progress tracking
'
),
},
},
PROGRESS_TRACKING_OPTIONS
,
};
};
</
script
>
</
script
>
...
@@ -43,7 +38,7 @@ export default {
...
@@ -43,7 +38,7 @@ export default {
<gl-form-radio-group
<gl-form-radio-group
:checked=
"progressTracking"
:checked=
"progressTracking"
stacked
stacked
:options=
"
availableOptions
"
:options=
"
$options.PROGRESS_TRACKING_OPTIONS
"
@
change=
"handleProgressTrackingChange"
@
change=
"handleProgressTrackingChange"
/>
/>
</gl-form-group>
</gl-form-group>
...
...
ee/app/assets/javascripts/roadmap/constants.js
View file @
fad39868
import
{
s__
}
from
'
~/locale
'
;
import
{
s__
,
__
}
from
'
~/locale
'
;
/*
/*
Update the counterparts in roadmap.scss when making changes.
Update the counterparts in roadmap.scss when making changes.
...
@@ -62,7 +62,20 @@ export const EPIC_LEVEL_MARGIN = {
...
@@ -62,7 +62,20 @@ export const EPIC_LEVEL_MARGIN = {
export
const
ROADMAP_PAGE_SIZE
=
50
;
export
const
ROADMAP_PAGE_SIZE
=
50
;
export
const
PROGRESS_TRACKING_OPTIONS
=
{
export
const
PROGRESS_WEIGHT
=
'
WEIGHT
'
;
WEIGHT
:
'
WEIGHT
'
,
export
const
PROGRESS_COUNT
=
'
COUNT
'
;
COUNT
:
'
COUNT
'
,
};
export
const
PROGRESS_TRACKING_OPTIONS
=
[
{
text
:
__
(
'
Use issue weight
'
),
value
:
PROGRESS_WEIGHT
},
{
text
:
__
(
'
Use issue count
'
),
value
:
PROGRESS_COUNT
},
];
export
const
UNSUPPORTED_ROADMAP_PARAMS
=
[
'
scope
'
,
'
utf8
'
,
'
state
'
,
'
sort
'
,
'
timeframe_range_type
'
,
'
layout
'
,
'
progress
'
,
];
ee/app/assets/javascripts/roadmap/roadmap_bundle.js
View file @
fad39868
...
@@ -11,7 +11,7 @@ import EpicItem from './components/epic_item.vue';
...
@@ -11,7 +11,7 @@ import EpicItem from './components/epic_item.vue';
import
EpicItemContainer
from
'
./components/epic_item_container.vue
'
;
import
EpicItemContainer
from
'
./components/epic_item_container.vue
'
;
import
roadmapApp
from
'
./components/roadmap_app.vue
'
;
import
roadmapApp
from
'
./components/roadmap_app.vue
'
;
import
{
DATE_RANGES
}
from
'
./constants
'
;
import
{
DATE_RANGES
,
PROGRESS_WEIGHT
,
UNSUPPORTED_ROADMAP_PARAMS
}
from
'
./constants
'
;
import
createStore
from
'
./store
'
;
import
createStore
from
'
./store
'
;
import
{
import
{
...
@@ -74,15 +74,7 @@ export default () => {
...
@@ -74,15 +74,7 @@ export default () => {
});
});
const
filterParams
=
{
const
filterParams
=
{
...
convertObjectPropsToCamelCase
(
rawFilterParams
,
{
...
convertObjectPropsToCamelCase
(
rawFilterParams
,
{
dropKeys
:
[
dropKeys
:
UNSUPPORTED_ROADMAP_PARAMS
,
'
scope
'
,
'
utf8
'
,
'
state
'
,
'
sort
'
,
'
timeframe_range_type
'
,
'
layout
'
,
'
progress
'
,
],
// These keys are unsupported/unnecessary
}),
}),
// We shall put parsed value of `confidential` only
// We shall put parsed value of `confidential` only
// when it is defined.
// when it is defined.
...
@@ -111,7 +103,7 @@ export default () => {
...
@@ -111,7 +103,7 @@ export default () => {
timeframeRangeType
,
timeframeRangeType
,
presetType
,
presetType
,
timeframe
,
timeframe
,
progressTracking
:
rawFilterParams
.
progress
,
progressTracking
:
rawFilterParams
.
progress
||
PROGRESS_WEIGHT
,
};
};
},
},
created
()
{
created
()
{
...
...
ee/spec/frontend/roadmap/components/epic_item_timeline_spec.js
View file @
fad39868
...
@@ -3,7 +3,7 @@ import Vue from 'vue';
...
@@ -3,7 +3,7 @@ import Vue from 'vue';
import
Vuex
from
'
vuex
'
;
import
Vuex
from
'
vuex
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
EpicItemTimeline
from
'
ee/roadmap/components/epic_item_timeline.vue
'
;
import
EpicItemTimeline
from
'
ee/roadmap/components/epic_item_timeline.vue
'
;
import
{
DATE_RANGES
,
PRESET_TYPES
,
PROGRESS_
TRACKING_OPTIONS
}
from
'
ee/roadmap/constants
'
;
import
{
DATE_RANGES
,
PRESET_TYPES
,
PROGRESS_
COUNT
,
PROGRESS_WEIGHT
}
from
'
ee/roadmap/constants
'
;
import
createStore
from
'
ee/roadmap/store
'
;
import
createStore
from
'
ee/roadmap/store
'
;
import
{
getTimeframeForRangeType
}
from
'
ee/roadmap/utils/roadmap_utils
'
;
import
{
getTimeframeForRangeType
}
from
'
ee/roadmap/utils/roadmap_utils
'
;
import
{
mockTimeframeInitialDate
,
mockFormattedEpic
}
from
'
ee_jest/roadmap/mock_data
'
;
import
{
mockTimeframeInitialDate
,
mockFormattedEpic
}
from
'
ee_jest/roadmap/mock_data
'
;
...
@@ -22,7 +22,7 @@ const createComponent = ({
...
@@ -22,7 +22,7 @@ const createComponent = ({
timeframe
=
mockTimeframeMonths
,
timeframe
=
mockTimeframeMonths
,
timeframeItem
=
mockTimeframeMonths
[
0
],
timeframeItem
=
mockTimeframeMonths
[
0
],
timeframeString
=
''
,
timeframeString
=
''
,
progressTracking
=
PROGRESS_
TRACKING_OPTIONS
.
WEIGHT
,
progressTracking
=
PROGRESS_WEIGHT
,
}
=
{})
=>
{
}
=
{})
=>
{
const
store
=
createStore
();
const
store
=
createStore
();
...
@@ -76,9 +76,9 @@ describe('EpicItemTimelineComponent', () => {
...
@@ -76,9 +76,9 @@ describe('EpicItemTimelineComponent', () => {
});
});
it
.
each
`
it
.
each
`
progressTracking | icon
progressTracking
| icon
${
'
WEIGHT
'
}
|
${
'
weight
'
}
${
PROGRESS_WEIGHT
}
|
${
'
weight
'
}
${
'
COUNT
'
}
|
${
'
issue-closed
'
}
${
PROGRESS_COUNT
}
|
${
'
issue-closed
'
}
`
(
`
(
'
displays icon $icon when progressTracking equals $progressTracking
'
,
'
displays icon $icon when progressTracking equals $progressTracking
'
,
({
progressTracking
,
icon
})
=>
{
({
progressTracking
,
icon
})
=>
{
...
@@ -97,9 +97,9 @@ describe('EpicItemTimelineComponent', () => {
...
@@ -97,9 +97,9 @@ describe('EpicItemTimelineComponent', () => {
});
});
it
.
each
`
it
.
each
`
progressTracking | option | text
progressTracking
| option | text
${
'
WEIGHT
'
}
|
${
'
weight
'
}
|
${
'
3 of 5 weight completed
'
}
${
PROGRESS_WEIGHT
}
|
${
'
weight
'
}
|
${
'
3 of 5 weight completed
'
}
${
'
COUNT
'
}
|
${
'
issues
'
}
|
${
'
3 of 5 issues closed
'
}
${
PROGRESS_COUNT
}
|
${
'
issues
'
}
|
${
'
3 of 5 issues closed
'
}
`
(
`
(
'
shows $option completed when progressTracking equals $progressTracking
'
,
'
shows $option completed when progressTracking equals $progressTracking
'
,
({
progressTracking
,
text
})
=>
{
({
progressTracking
,
text
})
=>
{
...
@@ -110,9 +110,9 @@ describe('EpicItemTimelineComponent', () => {
...
@@ -110,9 +110,9 @@ describe('EpicItemTimelineComponent', () => {
);
);
it
.
each
`
it
.
each
`
progressTracking | option | text
progressTracking
| option | text
${
'
WEIGHT
'
}
|
${
'
weight
'
}
|
${
'
- of - weight completed
'
}
${
PROGRESS_WEIGHT
}
|
${
'
weight
'
}
|
${
'
- of - weight completed
'
}
${
'
COUNT
'
}
|
${
'
issues
'
}
|
${
'
- of - issues closed
'
}
${
PROGRESS_COUNT
}
|
${
'
issues
'
}
|
${
'
- of - issues closed
'
}
`
(
`
(
'
shows $option completed with no numbers when there is no $option information and progressTracking equals $progressTracking
'
,
'
shows $option completed with no numbers when there is no $option information and progressTracking equals $progressTracking
'
,
({
progressTracking
,
text
})
=>
{
({
progressTracking
,
text
})
=>
{
...
...
ee/spec/frontend/roadmap/components/roadmap_filters_spec.js
View file @
fad39868
...
@@ -3,12 +3,7 @@ import Vue, { nextTick } from 'vue';
...
@@ -3,12 +3,7 @@ import Vue, { nextTick } from 'vue';
import
Vuex
from
'
vuex
'
;
import
Vuex
from
'
vuex
'
;
import
RoadmapFilters
from
'
ee/roadmap/components/roadmap_filters.vue
'
;
import
RoadmapFilters
from
'
ee/roadmap/components/roadmap_filters.vue
'
;
import
{
import
{
PRESET_TYPES
,
EPICS_STATES
,
DATE_RANGES
,
PROGRESS_WEIGHT
}
from
'
ee/roadmap/constants
'
;
PRESET_TYPES
,
EPICS_STATES
,
DATE_RANGES
,
PROGRESS_TRACKING_OPTIONS
,
}
from
'
ee/roadmap/constants
'
;
import
createStore
from
'
ee/roadmap/store
'
;
import
createStore
from
'
ee/roadmap/store
'
;
import
{
getTimeframeForRangeType
}
from
'
ee/roadmap/utils/roadmap_utils
'
;
import
{
getTimeframeForRangeType
}
from
'
ee/roadmap/utils/roadmap_utils
'
;
import
{
import
{
...
@@ -60,7 +55,7 @@ const createComponent = ({
...
@@ -60,7 +55,7 @@ const createComponent = ({
sortedBy
,
sortedBy
,
filterParams
,
filterParams
,
timeframe
,
timeframe
,
progressTracking
:
PROGRESS_
TRACKING_OPTIONS
.
WEIGHT
,
progressTracking
:
PROGRESS_WEIGHT
,
});
});
return
shallowMountExtended
(
RoadmapFilters
,
{
return
shallowMountExtended
(
RoadmapFilters
,
{
...
...
ee/spec/frontend/roadmap/components/roadmap_progress_tracking_spec.js
View file @
fad39868
import
{
GlFormGroup
,
GlFormRadioGroup
}
from
'
@gitlab/ui
'
;
import
{
GlFormGroup
,
GlFormRadioGroup
}
from
'
@gitlab/ui
'
;
import
{
__
}
from
'
~/locale
'
;
import
{
shallowMountExtended
}
from
'
helpers/vue_test_utils_helper
'
;
import
{
shallowMountExtended
}
from
'
helpers/vue_test_utils_helper
'
;
import
createStore
from
'
ee/roadmap/store
'
;
import
createStore
from
'
ee/roadmap/store
'
;
import
RoadmapProgressTracking
from
'
ee/roadmap/components/roadmap_progress_tracking.vue
'
;
import
RoadmapProgressTracking
from
'
ee/roadmap/components/roadmap_progress_tracking.vue
'
;
import
{
PROGRESS_TRACKING_OPTIONS
}
from
'
ee/roadmap/constants
'
;
import
{
PROGRESS_
WEIGHT
,
PROGRESS_
TRACKING_OPTIONS
}
from
'
ee/roadmap/constants
'
;
describe
(
'
RoadmapProgressTracking
'
,
()
=>
{
describe
(
'
RoadmapProgressTracking
'
,
()
=>
{
let
wrapper
;
let
wrapper
;
const
availableOptions
=
[
{
text
:
__
(
'
Use issue weight
'
),
value
:
PROGRESS_TRACKING_OPTIONS
.
WEIGHT
},
{
text
:
__
(
'
Use issue count
'
),
value
:
PROGRESS_TRACKING_OPTIONS
.
COUNT
},
];
const
createComponent
=
()
=>
{
const
createComponent
=
()
=>
{
const
store
=
createStore
();
const
store
=
createStore
();
store
.
dispatch
(
'
setInitialData
'
,
{
store
.
dispatch
(
'
setInitialData
'
,
{
progressTracking
:
PROGRESS_
TRACKING_OPTIONS
.
WEIGHT
,
progressTracking
:
PROGRESS_WEIGHT
,
});
});
wrapper
=
shallowMountExtended
(
RoadmapProgressTracking
,
{
wrapper
=
shallowMountExtended
(
RoadmapProgressTracking
,
{
...
@@ -45,7 +39,7 @@ describe('RoadmapProgressTracking', () => {
...
@@ -45,7 +39,7 @@ describe('RoadmapProgressTracking', () => {
it
(
'
renders radio form group
'
,
()
=>
{
it
(
'
renders radio form group
'
,
()
=>
{
expect
(
findFormRadioGroup
().
exists
()).
toBe
(
true
);
expect
(
findFormRadioGroup
().
exists
()).
toBe
(
true
);
expect
(
findFormRadioGroup
().
props
(
'
options
'
)).
toEqual
(
availableOptions
);
expect
(
findFormRadioGroup
().
props
(
'
options
'
)).
toEqual
(
PROGRESS_TRACKING_OPTIONS
);
});
});
});
});
});
});
ee/spec/frontend/roadmap/mixins/months_preset_mixin_spec.js
View file @
fad39868
...
@@ -2,7 +2,7 @@ import Vue from 'vue';
...
@@ -2,7 +2,7 @@ import Vue from 'vue';
import
Vuex
from
'
vuex
'
;
import
Vuex
from
'
vuex
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
EpicItemTimelineComponent
from
'
ee/roadmap/components/epic_item_timeline.vue
'
;
import
EpicItemTimelineComponent
from
'
ee/roadmap/components/epic_item_timeline.vue
'
;
import
{
DATE_RANGES
,
PRESET_TYPES
,
PROGRESS_
TRACKING_OPTIONS
}
from
'
ee/roadmap/constants
'
;
import
{
DATE_RANGES
,
PRESET_TYPES
,
PROGRESS_
WEIGHT
}
from
'
ee/roadmap/constants
'
;
import
createStore
from
'
ee/roadmap/store
'
;
import
createStore
from
'
ee/roadmap/store
'
;
import
{
getTimeframeForRangeType
}
from
'
ee/roadmap/utils/roadmap_utils
'
;
import
{
getTimeframeForRangeType
}
from
'
ee/roadmap/utils/roadmap_utils
'
;
...
@@ -28,7 +28,7 @@ describe('MonthsPresetMixin', () => {
...
@@ -28,7 +28,7 @@ describe('MonthsPresetMixin', () => {
const
store
=
createStore
();
const
store
=
createStore
();
store
.
dispatch
(
'
setInitialData
'
,
{
store
.
dispatch
(
'
setInitialData
'
,
{
progressTracking
:
PROGRESS_
TRACKING_OPTIONS
.
WEIGHT
,
progressTracking
:
PROGRESS_WEIGHT
,
});
});
return
shallowMount
(
EpicItemTimelineComponent
,
{
return
shallowMount
(
EpicItemTimelineComponent
,
{
...
...
ee/spec/frontend/roadmap/mixins/quarters_preset_mixin_spec.js
View file @
fad39868
...
@@ -2,7 +2,7 @@ import Vue from 'vue';
...
@@ -2,7 +2,7 @@ import Vue from 'vue';
import
Vuex
from
'
vuex
'
;
import
Vuex
from
'
vuex
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
EpicItemTimelineComponent
from
'
ee/roadmap/components/epic_item_timeline.vue
'
;
import
EpicItemTimelineComponent
from
'
ee/roadmap/components/epic_item_timeline.vue
'
;
import
{
DATE_RANGES
,
PRESET_TYPES
,
PROGRESS_
TRACKING_OPTIONS
}
from
'
ee/roadmap/constants
'
;
import
{
DATE_RANGES
,
PRESET_TYPES
,
PROGRESS_
WEIGHT
}
from
'
ee/roadmap/constants
'
;
import
createStore
from
'
ee/roadmap/store
'
;
import
createStore
from
'
ee/roadmap/store
'
;
import
{
getTimeframeForRangeType
}
from
'
ee/roadmap/utils/roadmap_utils
'
;
import
{
getTimeframeForRangeType
}
from
'
ee/roadmap/utils/roadmap_utils
'
;
...
@@ -28,7 +28,7 @@ describe('QuartersPresetMixin', () => {
...
@@ -28,7 +28,7 @@ describe('QuartersPresetMixin', () => {
const
store
=
createStore
();
const
store
=
createStore
();
store
.
dispatch
(
'
setInitialData
'
,
{
store
.
dispatch
(
'
setInitialData
'
,
{
progressTracking
:
PROGRESS_
TRACKING_OPTIONS
.
WEIGHT
,
progressTracking
:
PROGRESS_WEIGHT
,
});
});
return
shallowMount
(
EpicItemTimelineComponent
,
{
return
shallowMount
(
EpicItemTimelineComponent
,
{
...
...
ee/spec/frontend/roadmap/mixins/weeks_preset_mixin_spec.js
View file @
fad39868
...
@@ -2,7 +2,7 @@ import Vue from 'vue';
...
@@ -2,7 +2,7 @@ import Vue from 'vue';
import
Vuex
from
'
vuex
'
;
import
Vuex
from
'
vuex
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
EpicItemTimelineComponent
from
'
ee/roadmap/components/epic_item_timeline.vue
'
;
import
EpicItemTimelineComponent
from
'
ee/roadmap/components/epic_item_timeline.vue
'
;
import
{
DATE_RANGES
,
PRESET_TYPES
,
PROGRESS_
TRACKING_OPTIONS
}
from
'
ee/roadmap/constants
'
;
import
{
DATE_RANGES
,
PRESET_TYPES
,
PROGRESS_
WEIGHT
}
from
'
ee/roadmap/constants
'
;
import
createStore
from
'
ee/roadmap/store
'
;
import
createStore
from
'
ee/roadmap/store
'
;
import
{
getTimeframeForRangeType
}
from
'
ee/roadmap/utils/roadmap_utils
'
;
import
{
getTimeframeForRangeType
}
from
'
ee/roadmap/utils/roadmap_utils
'
;
...
@@ -28,7 +28,7 @@ describe('WeeksPresetMixin', () => {
...
@@ -28,7 +28,7 @@ describe('WeeksPresetMixin', () => {
const
store
=
createStore
();
const
store
=
createStore
();
store
.
dispatch
(
'
setInitialData
'
,
{
store
.
dispatch
(
'
setInitialData
'
,
{
progressTracking
:
PROGRESS_
TRACKING_OPTIONS
.
WEIGHT
,
progressTracking
:
PROGRESS_WEIGHT
,
});
});
return
shallowMount
(
EpicItemTimelineComponent
,
{
return
shallowMount
(
EpicItemTimelineComponent
,
{
...
...
ee/spec/frontend/roadmap/store/mutations_spec.js
View file @
fad39868
import
*
as
types
from
'
ee/roadmap/store/mutation_types
'
;
import
*
as
types
from
'
ee/roadmap/store/mutation_types
'
;
import
mutations
from
'
ee/roadmap/store/mutations
'
;
import
mutations
from
'
ee/roadmap/store/mutations
'
;
import
{
PROGRESS_COUNT
}
from
'
ee/roadmap/constants
'
;
import
defaultState
from
'
ee/roadmap/store/state
'
;
import
defaultState
from
'
ee/roadmap/store/state
'
;
import
{
getTimeframeForRangeType
}
from
'
ee/roadmap/utils/roadmap_utils
'
;
import
{
getTimeframeForRangeType
}
from
'
ee/roadmap/utils/roadmap_utils
'
;
...
@@ -345,7 +346,7 @@ describe('Roadmap Store Mutations', () => {
...
@@ -345,7 +346,7 @@ describe('Roadmap Store Mutations', () => {
describe
(
'
SET_PROGRESS_TRACKING
'
,
()
=>
{
describe
(
'
SET_PROGRESS_TRACKING
'
,
()
=>
{
it
(
'
Should set `progressTracking` to the state
'
,
()
=>
{
it
(
'
Should set `progressTracking` to the state
'
,
()
=>
{
const
progressTracking
=
'
COUNT
'
;
const
progressTracking
=
PROGRESS_COUNT
;
setEpicMockData
(
state
);
setEpicMockData
(
state
);
mutations
[
types
.
SET_PROGRESS_TRACKING
](
state
,
progressTracking
);
mutations
[
types
.
SET_PROGRESS_TRACKING
](
state
,
progressTracking
);
...
...
locale/gitlab.pot
View file @
fad39868
...
@@ -510,7 +510,10 @@ msgstr[1] ""
...
@@ -510,7 +510,10 @@ msgstr[1] ""
msgid "%{completedWeight} of %{totalWeight} weight completed"
msgid "%{completedWeight} of %{totalWeight} weight completed"
msgstr ""
msgstr ""
msgid "%{completed} of %{total} %{trackingOption}"
msgid "%{completed} of %{total} issues closed"
msgstr ""
msgid "%{completed} of %{total} weight completed"
msgstr ""
msgstr ""
msgid "%{cores} cores"
msgid "%{cores} cores"
...
@@ -861,7 +864,10 @@ msgstr ""
...
@@ -861,7 +864,10 @@ msgstr ""
msgid "%{openedIssues} open, %{closedIssues} closed"
msgid "%{openedIssues} open, %{closedIssues} closed"
msgstr ""
msgstr ""
msgid "%{percentage}%% %{trackingOption}"
msgid "%{percentage}%% issues closed"
msgstr ""
msgid "%{percentage}%% weight completed"
msgstr ""
msgstr ""
msgid "%{percent}%% complete"
msgid "%{percent}%% complete"
...
@@ -1290,7 +1296,10 @@ msgid_plural "- Users"
...
@@ -1290,7 +1296,10 @@ msgid_plural "- Users"
msgstr[0] ""
msgstr[0] ""
msgstr[1] ""
msgstr[1] ""
msgid "- of - %{trackingOption}"
msgid "- of - issues closed"
msgstr ""
msgid "- of - weight completed"
msgstr ""
msgstr ""
msgid "- show less"
msgid "- show less"
...
@@ -42845,9 +42854,6 @@ msgstr ""
...
@@ -42845,9 +42854,6 @@ msgstr ""
msgid "issues at risk"
msgid "issues at risk"
msgstr ""
msgstr ""
msgid "issues closed"
msgstr ""
msgid "issues need attention"
msgid "issues need attention"
msgstr ""
msgstr ""
...
@@ -43802,9 +43808,6 @@ msgstr ""
...
@@ -43802,9 +43808,6 @@ msgstr ""
msgid "was scheduled to merge after pipeline succeeds by"
msgid "was scheduled to merge after pipeline succeeds by"
msgstr ""
msgstr ""
msgid "weight completed"
msgstr ""
msgid "wiki page"
msgid "wiki page"
msgstr ""
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment