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
5d6f8a75
Commit
5d6f8a75
authored
4 years ago
by
Ezekiel Kigbo
Committed by
Miguel Rincon
4 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Author and Assignees labels not working in VSA
parent
fa883dba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
ee/app/assets/javascripts/analytics/cycle_analytics/store/actions.js
...ts/javascripts/analytics/cycle_analytics/store/actions.js
+1
-1
ee/changelogs/unreleased/276955-author-and-assignees-labels-not-working-in-vsa.yml
...276955-author-and-assignees-labels-not-working-in-vsa.yml
+5
-0
ee/spec/frontend/analytics/cycle_analytics/store/actions_spec.js
.../frontend/analytics/cycle_analytics/store/actions_spec.js
+21
-0
No files found.
ee/app/assets/javascripts/analytics/cycle_analytics/store/actions.js
View file @
5d6f8a75
...
...
@@ -290,7 +290,7 @@ export const initializeCycleAnalytics = ({ dispatch, commit }, initialData = {})
if
(
group
?.
fullPath
)
{
return
Promise
.
all
([
dispatch
(
'
setPaths
'
,
{
group
,
milestonesPath
,
labelsPath
}),
dispatch
(
'
setPaths
'
,
{
group
Path
:
group
.
fullPath
,
milestonesPath
,
labelsPath
}),
dispatch
(
'
filters/initialize
'
,
{
selectedAuthor
,
selectedMilestone
,
...
...
This diff is collapsed.
Click to expand it.
ee/changelogs/unreleased/276955-author-and-assignees-labels-not-working-in-vsa.yml
0 → 100644
View file @
5d6f8a75
---
title
:
Fix vsa filter paths
merge_request
:
47058
author
:
type
:
fixed
This diff is collapsed.
Click to expand it.
ee/spec/frontend/analytics/cycle_analytics/store/actions_spec.js
View file @
5d6f8a75
...
...
@@ -755,9 +755,19 @@ describe('Value Stream Analytics actions', () => {
let
mockCommit
;
let
store
;
const
selectedAuthor
=
'
Noam Chomsky
'
;
const
selectedMilestone
=
'
13.6
'
;
const
selectedAssigneeList
=
[
'
nchom
'
];
const
selectedLabelList
=
[
'
label 1
'
,
'
label 2
'
];
const
initialData
=
{
group
:
currentGroup
,
projectIds
:
[
1
,
2
],
milestonesPath
,
labelsPath
,
selectedAuthor
,
selectedMilestone
,
selectedAssigneeList
,
selectedLabelList
,
};
beforeEach
(()
=>
{
...
...
@@ -784,6 +794,17 @@ describe('Value Stream Analytics actions', () => {
});
describe
(
'
with initialData
'
,
()
=>
{
it
.
each
`
action | args
${
'
setPaths
'
}
|
${{
milestonesPath
,
labelsPath
,
groupPath
:
currentGroup
.
fullPath
}
}
${
'
filters/initialize
'
}
|
${{
selectedAuthor
,
selectedMilestone
,
selectedAssigneeList
,
selectedLabelList
}
}
${
'
durationChart/setLoading
'
}
|
${
true
}
${
'
typeOfWork/setLoading
'
}
|
${
true
}
`
(
'
dispatches $action
'
,
async
({
action
,
args
})
=>
{
await
actions
.
initializeCycleAnalytics
(
store
,
initialData
);
expect
(
mockDispatch
).
toHaveBeenCalledWith
(
action
,
args
);
});
it
(
'
dispatches "fetchCycleAnalyticsData" and "initializeCycleAnalyticsSuccess"
'
,
async
()
=>
{
await
actions
.
initializeCycleAnalytics
(
store
,
initialData
);
expect
(
mockDispatch
).
toHaveBeenCalledWith
(
'
fetchCycleAnalyticsData
'
);
...
...
This diff is collapsed.
Click to expand it.
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