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
1cc022f9
Commit
1cc022f9
authored
May 14, 2021
by
Donald Cook
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added frontend tracking to epic tree
parent
beebebff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
ee/app/assets/javascripts/related_items_tree/constants.js
ee/app/assets/javascripts/related_items_tree/constants.js
+2
-0
ee/app/assets/javascripts/related_items_tree/store/actions.js
...pp/assets/javascripts/related_items_tree/store/actions.js
+2
-1
No files found.
ee/app/assets/javascripts/related_items_tree/constants.js
View file @
1cc022f9
...
@@ -58,3 +58,5 @@ export const issueHealthStatusCSSMapping = {
...
@@ -58,3 +58,5 @@ export const issueHealthStatusCSSMapping = {
onTrack
:
'
status-on-track
'
,
onTrack
:
'
status-on-track
'
,
needsAttention
:
'
status-needs-attention
'
,
needsAttention
:
'
status-needs-attention
'
,
};
};
export
const
trackingNewIssue
=
'
g_product_planning_epic_new_issue_added_from_epic
'
;
ee/app/assets/javascripts/related_items_tree/store/actions.js
View file @
1cc022f9
...
@@ -12,7 +12,7 @@ import {
...
@@ -12,7 +12,7 @@ import {
relatedIssuesRemoveErrorMap
,
relatedIssuesRemoveErrorMap
,
}
from
'
~/related_issues/constants
'
;
}
from
'
~/related_issues/constants
'
;
import
{
ChildType
,
ChildState
,
idProp
,
relativePositions
}
from
'
../constants
'
;
import
{
ChildType
,
ChildState
,
idProp
,
relativePositions
,
trackingNewIssue
}
from
'
../constants
'
;
import
epicChildReorder
from
'
../queries/epicChildReorder.mutation.graphql
'
;
import
epicChildReorder
from
'
../queries/epicChildReorder.mutation.graphql
'
;
import
{
processQueryResponse
,
formatChildItem
,
gqClient
}
from
'
../utils/epic_utils
'
;
import
{
processQueryResponse
,
formatChildItem
,
gqClient
}
from
'
../utils/epic_utils
'
;
...
@@ -568,6 +568,7 @@ export const createNewIssue = ({ state, dispatch }, { issuesEndpoint, title }) =
...
@@ -568,6 +568,7 @@ export const createNewIssue = ({ state, dispatch }, { issuesEndpoint, title }) =
return
axios
return
axios
.
post
(
issuesEndpoint
,
{
epic_id
:
epicId
,
title
})
.
post
(
issuesEndpoint
,
{
epic_id
:
epicId
,
title
})
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
Api
.
trackRedisHllUserEvent
(
trackingNewIssue
);
dispatch
(
'
receiveCreateIssueSuccess
'
,
data
);
dispatch
(
'
receiveCreateIssueSuccess
'
,
data
);
dispatch
(
'
fetchItems
'
,
{
dispatch
(
'
fetchItems
'
,
{
parentItem
,
parentItem
,
...
...
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