Commit 1038bc79 authored by Sean McGivern's avatar Sean McGivern

Add feature categories to controllers beginning with J

parent f69d8170
...@@ -7,6 +7,8 @@ class JiraConnect::ApplicationController < ApplicationController ...@@ -7,6 +7,8 @@ class JiraConnect::ApplicationController < ApplicationController
skip_before_action :verify_authenticity_token skip_before_action :verify_authenticity_token
before_action :verify_atlassian_jwt! before_action :verify_atlassian_jwt!
feature_category :integrations
attr_reader :current_jira_installation attr_reader :current_jira_installation
private private
......
...@@ -8,6 +8,8 @@ class JwtController < ApplicationController ...@@ -8,6 +8,8 @@ class JwtController < ApplicationController
# Add this before other actions, since we want to have the user or project # Add this before other actions, since we want to have the user or project
prepend_before_action :auth_user, :authenticate_project_or_user prepend_before_action :auth_user, :authenticate_project_or_user
feature_category :authentication_and_authorization
SERVICES = { SERVICES = {
Auth::ContainerRegistryAuthenticationService::AUDIENCE => Auth::ContainerRegistryAuthenticationService Auth::ContainerRegistryAuthenticationService::AUDIENCE => Auth::ContainerRegistryAuthenticationService
}.freeze }.freeze
......
...@@ -26,7 +26,7 @@ RSpec.describe "Every controller" do ...@@ -26,7 +26,7 @@ RSpec.describe "Every controller" do
next if controller.feature_category_for_action(action) next if controller.feature_category_for_action(action)
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', 'H', 'I', 'J',
'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