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
31915f7f
Commit
31915f7f
authored
May 18, 2021
by
Donald Cook
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed the event and added it to add existing issue
parent
1cc022f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ee/app/assets/javascripts/related_items_tree/constants.js
ee/app/assets/javascripts/related_items_tree/constants.js
+1
-1
ee/app/assets/javascripts/related_items_tree/store/actions.js
...pp/assets/javascripts/related_items_tree/store/actions.js
+3
-2
No files found.
ee/app/assets/javascripts/related_items_tree/constants.js
View file @
31915f7f
...
...
@@ -59,4 +59,4 @@ export const issueHealthStatusCSSMapping = {
needsAttention
:
'
status-needs-attention
'
,
};
export
const
tracking
NewIssue
=
'
g_product_planning_epic_new
_issue_added_from_epic
'
;
export
const
tracking
AddedIssue
=
'
g_project_management_epic
_issue_added_from_epic
'
;
ee/app/assets/javascripts/related_items_tree/store/actions.js
View file @
31915f7f
...
...
@@ -12,7 +12,7 @@ import {
relatedIssuesRemoveErrorMap
,
}
from
'
~/related_issues/constants
'
;
import
{
ChildType
,
ChildState
,
idProp
,
relativePositions
,
tracking
New
Issue
}
from
'
../constants
'
;
import
{
ChildType
,
ChildState
,
idProp
,
relativePositions
,
tracking
Added
Issue
}
from
'
../constants
'
;
import
epicChildReorder
from
'
../queries/epicChildReorder.mutation.graphql
'
;
import
{
processQueryResponse
,
formatChildItem
,
gqClient
}
from
'
../utils/epic_utils
'
;
...
...
@@ -335,6 +335,7 @@ export const addItem = ({ state, dispatch, getters }) => {
issuable_references
:
state
.
pendingReferences
,
})
.
then
(({
data
})
=>
{
Api
.
trackRedisHllUserEvent
(
trackingAddedIssue
);
dispatch
(
'
receiveAddItemSuccess
'
,
{
// Newly added item is always first in the list
rawItems
:
data
.
issuables
.
slice
(
0
,
state
.
pendingReferences
.
length
),
...
...
@@ -568,7 +569,7 @@ export const createNewIssue = ({ state, dispatch }, { issuesEndpoint, title }) =
return
axios
.
post
(
issuesEndpoint
,
{
epic_id
:
epicId
,
title
})
.
then
(({
data
})
=>
{
Api
.
trackRedisHllUserEvent
(
tracking
New
Issue
);
Api
.
trackRedisHllUserEvent
(
tracking
Added
Issue
);
dispatch
(
'
receiveCreateIssueSuccess
'
,
data
);
dispatch
(
'
fetchItems
'
,
{
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