Commit 473ee64b authored by Kerri Miller's avatar Kerri Miller

Merge branch 'pb-feature-category-code-review-update' into 'master'

Update feature_category of workers to code_review

See merge request gitlab-org/gitlab!47888
parents 397f75b8 0d494514
...@@ -396,7 +396,7 @@ ...@@ -396,7 +396,7 @@
:idempotent: :idempotent:
:tags: [] :tags: []
- :name: cronjob:schedule_merge_request_cleanup_refs - :name: cronjob:schedule_merge_request_cleanup_refs
:feature_category: :source_code_management :feature_category: :code_review
:has_external_dependencies: :has_external_dependencies:
:urgency: :low :urgency: :low
:resource_boundary: :unknown :resource_boundary: :unknown
...@@ -404,7 +404,7 @@ ...@@ -404,7 +404,7 @@
:idempotent: true :idempotent: true
:tags: [] :tags: []
- :name: cronjob:schedule_migrate_external_diffs - :name: cronjob:schedule_migrate_external_diffs
:feature_category: :source_code_management :feature_category: :code_review
:has_external_dependencies: :has_external_dependencies:
:urgency: :low :urgency: :low
:resource_boundary: :unknown :resource_boundary: :unknown
...@@ -428,7 +428,7 @@ ...@@ -428,7 +428,7 @@
:idempotent: :idempotent:
:tags: [] :tags: []
- :name: cronjob:stuck_merge_jobs - :name: cronjob:stuck_merge_jobs
:feature_category: :source_code_management :feature_category: :code_review
:has_external_dependencies: :has_external_dependencies:
:urgency: :low :urgency: :low
:resource_boundary: :unknown :resource_boundary: :unknown
...@@ -1426,7 +1426,7 @@ ...@@ -1426,7 +1426,7 @@
:idempotent: true :idempotent: true
:tags: [] :tags: []
- :name: create_note_diff_file - :name: create_note_diff_file
:feature_category: :source_code_management :feature_category: :code_review
:has_external_dependencies: :has_external_dependencies:
:urgency: :low :urgency: :low
:resource_boundary: :unknown :resource_boundary: :unknown
...@@ -1442,7 +1442,7 @@ ...@@ -1442,7 +1442,7 @@
:idempotent: :idempotent:
:tags: [] :tags: []
- :name: delete_diff_files - :name: delete_diff_files
:feature_category: :source_code_management :feature_category: :code_review
:has_external_dependencies: :has_external_dependencies:
:urgency: :low :urgency: :low
:resource_boundary: :unknown :resource_boundary: :unknown
...@@ -1700,7 +1700,7 @@ ...@@ -1700,7 +1700,7 @@
:idempotent: :idempotent:
:tags: [] :tags: []
- :name: merge_request_cleanup_refs - :name: merge_request_cleanup_refs
:feature_category: :source_code_management :feature_category: :code_review
:has_external_dependencies: :has_external_dependencies:
:urgency: :low :urgency: :low
:resource_boundary: :unknown :resource_boundary: :unknown
...@@ -1708,7 +1708,7 @@ ...@@ -1708,7 +1708,7 @@
:idempotent: true :idempotent: true
:tags: [] :tags: []
- :name: merge_request_mergeability_check - :name: merge_request_mergeability_check
:feature_category: :source_code_management :feature_category: :code_review
:has_external_dependencies: :has_external_dependencies:
:urgency: :low :urgency: :low
:resource_boundary: :unknown :resource_boundary: :unknown
...@@ -1732,7 +1732,7 @@ ...@@ -1732,7 +1732,7 @@
:idempotent: true :idempotent: true
:tags: [] :tags: []
- :name: migrate_external_diffs - :name: migrate_external_diffs
:feature_category: :source_code_management :feature_category: :code_review
:has_external_dependencies: :has_external_dependencies:
:urgency: :low :urgency: :low
:resource_boundary: :unknown :resource_boundary: :unknown
...@@ -1756,7 +1756,7 @@ ...@@ -1756,7 +1756,7 @@
:idempotent: :idempotent:
:tags: [] :tags: []
- :name: new_merge_request - :name: new_merge_request
:feature_category: :source_code_management :feature_category: :code_review
:has_external_dependencies: :has_external_dependencies:
:urgency: :high :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
...@@ -2072,7 +2072,7 @@ ...@@ -2072,7 +2072,7 @@
:idempotent: true :idempotent: true
:tags: [] :tags: []
- :name: update_merge_requests - :name: update_merge_requests
:feature_category: :source_code_management :feature_category: :code_review
:has_external_dependencies: :has_external_dependencies:
:urgency: :high :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
class CreateNoteDiffFileWorker # rubocop:disable Scalability/IdempotentWorker class CreateNoteDiffFileWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
feature_category :source_code_management feature_category :code_review
def perform(diff_note_id) def perform(diff_note_id)
diff_note = DiffNote.find(diff_note_id) diff_note = DiffNote.find(diff_note_id)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
class DeleteDiffFilesWorker # rubocop:disable Scalability/IdempotentWorker class DeleteDiffFilesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
feature_category :source_code_management feature_category :code_review
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def perform(merge_request_diff_id) def perform(merge_request_diff_id)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
class MergeRequestCleanupRefsWorker class MergeRequestCleanupRefsWorker
include ApplicationWorker include ApplicationWorker
feature_category :source_code_management feature_category :code_review
idempotent! idempotent!
def perform(merge_request_id) def perform(merge_request_id)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
class MergeRequestMergeabilityCheckWorker class MergeRequestMergeabilityCheckWorker
include ApplicationWorker include ApplicationWorker
feature_category :source_code_management feature_category :code_review
idempotent! idempotent!
def perform(merge_request_id) def perform(merge_request_id)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
class MigrateExternalDiffsWorker # rubocop:disable Scalability/IdempotentWorker class MigrateExternalDiffsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
feature_category :source_code_management feature_category :code_review
def perform(merge_request_diff_id) def perform(merge_request_diff_id)
diff = MergeRequestDiff.find_by_id(merge_request_diff_id) diff = MergeRequestDiff.find_by_id(merge_request_diff_id)
......
...@@ -4,7 +4,7 @@ class NewMergeRequestWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -4,7 +4,7 @@ class NewMergeRequestWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
include NewIssuable include NewIssuable
feature_category :source_code_management feature_category :code_review
urgency :high urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
weight 2 weight 2
......
...@@ -4,7 +4,7 @@ class ScheduleMergeRequestCleanupRefsWorker ...@@ -4,7 +4,7 @@ class ScheduleMergeRequestCleanupRefsWorker
include ApplicationWorker include ApplicationWorker
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :source_code_management feature_category :code_review
idempotent! idempotent!
# Based on existing data, MergeRequestCleanupRefsWorker can run 3 jobs per # Based on existing data, MergeRequestCleanupRefsWorker can run 3 jobs per
......
...@@ -10,7 +10,7 @@ class ScheduleMigrateExternalDiffsWorker # rubocop:disable Scalability/Idempoten ...@@ -10,7 +10,7 @@ class ScheduleMigrateExternalDiffsWorker # rubocop:disable Scalability/Idempoten
include Gitlab::ExclusiveLeaseHelpers include Gitlab::ExclusiveLeaseHelpers
feature_category :source_code_management feature_category :code_review
def perform def perform
in_lock(self.class.name.underscore, ttl: 2.hours, retries: 0) do in_lock(self.class.name.underscore, ttl: 2.hours, retries: 0) do
......
...@@ -4,7 +4,7 @@ class StuckMergeJobsWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -4,7 +4,7 @@ class StuckMergeJobsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :source_code_management feature_category :code_review
def self.logger def self.logger
Gitlab::AppLogger Gitlab::AppLogger
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
class UpdateMergeRequestsWorker # rubocop:disable Scalability/IdempotentWorker class UpdateMergeRequestsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
feature_category :source_code_management feature_category :code_review
urgency :high urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
weight 3 weight 3
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
class Projects::ApproverGroupsController < Projects::ApplicationController class Projects::ApproverGroupsController < Projects::ApplicationController
before_action :authorize_for_subject! before_action :authorize_for_subject!
feature_category :code_review feature_category :source_code_management
def destroy def destroy
subject.approver_groups.find(params[:id]).destroy subject.approver_groups.find(params[:id]).destroy
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
class Projects::ApproversController < Projects::ApplicationController class Projects::ApproversController < Projects::ApplicationController
before_action :authorize_for_subject! before_action :authorize_for_subject!
feature_category :code_review feature_category :source_code_management
# @deprecated # @deprecated
def destroy def destroy
......
...@@ -4,7 +4,7 @@ module API ...@@ -4,7 +4,7 @@ module API
class MergeRequestApprovalRules < ::API::Base class MergeRequestApprovalRules < ::API::Base
before { authenticate_non_get! } before { authenticate_non_get! }
feature_category :code_review feature_category :source_code_management
helpers do helpers do
def find_merge_request_approval_rule(merge_request, id) def find_merge_request_approval_rule(merge_request, id)
......
...@@ -6,7 +6,7 @@ module API ...@@ -6,7 +6,7 @@ module API
helpers ::API::Helpers::ProjectApprovalRulesHelpers helpers ::API::Helpers::ProjectApprovalRulesHelpers
feature_category :code_review feature_category :source_code_management
params do params do
requires :id, type: String, desc: 'The ID of a project' requires :id, type: String, desc: 'The ID of a project'
......
...@@ -6,7 +6,7 @@ module API ...@@ -6,7 +6,7 @@ module API
helpers ::API::Helpers::ProjectApprovalRulesHelpers helpers ::API::Helpers::ProjectApprovalRulesHelpers
feature_category :code_review feature_category :source_code_management
params do params do
requires :id, type: String, desc: 'The ID of a project' requires :id, type: String, desc: 'The ID of a project'
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
module API module API
class ProjectApprovals < ::API::Base class ProjectApprovals < ::API::Base
feature_category :code_review feature_category :source_code_management
before { authenticate! } before { authenticate! }
before { authorize! :update_approvers, user_project } before { authorize! :update_approvers, user_project }
......
...@@ -4,7 +4,7 @@ module API ...@@ -4,7 +4,7 @@ module API
class MergeRequestApprovals < ::API::Base class MergeRequestApprovals < ::API::Base
before { authenticate_non_get! } before { authenticate_non_get! }
feature_category :code_review feature_category :source_code_management
helpers do helpers do
params :ee_approval_params do params :ee_approval_params do
......
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