diff options
Diffstat (limited to 'app/controllers')
4 files changed, 0 insertions, 39 deletions
diff --git a/app/controllers/groups/observability_controller.rb b/app/controllers/groups/observability_controller.rb deleted file mode 100644 index 525407f5849..00000000000 --- a/app/controllers/groups/observability_controller.rb +++ /dev/null @@ -1,36 +0,0 @@ -# frozen_string_literal: true -module Groups - class ObservabilityController < Groups::ApplicationController - include ::Observability::ContentSecurityPolicy - - feature_category :tracing - - before_action :check_observability_allowed - - def dashboards - render_observability - end - - def manage - render_observability - end - - def explore - render_observability - end - - def datasources - render_observability - end - - private - - def render_observability - render 'observability', layout: 'group', locals: { base_layout: 'layouts/fullscreen' } - end - - def check_observability_allowed - render_404 unless Gitlab::Observability.allowed_for_action?(current_user, group, params[:action]) - end - end -end diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb index 031b32a712a..656e4fdaefb 100644 --- a/app/controllers/projects/issues_controller.rb +++ b/app/controllers/projects/issues_controller.rb @@ -7,7 +7,6 @@ class Projects::IssuesController < Projects::ApplicationController include IssuableCollections include IssuesCalendar include RecordUserLastActivity - include ::Observability::ContentSecurityPolicy ISSUES_EXCEPT_ACTIONS = %i[index calendar new create bulk_update import_csv export_csv service_desk].freeze SET_ISSUABLES_INDEX_ONLY_ACTIONS = %i[index calendar service_desk].freeze diff --git a/app/controllers/projects/merge_requests/creations_controller.rb b/app/controllers/projects/merge_requests/creations_controller.rb index 6a3523b82d9..33a93ed99fb 100644 --- a/app/controllers/projects/merge_requests/creations_controller.rb +++ b/app/controllers/projects/merge_requests/creations_controller.rb @@ -4,7 +4,6 @@ class Projects::MergeRequests::CreationsController < Projects::MergeRequests::Ap include DiffForPath include DiffHelper include RendersCommits - include ::Observability::ContentSecurityPolicy skip_before_action :merge_request before_action :authorize_create_merge_request_from! diff --git a/app/controllers/projects/merge_requests_controller.rb b/app/controllers/projects/merge_requests_controller.rb index 5cd5f8a1dcd..b9b9c696e81 100644 --- a/app/controllers/projects/merge_requests_controller.rb +++ b/app/controllers/projects/merge_requests_controller.rb @@ -11,7 +11,6 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo include SourcegraphDecorator include DiffHelper include Gitlab::Cache::Helpers - include ::Observability::ContentSecurityPolicy prepend_before_action(only: [:index]) { authenticate_sessionless_user!(:rss) } skip_before_action :merge_request, only: [:index, :bulk_update, :export_csv] |