summaryrefslogtreecommitdiff
path: root/app/controllers/registrations/welcome_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/registrations/welcome_controller.rb')
-rw-r--r--app/controllers/registrations/welcome_controller.rb17
1 files changed, 15 insertions, 2 deletions
diff --git a/app/controllers/registrations/welcome_controller.rb b/app/controllers/registrations/welcome_controller.rb
index 416bbf43464..39d3125a4a3 100644
--- a/app/controllers/registrations/welcome_controller.rb
+++ b/app/controllers/registrations/welcome_controller.rb
@@ -16,7 +16,9 @@ module Registrations
result = ::Users::SignupService.new(current_user, update_params).execute
if result[:status] == :success
- return redirect_to experiment(:combined_registration, user: current_user).redirect_path(trial_params) if show_signup_onboarding?
+ return redirect_to issues_dashboard_path(assignee_username: current_user.username) if show_tasks_to_be_done?
+
+ return redirect_to update_success_path if show_signup_onboarding?
members = current_user.members
@@ -64,12 +66,23 @@ module Registrations
members.last.source.activity_path
end
+ # overridden in EE
def show_signup_onboarding?
false
end
+ def show_tasks_to_be_done?
+ return unless experiment(:invite_members_for_task).enabled?
+
+ MemberTask.for_members(current_user.members).exists?
+ end
+
+ # overridden in EE
def trial_params
- nil
+ end
+
+ # overridden in EE
+ def update_success_path
end
end
end