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
ecb4e970
Commit
ecb4e970
authored
Nov 15, 2021
by
eugielimpin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Track namespace as subject and sticky experiment to current user
parent
1bd8a690
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
app/controllers/projects/ci/pipeline_editor_controller.rb
app/controllers/projects/ci/pipeline_editor_controller.rb
+2
-1
spec/controllers/projects/ci/pipeline_editor_controller_spec.rb
...ontrollers/projects/ci/pipeline_editor_controller_spec.rb
+3
-6
No files found.
app/controllers/projects/ci/pipeline_editor_controller.rb
View file @
ecb4e970
...
...
@@ -19,8 +19,9 @@ class Projects::Ci::PipelineEditorController < Projects::ApplicationController
end
def
setup_walkthrough_experiment
experiment
(
:pipeline_editor_walkthrough
,
actor
:
current_user
)
do
|
e
|
experiment
(
:pipeline_editor_walkthrough
,
namespace:
@project
.
namespace
,
sticky_to
:
current_user
)
do
|
e
|
e
.
candidate
{}
e
.
record!
end
end
end
spec/controllers/projects/ci/pipeline_editor_controller_spec.rb
View file @
ecb4e970
...
...
@@ -42,13 +42,10 @@ RSpec.describe Projects::Ci::PipelineEditorController do
project
.
add_developer
(
user
)
end
it
'tracks the assignment'
,
:experiment
do
expect
(
experiment
(
:pipeline_editor_walkthrough
))
.
to
track
(
:assignment
)
.
with_context
(
actor:
user
)
.
on_next_instance
subject
(
:action
)
{
show_request
}
show_request
it_behaves_like
'tracks assignment and records the subject'
,
:pipeline_editor_walkthrough
,
:namespace
do
subject
{
project
.
namespace
}
end
end
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