2020-10-24 23:57:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
module ArchivedAbilities
|
2020-10-24 23:57:45 +05:30
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
ARCHIVED_ABILITIES = %i[
|
2020-10-24 23:57:45 +05:30
|
|
|
admin_tag
|
|
|
|
push_code
|
|
|
|
push_to_delete_protected_branch
|
|
|
|
request_access
|
|
|
|
upload_file
|
|
|
|
resolve_note
|
|
|
|
create_merge_request_from
|
|
|
|
create_merge_request_in
|
|
|
|
award_emoji
|
2021-06-08 01:23:25 +05:30
|
|
|
create_incident
|
2020-10-24 23:57:45 +05:30
|
|
|
].freeze
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
ARCHIVED_FEATURES = %i[
|
2020-10-24 23:57:45 +05:30
|
|
|
issue
|
2021-04-17 20:07:23 +05:30
|
|
|
issue_board_list
|
2020-10-24 23:57:45 +05:30
|
|
|
merge_request
|
|
|
|
label
|
|
|
|
milestone
|
|
|
|
snippet
|
|
|
|
wiki
|
|
|
|
design
|
|
|
|
note
|
|
|
|
pipeline
|
|
|
|
pipeline_schedule
|
|
|
|
build
|
|
|
|
trigger
|
|
|
|
environment
|
|
|
|
deployment
|
|
|
|
commit_status
|
|
|
|
container_image
|
|
|
|
pages
|
|
|
|
cluster
|
|
|
|
release
|
|
|
|
].freeze
|
|
|
|
|
|
|
|
class_methods do
|
2023-03-04 22:38:38 +05:30
|
|
|
def archived_abilities
|
|
|
|
ARCHIVED_ABILITIES
|
2020-10-24 23:57:45 +05:30
|
|
|
end
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
def archived_features
|
|
|
|
ARCHIVED_FEATURES
|
2020-10-24 23:57:45 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
ArchivedAbilities::ClassMethods.prepend_mod_with('ArchivedAbilities::ClassMethods')
|