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
before_action :check_experiment_enabled
before_action :ensure_namespace_path_param
feature_category :navigation
def update
current_user.experience_level = params[:experience_level]
......
......@@ -15,6 +15,8 @@ class RegistrationsController < Devise::RegistrationsController
if: -> { action_name == 'create' && Gitlab::CurrentSettings.current_application_settings.enforce_terms? }
before_action :load_recaptcha, only: :new
feature_category :authentication_and_authorization
def new
if experiment_enabled?(:signup_flow)
track_experiment_event(:terms_opt_in, 'start')
......
......@@ -20,6 +20,8 @@ module Repositories
prepend_before_action :authenticate_user, :parse_repo_path
feature_category :source_code_management
private
def download_request?
......
# frozen_string_literal: true
class RunnerSetupController < ApplicationController
feature_category :continuous_integration
def platforms
render json: Gitlab::Ci::RunnerInstructions::OS.merge(Gitlab::Ci::RunnerInstructions::OTHER_ENVIRONMENTS)
end
......
......@@ -7,6 +7,8 @@ module Registrations
before_action :authorize_create_group!, only: :new
before_action :check_experiment_enabled
feature_category :navigation
def new
@group = Group.new(visibility_level: helpers.default_group_visibility)
end
......
......@@ -7,6 +7,8 @@ module Registrations
before_action :check_experiment_enabled
before_action :find_namespace, only: :new
feature_category :navigation
def new
@project = Project.new(namespace: @namespace)
end
......
......@@ -27,7 +27,7 @@ RSpec.describe "Every controller" do
next unless controller.to_s.start_with?('B', 'C', 'D', 'E', 'F',
'H', 'I', 'J', 'K', 'L',
'M', 'N', 'O',
'M', 'N', 'O', 'Q', 'R',
'Projects::MergeRequestsController')
"#{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