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
Nov 09, 2020
by
Ezekiel Kigbo
Committed by
Miguel Rincon
Nov 09, 2020
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 = {})
...
@@ -290,7 +290,7 @@ export const initializeCycleAnalytics = ({ dispatch, commit }, initialData = {})
if
(
group
?.
fullPath
)
{
if
(
group
?.
fullPath
)
{
return
Promise
.
all
([
return
Promise
.
all
([
dispatch
(
'
setPaths
'
,
{
group
,
milestonesPath
,
labelsPath
}),
dispatch
(
'
setPaths
'
,
{
group
Path
:
group
.
fullPath
,
milestonesPath
,
labelsPath
}),
dispatch
(
'
filters/initialize
'
,
{
dispatch
(
'
filters/initialize
'
,
{
selectedAuthor
,
selectedAuthor
,
selectedMilestone
,
selectedMilestone
,
...
...
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
ee/spec/frontend/analytics/cycle_analytics/store/actions_spec.js
View file @
5d6f8a75
...
@@ -755,9 +755,19 @@ describe('Value Stream Analytics actions', () => {
...
@@ -755,9 +755,19 @@ describe('Value Stream Analytics actions', () => {
let
mockCommit
;
let
mockCommit
;
let
store
;
let
store
;
const
selectedAuthor
=
'
Noam Chomsky
'
;
const
selectedMilestone
=
'
13.6
'
;
const
selectedAssigneeList
=
[
'
nchom
'
];
const
selectedLabelList
=
[
'
label 1
'
,
'
label 2
'
];
const
initialData
=
{
const
initialData
=
{
group
:
currentGroup
,
group
:
currentGroup
,
projectIds
:
[
1
,
2
],
projectIds
:
[
1
,
2
],
milestonesPath
,
labelsPath
,
selectedAuthor
,
selectedMilestone
,
selectedAssigneeList
,
selectedLabelList
,
};
};
beforeEach
(()
=>
{
beforeEach
(()
=>
{
...
@@ -784,6 +794,17 @@ describe('Value Stream Analytics actions', () => {
...
@@ -784,6 +794,17 @@ describe('Value Stream Analytics actions', () => {
});
});
describe
(
'
with initialData
'
,
()
=>
{
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
()
=>
{
it
(
'
dispatches "fetchCycleAnalyticsData" and "initializeCycleAnalyticsSuccess"
'
,
async
()
=>
{
await
actions
.
initializeCycleAnalytics
(
store
,
initialData
);
await
actions
.
initializeCycleAnalytics
(
store
,
initialData
);
expect
(
mockDispatch
).
toHaveBeenCalledWith
(
'
fetchCycleAnalyticsData
'
);
expect
(
mockDispatch
).
toHaveBeenCalledWith
(
'
fetchCycleAnalyticsData
'
);
...
...
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