Commit c649c784 authored by Sean McGivern's avatar Sean McGivern

Add feature categories to controllers beginning with R

parent 7d7cd4ea
...@@ -7,6 +7,8 @@ module Registrations ...@@ -7,6 +7,8 @@ module Registrations
before_action :check_experiment_enabled before_action :check_experiment_enabled
before_action :ensure_namespace_path_param before_action :ensure_namespace_path_param
feature_category :navigation
def update def update
current_user.experience_level = params[:experience_level] current_user.experience_level = params[:experience_level]
......
...@@ -15,6 +15,8 @@ class RegistrationsController < Devise::RegistrationsController ...@@ -15,6 +15,8 @@ class RegistrationsController < Devise::RegistrationsController
if: -> { action_name == 'create' && Gitlab::CurrentSettings.current_application_settings.enforce_terms? } if: -> { action_name == 'create' && Gitlab::CurrentSettings.current_application_settings.enforce_terms? }
before_action :load_recaptcha, only: :new before_action :load_recaptcha, only: :new
feature_category :authentication_and_authorization
def new def new
if experiment_enabled?(:signup_flow) if experiment_enabled?(:signup_flow)
track_experiment_event(:terms_opt_in, 'start') track_experiment_event(:terms_opt_in, 'start')
......
...@@ -20,6 +20,8 @@ module Repositories ...@@ -20,6 +20,8 @@ module Repositories
prepend_before_action :authenticate_user, :parse_repo_path prepend_before_action :authenticate_user, :parse_repo_path
feature_category :source_code_management
private private
def download_request? def download_request?
......
# frozen_string_literal: true # frozen_string_literal: true
class RunnerSetupController < ApplicationController class RunnerSetupController < ApplicationController
feature_category :continuous_integration
def platforms def platforms
render json: Gitlab::Ci::RunnerInstructions::OS.merge(Gitlab::Ci::RunnerInstructions::OTHER_ENVIRONMENTS) render json: Gitlab::Ci::RunnerInstructions::OS.merge(Gitlab::Ci::RunnerInstructions::OTHER_ENVIRONMENTS)
end end
......
...@@ -7,6 +7,8 @@ module Registrations ...@@ -7,6 +7,8 @@ module Registrations
before_action :authorize_create_group!, only: :new before_action :authorize_create_group!, only: :new
before_action :check_experiment_enabled before_action :check_experiment_enabled
feature_category :navigation
def new def new
@group = Group.new(visibility_level: helpers.default_group_visibility) @group = Group.new(visibility_level: helpers.default_group_visibility)
end end
......
...@@ -7,6 +7,8 @@ module Registrations ...@@ -7,6 +7,8 @@ module Registrations
before_action :check_experiment_enabled before_action :check_experiment_enabled
before_action :find_namespace, only: :new before_action :find_namespace, only: :new
feature_category :navigation
def new def new
@project = Project.new(namespace: @namespace) @project = Project.new(namespace: @namespace)
end end
......
...@@ -27,7 +27,7 @@ RSpec.describe "Every controller" do ...@@ -27,7 +27,7 @@ RSpec.describe "Every controller" do
next unless controller.to_s.start_with?('B', 'C', 'D', 'E', 'F', next unless controller.to_s.start_with?('B', 'C', 'D', 'E', 'F',
'H', 'I', 'J', 'K', 'L', 'H', 'I', 'J', 'K', 'L',
'M', 'N', 'O', 'M', 'N', 'O', 'Q', 'R',
'Projects::MergeRequestsController') 'Projects::MergeRequestsController')
"#{controller}##{action}" "#{controller}##{action}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment