Module: API::Helpers::ProjectsHelpers

Extended by:
ActiveSupport::Concern, Grape::API::Helpers
Defined in:
lib/api/helpers/projects_helpers.rb

Constant Summary collapse

STATISTICS_SORT_PARAMS =
%w[storage_size repository_size wiki_size].freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.update_params_at_least_one_ofObject


98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# File 'lib/api/helpers/projects_helpers.rb', line 98

def self.update_params_at_least_one_of
  [
    :allow_merge_on_skipped_pipeline,
    :autoclose_referenced_issues,
    :auto_devops_enabled,
    :auto_devops_deploy_strategy,
    :auto_cancel_pending_pipelines,
    :build_coverage_regex,
    :build_git_strategy,
    :build_timeout,
    :builds_access_level,
    :ci_config_path,
    :ci_default_git_depth,
    :container_registry_enabled,
    :container_expiration_policy_attributes,
    :default_branch,
    :description,
    :emails_disabled,
    :forking_access_level,
    :issues_access_level,
    :lfs_enabled,
    :merge_requests_access_level,
    :merge_method,
    :name,
    :only_allow_merge_if_all_discussions_are_resolved,
    :only_allow_merge_if_pipeline_succeeds,
    :pages_access_level,
    :path,
    :printing_merge_request_link_enabled,
    :public_builds,
    :remove_source_branch_after_merge,
    :repository_access_level,
    :request_access_enabled,
    :resolve_outdated_diff_discussions,
    :shared_runners_enabled,
    :snippets_access_level,
    :tag_list,
    :visibility,
    :wiki_access_level,
    :avatar,
    :suggestion_commit_message,
    :repository_storage,
    :compliance_framework_setting,
    :packages_enabled,
    :service_desk_enabled,

    # TODO: remove in API v5, replaced by *_access_level
    :issues_enabled,
    :jobs_enabled,
    :merge_requests_enabled,
    :wiki_enabled,
    :snippets_enabled
  ]
end

Instance Method Details

#filter_attributes_using_license!(attrs) ⇒ Object


153
154
# File 'lib/api/helpers/projects_helpers.rb', line 153

def filter_attributes_using_license!(attrs)
end