diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-21 10:08:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-21 10:08:36 +0300 |
commit | 48aff82709769b098321c738f3444b9bdaa694c6 (patch) | |
tree | e00c7c43e2d9b603a5a6af576b1685e400410dee /app/controllers/registrations | |
parent | 879f5329ee916a948223f8f43d77fba4da6cd028 (diff) |
Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42
Diffstat (limited to 'app/controllers/registrations')
-rw-r--r-- | app/controllers/registrations/experience_levels_controller.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/controllers/registrations/experience_levels_controller.rb b/app/controllers/registrations/experience_levels_controller.rb index 38cffff91eb..23126983eb5 100644 --- a/app/controllers/registrations/experience_levels_controller.rb +++ b/app/controllers/registrations/experience_levels_controller.rb @@ -7,12 +7,20 @@ module Registrations before_action :check_experiment_enabled before_action :ensure_namespace_path_param + feature_category :navigation + def update current_user.experience_level = params[:experience_level] if current_user.save hide_advanced_issues - redirect_to group_path(params[:namespace_path]) + record_experiment_user(:default_to_issues_board) + + if experiment_enabled?(:default_to_issues_board) && learn_gitlab.available? + redirect_to namespace_project_board_path(params[:namespace_path], learn_gitlab.project, learn_gitlab.board) + else + redirect_to group_path(params[:namespace_path]) + end else render :show end |