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
ab084438
Commit
ab084438
authored
Aug 19, 2020
by
Alishan Ladhani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send event to Product Analytics snowplow collector
parent
65ca5f71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
ee/app/services/epics/issue_promote_service.rb
ee/app/services/epics/issue_promote_service.rb
+4
-0
ee/spec/services/epics/issue_promote_service_spec.rb
ee/spec/services/epics/issue_promote_service_spec.rb
+2
-0
No files found.
ee/app/services/epics/issue_promote_service.rb
View file @
ab084438
...
...
@@ -34,6 +34,10 @@ module Epics
::
Gitlab
::
Tracking
.
event
(
'epics'
,
'promote'
,
property:
'issue_id'
,
value:
original_entity
.
id
)
::
ProductAnalytics
::
Tracker
.
event
(
'epics'
,
'promote'
,
property:
'issue_id'
,
value:
original_entity
.
id
)
end
def
create_new_entity
...
...
ee/spec/services/epics/issue_promote_service_spec.rb
View file @
ab084438
...
...
@@ -60,6 +60,7 @@ RSpec.describe Epics::IssuePromoteService do
before
do
allow
(
Gitlab
::
Tracking
).
to
receive
(
:event
).
with
(
'epics'
,
'promote'
,
an_instance_of
(
Hash
))
allow
(
ProductAnalytics
::
Tracker
).
to
receive
(
:event
).
with
(
'epics'
,
'promote'
,
an_instance_of
(
Hash
))
subject
.
execute
(
issue
)
end
...
...
@@ -145,6 +146,7 @@ RSpec.describe Epics::IssuePromoteService do
context
'when issue has notes'
do
before
do
allow
(
Gitlab
::
Tracking
).
to
receive
(
:event
).
with
(
'epics'
,
'promote'
,
an_instance_of
(
Hash
))
allow
(
ProductAnalytics
::
Tracker
).
to
receive
(
:event
).
with
(
'epics'
,
'promote'
,
an_instance_of
(
Hash
))
issue
.
reload
end
...
...
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