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
a1ff36f7
Commit
a1ff36f7
authored
Mar 07, 2022
by
syarynovskyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Successful cleanup confetti_post_signup experiment
parent
6b63ae26
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
76 deletions
+5
-76
app/assets/javascripts/pages/projects/learn_gitlab/components/learn_gitlab.vue
...s/pages/projects/learn_gitlab/components/learn_gitlab.vue
+1
-6
app/assets/javascripts/pages/projects/learn_gitlab/index/index.js
...ts/javascripts/pages/projects/learn_gitlab/index/index.js
+2
-3
app/views/projects/learn_gitlab/index.html.haml
app/views/projects/learn_gitlab/index.html.haml
+1
-5
config/feature_flags/experiment/confetti_post_signup.yml
config/feature_flags/experiment/confetti_post_signup.yml
+0
-8
ee/spec/features/registrations/user_sees_new_onboarding_flow_spec.rb
...tures/registrations/user_sees_new_onboarding_flow_spec.rb
+1
-42
spec/frontend/pages/projects/learn_gitlab/components/learn_gitlab_spec.js
...ges/projects/learn_gitlab/components/learn_gitlab_spec.js
+0
-12
No files found.
app/assets/javascripts/pages/projects/learn_gitlab/components/learn_gitlab.vue
View file @
a1ff36f7
...
...
@@ -27,11 +27,6 @@ export default {
required
:
true
,
type
:
Object
,
},
inviteMembers
:
{
type
:
Boolean
,
required
:
false
,
default
:
false
,
},
project
:
{
required
:
true
,
type
:
Object
,
...
...
@@ -54,7 +49,7 @@ export default {
},
},
mounted
()
{
if
(
this
.
inviteMembers
&&
this
.
getCookieForInviteMembers
())
{
if
(
this
.
getCookieForInviteMembers
())
{
this
.
openInviteMembersModal
(
'
celebrate
'
);
}
...
...
app/assets/javascripts/pages/projects/learn_gitlab/index/index.js
View file @
a1ff36f7
import
Vue
from
'
vue
'
;
import
initInviteMembersModal
from
'
~/invite_members/init_invite_members_modal
'
;
import
{
convertObjectPropsToCamelCase
,
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
import
LearnGitlab
from
'
../components/learn_gitlab.vue
'
;
function
initLearnGitlab
()
{
...
...
@@ -13,13 +13,12 @@ function initLearnGitlab() {
const
actions
=
convertObjectPropsToCamelCase
(
JSON
.
parse
(
el
.
dataset
.
actions
));
const
sections
=
convertObjectPropsToCamelCase
(
JSON
.
parse
(
el
.
dataset
.
sections
));
const
project
=
convertObjectPropsToCamelCase
(
JSON
.
parse
(
el
.
dataset
.
project
));
const
{
inviteMembers
}
=
el
.
dataset
;
return
new
Vue
({
el
,
render
(
createElement
)
{
return
createElement
(
LearnGitlab
,
{
props
:
{
actions
,
sections
,
project
,
inviteMembers
:
parseBoolean
(
inviteMembers
)
},
props
:
{
actions
,
sections
,
project
},
});
},
});
...
...
app/views/projects/learn_gitlab/index.html.haml
View file @
a1ff36f7
...
...
@@ -5,8 +5,4 @@
=
render
'projects/invite_members_modal'
,
project:
@project
-
experiment
(
:confetti_post_signup
,
actor:
current_user
)
do
|
e
|
-
e
.
control
do
#js-learn-gitlab-app
{
data:
data
}
-
e
.
candidate
do
#js-learn-gitlab-app
{
data:
data
.
merge
(
invite_members:
'true'
)
}
#js-learn-gitlab-app
{
data:
data
}
config/feature_flags/experiment/confetti_post_signup.yml
deleted
100644 → 0
View file @
6b63ae26
---
name
:
confetti_post_signup
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/70011
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/339890
milestone
:
'
14.5'
type
:
experiment
group
:
group::expansion
default_enabled
:
false
ee/spec/features/registrations/user_sees_new_onboarding_flow_spec.rb
View file @
a1ff36f7
...
...
@@ -40,47 +40,6 @@ RSpec.describe 'User sees new onboarding flow', :js do
click_on
"Ok, let's go"
expect
(
page
).
to
have_content
(
'Learn GitLab'
)
end
context
'with confetti_post_signup experiment candidate experience'
,
:experiment
do
before
do
stub_experiments
(
change_continuous_onboarding_link_urls: :control
,
combined_registration: :control
,
confetti_post_signup: :candidate
)
end
it
'shows continuous onboarding flow pages with celebration invite modal'
do
sign_in
(
create
(
:user
))
visit
users_sign_up_welcome_path
expect
(
page
).
to
have_content
(
'Welcome to GitLab'
)
choose
'Just me'
click_on
'Continue'
expect
(
page
).
to
have_content
(
'Create your group'
)
fill_in
'group_name'
,
with:
'test'
expect
(
page
).
to
have_field
(
'group_path'
,
with:
'test'
)
click_on
'Create group'
expect
(
page
).
to
have_content
(
'Create/import your first project'
)
fill_in
'project_name'
,
with:
'test'
expect
(
page
).
to
have_field
(
'project_path'
,
with:
'test'
)
click_on
'Create project'
expect
(
page
).
to
have_content
(
'Get started with GitLab'
)
Sidekiq
::
Worker
.
drain_all
click_on
"Ok, let's go"
expect
(
page
).
to
have_content
(
'Learn GitLab'
)
expect
(
page
).
to
have_content
(
'GitLab is better with colleagues!'
)
end
expect
(
page
).
to
have_content
(
'GitLab is better with colleagues!'
)
end
end
spec/frontend/pages/projects/learn_gitlab/components/learn_gitlab_spec.js
View file @
a1ff36f7
...
...
@@ -9,7 +9,6 @@ import { testActions, testSections, testProject } from './mock_data';
describe
(
'
Learn GitLab
'
,
()
=>
{
let
wrapper
;
let
sidebar
;
let
inviteMembers
=
false
;
const
createWrapper
=
()
=>
{
wrapper
=
mount
(
LearnGitlab
,
{
...
...
@@ -17,7 +16,6 @@ describe('Learn GitLab', () => {
actions
:
testActions
,
sections
:
testSections
,
project
:
testProject
,
inviteMembers
,
},
});
};
...
...
@@ -38,7 +36,6 @@ describe('Learn GitLab', () => {
afterEach
(()
=>
{
wrapper
.
destroy
();
wrapper
=
null
;
inviteMembers
=
false
;
sidebar
.
remove
();
});
...
...
@@ -73,7 +70,6 @@ describe('Learn GitLab', () => {
});
it
(
'
emits openModal
'
,
()
=>
{
inviteMembers
=
true
;
Cookies
.
set
(
INVITE_MODAL_OPEN_COOKIE
,
true
);
createWrapper
();
...
...
@@ -86,19 +82,11 @@ describe('Learn GitLab', () => {
});
it
(
'
does not emit openModal when cookie is not set
'
,
()
=>
{
inviteMembers
=
true
;
createWrapper
();
expect
(
spy
).
not
.
toHaveBeenCalled
();
expect
(
cookieSpy
).
toHaveBeenCalledWith
(
INVITE_MODAL_OPEN_COOKIE
);
});
it
(
'
does not emit openModal when inviteMembers is false
'
,
()
=>
{
createWrapper
();
expect
(
spy
).
not
.
toHaveBeenCalled
();
});
});
describe
(
'
when the showSuccessfulInvitationsAlert event is fired
'
,
()
=>
{
...
...
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