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
19e6fcc4
Commit
19e6fcc4
authored
Nov 14, 2019
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix remove extra fetchTasksByTypeData dispatch
parent
8c91a769
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
ee/app/assets/javascripts/analytics/cycle_analytics/store/actions.js
...ts/javascripts/analytics/cycle_analytics/store/actions.js
+2
-4
ee/spec/frontend/analytics/cycle_analytics/store/actions_spec.js
.../frontend/analytics/cycle_analytics/store/actions_spec.js
+1
-4
locale/gitlab.pot
locale/gitlab.pot
+2
-2
No files found.
ee/app/assets/javascripts/analytics/cycle_analytics/store/actions.js
View file @
19e6fcc4
...
...
@@ -32,10 +32,7 @@ export const setDateRange = (
if
(
skipFetch
)
return
false
;
return
Promise
.
all
([
dispatch
(
'
fetchCycleAnalyticsData
'
,
{
state
,
dispatch
}),
dispatch
(
'
fetchTasksByTypeData
'
),
]);
return
dispatch
(
'
fetchCycleAnalyticsData
'
,
{
state
,
dispatch
});
};
export
const
requestStageData
=
({
commit
})
=>
commit
(
types
.
REQUEST_STAGE_DATA
);
...
...
@@ -207,6 +204,7 @@ export const receiveTasksByTypeError = ({ commit }, error) => {
export
const
receiveTasksByTypeDataSuccess
=
({
commit
},
data
)
=>
commit
(
types
.
RECEIVE_TASKS_BY_TYPE_DATA_SUCCESS
,
data
);
export
const
receiveTasksByTypeDataError
=
({
commit
},
error
)
=>
{
commit
(
types
.
RECEIVE_TASKS_BY_TYPE_DATA_ERROR
,
error
);
createFlash
(
__
(
'
There was an error fetching data for the chart
'
));
...
...
ee/spec/frontend/analytics/cycle_analytics/store/actions_spec.js
View file @
19e6fcc4
...
...
@@ -79,10 +79,7 @@ describe('Cycle analytics actions', () => {
{
startDate
,
endDate
},
state
,
[{
type
:
types
.
SET_DATE_RANGE
,
payload
:
{
startDate
,
endDate
}
}],
[
{
type
:
'
fetchCycleAnalyticsData
'
,
payload
:
{
dispatch
,
state
}
},
{
type
:
'
fetchTasksByTypeData
'
},
],
[{
type
:
'
fetchCycleAnalyticsData
'
,
payload
:
{
dispatch
,
state
}
}],
done
,
);
});
...
...
locale/gitlab.pot
View file @
19e6fcc4
...
...
@@ -17419,10 +17419,10 @@ msgstr ""
msgid "There was an error fetching cycle analytics stages."
msgstr ""
msgid "There was an error fetching data for the
selected stage
"
msgid "There was an error fetching data for the
chart
"
msgstr ""
msgid "There was an error fetching data for the
chart
"
msgid "There was an error fetching data for the
form
"
msgstr ""
msgid "There was an error fetching data for the selected stage"
...
...
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