OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
chore[Op#53019]: rubocop amend `modules/gitlab_integration`
Kabiru Mwenjaa2ad0655912e
diff --git a/modules/gitlab_integration/app/models/gitlab_issue.rb b/modules/gitlab_integration/app/models/gitlab_issue.rbindex d7fe501a8a4..58ba450d1e4 100644--- a/modules/gitlab_integration/app/models/gitlab_issue.rb+++ b/modules/gitlab_integration/app/models/gitlab_issue.rb@@ -50,7 +50,7 @@ class GitlabIssue < ApplicationRecordunless: :partial?validate :validate_labels_schema- scope :without_work_package, -> { left_outer_joins(:work_packages).where(work_packages: { id: nil }) }+ scope :without_work_package, -> { where.missing(:work_packages) }def self.find_by_gitlab_identifiers(id: nil, url: nil, initialize: false)raise ArgumentError, "needs an id or an url" if id.nil? && url.blank?diff --git a/modules/gitlab_integration/app/models/gitlab_merge_request.rb b/modules/gitlab_integration/app/models/gitlab_merge_request.rbindex 4449e85810b..0cd08bd2f1f 100644--- a/modules/gitlab_integration/app/models/gitlab_merge_request.rb+++ b/modules/gitlab_integration/app/models/gitlab_merge_request.rb@@ -53,7 +53,7 @@ class GitlabMergeRequest < ApplicationRecordunless: :partial?validate :validate_labels_schema- scope :without_work_package, -> { left_outer_joins(:work_packages).where(work_packages: { id: nil }) }+ scope :without_work_package, -> { where.missing(:work_packages) }def self.find_by_gitlab_identifiers(id: nil, url: nil, initialize: false)raise ArgumentError, "needs an id or an url" if id.nil? && url.blank?diff --git a/modules/gitlab_integration/db/migrate/20211015110000_gitlab_integration_models.rb b/modules/gitlab_integration/db/migrate/20211015110000_gitlab_integration_models.rbindex 587a72e946d..847183710ae 100644--- a/modules/gitlab_integration/db/migrate/20211015110000_gitlab_integration_models.rb+++ b/modules/gitlab_integration/db/migrate/20211015110000_gitlab_integration_models.rb@@ -33,7 +33,7 @@ class GitlabIntegrationModels < ActiveRecord::Migration[6.1]t.references :gitlab_usert.references :merged_by- t.bigint :gitlab_id, unique: true+ t.bigint :gitlab_id, unique: truet.integer :number, null: falset.string :gitlab_html_url, null: false, unique: truet.string :state, null: false@@ -45,6 +45,7 @@ class GitlabIntegrationModels < ActiveRecord::Migration[6.1]t.boolean :mergedt.datetime :merged_att.json :labels # [{name, color}]+t.timestampsend@@ -55,7 +56,6 @@ class GitlabIntegrationModels < ActiveRecord::Migration[6.1]name: "unique_index_gl_mrs_wps_on_gl_mr_id_and_wp_id"end-create_table :gitlab_users do |t|t.bigint :gitlab_id, null: false, unique: truet.string :gitlab_name, null: false@@ -66,14 +66,13 @@ class GitlabIntegrationModels < ActiveRecord::Migration[6.1]t.timestampsend-create_table :gitlab_pipelines do |t|t.references :gitlab_merge_request, null: falset.bigint :gitlab_id, null: false, unique: truet.string :gitlab_html_url, null: false- t.bigint :project_id, null: false- t.string :gitlab_user_avatar_url, null: false+ t.bigint :project_id, null: false+ t.string :gitlab_user_avatar_url, null: falset.string :status, null: falset.string :name, null: falset.string :details_urldiff --git a/modules/gitlab_integration/db/migrate/20211015110002_add_gitlab_issues.rb b/modules/gitlab_integration/db/migrate/20211015110002_add_gitlab_issues.rbindex 2e046b29d5c..6256a34212f 100644--- a/modules/gitlab_integration/db/migrate/20211015110002_add_gitlab_issues.rb+++ b/modules/gitlab_integration/db/migrate/20211015110002_add_gitlab_issues.rb@@ -27,12 +27,11 @@# See docs/COPYRIGHT.rdoc for more details.#++class AddGitlabIssues < ActiveRecord::Migration[7.0]- # rubocop:disable Metrics/AbcSizedef changecreate_table :gitlab_issues do |t|t.references :gitlab_user- t.bigint :gitlab_id, unique: true+ t.bigint :gitlab_id, unique: truet.integer :number, null: falset.string :gitlab_html_url, null: false, unique: truet.string :state, null: false@@ -41,6 +40,7 @@ class AddGitlabIssues < ActiveRecord::Migration[7.0]t.string :titlet.text :bodyt.json :labels # [{name, color}]+t.timestampsend@@ -50,7 +50,5 @@ class AddGitlabIssues < ActiveRecord::Migration[7.0]unique: true,name: "unique_index_gl_issues_wps_on_gl_issue_id_and_wp_id"end-end- # rubocop:enable Metrics/AbcSizeenddiff --git a/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_issue_representer.rb b/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_issue_representer.rbindex f0043d47551..5ed0b8dd4cc 100644--- a/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_issue_representer.rb+++ b/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_issue_representer.rb@@ -42,7 +42,7 @@ module APIdef initialize(model, current_user:, **_opts)# We force `embed_links` so that github_user and github_check_runs# are embedded and we can avoid having separate endpoints.- super(model, current_user: current_user, embed_links: true)+ super(model, current_user:, embed_links: true)endcached_representer key_parts: %i[gitlab_user]@@ -61,7 +61,7 @@ module APIdate_time_property :gitlab_updated_at,render_nil: true,- setter: ->(*) { nil }+ setter: ->(*) {}property :title,render_nil: truediff --git a/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_user_representer.rb b/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_user_representer.rbindex 46627d1b173..535b9ddb49a 100644--- a/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_user_representer.rb+++ b/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_user_representer.rb@@ -37,7 +37,7 @@ module APIinclude API::Caching::CachedRepresenterself_link id_attribute: :id,- title_getter: ->(*) { nil }+ title_getter: ->(*) {}property :gitlab_name, as: :loginproperty :gitlab_email, as: :emaildiff --git a/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_representer.rb b/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_representer.rbindex fa08a2b1a4d..7286b080bcf 100644--- a/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_representer.rb+++ b/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_representer.rb@@ -42,7 +42,7 @@ module APIdef initialize(model, current_user:, **_opts)# We force `embed_links` so that github_user and github_check_runs# are embedded and we can avoid having separate endpoints.- super(model, current_user: current_user, embed_links: true)+ super(model, current_user:, embed_links: true)endcached_representer key_parts: %i[gitlab_user merged_by]@@ -61,7 +61,7 @@ module APIdate_time_property :gitlab_updated_at,render_nil: true,- setter: ->(*) { nil }+ setter: ->(*) {}property :title,render_nil: truediff --git a/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_pipeline_representer.rb b/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_pipeline_representer.rbindex fc3aab2bf24..a52c5700d9c 100644--- a/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_pipeline_representer.rb+++ b/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_pipeline_representer.rb@@ -38,7 +38,7 @@ module APIinclude API::Decorators::DatePropertyself_link id_attribute: :id,- title_getter: ->(*) { nil }+ title_getter: ->(*) {}property :gitlab_html_url, as: :htmlUrlproperty :gitlab_user_avatar_url, as: :userAvatarUrldiff --git a/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_user_representer.rb b/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_user_representer.rbindex 55f90e5c641..63ef95738b6 100644--- a/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_user_representer.rb+++ b/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_user_representer.rb@@ -37,7 +37,7 @@ module APIinclude API::Caching::CachedRepresenterself_link id_attribute: :id,- title_getter: ->(*) { nil }+ title_getter: ->(*) {}property :gitlab_name, as: :loginproperty :gitlab_email, as: :emaildiff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/engine.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/engine.rbindex fbb8b2abf4d..80855b058bf 100644--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/engine.rb+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/engine.rb@@ -29,10 +29,10 @@require 'open_project/plugins'-require_relative './patches/api/work_package_representer'-require_relative './notification_handlers'-require_relative './hook_handler'-require_relative './services'+require_relative 'patches/api/work_package_representer'+require_relative 'notification_handlers'+require_relative 'hook_handler'+require_relative 'services'module OpenProject::GitlabIntegrationclass Engine < ::Rails::Engine@@ -41,12 +41,12 @@ module OpenProject::GitlabIntegrationinclude OpenProject::Plugins::ActsAsOpEngineregister 'openproject-gitlab_integration',- :author_url => 'https://github.com/btey/openproject',+ author_url: 'https://github.com/btey/openproject',bundled: true doproject_module(:gitlab, dependencies: :work_package_tracking) dopermission(:show_gitlab_content,- {},- permissible_on: %i[work_package project])+ {},+ permissible_on: %i[work_package project])endend@@ -74,7 +74,7 @@ module OpenProject::GitlabIntegrationendextend_api_response(:v3, :work_packages, :work_package,- &::OpenProject::GitlabIntegration::Patches::API::WorkPackageRepresenter.extension)+ &::OpenProject::GitlabIntegration::Patches::API::WorkPackageRepresenter.extension)add_api_path :gitlab_merge_requests_by_work_package do |id|"#{work_package(id)}/gitlab_merge_requests"@@ -104,6 +104,5 @@ module OpenProject::GitlabIntegration# Register the cron job to clean up old gitlab merge requests::Cron::CronJob.register! ::Cron::ClearOldMergeRequestsJobend-endenddiff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/hook_handler.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/hook_handler.rbindex 27a0d085356..e3466fcade3 100644--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/hook_handler.rb+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/hook_handler.rb@@ -31,9 +31,9 @@ module OpenProject::GitlabIntegrationclass HookHandler# List of the gitlab events we can handle.KNOWN_EVENTS = %w[- push_hook- issue_hook- note_hook+ push_hook+ issue_hook+ note_hookmerge_request_hookpipeline_hooksystem_hook@@ -42,12 +42,12 @@ module OpenProject::GitlabIntegration# A gitlab webhook happened.# We need to check validity of the data and send a Notification# which we process in our NotificationHandler.- def process(hook, request, params, user)+ def process(_hook, request, params, user)event_type = request.env['HTTP_X_GITLAB_EVENT']- event_type.gsub!(' ','_')+ event_type.tr!(' ', '_')event_type = event_type.to_s.downcase- Rails.logger.debug "Received gitlab webhook #{event_type}"+ Rails.logger.debug { "Received gitlab webhook #{event_type}" }return 404 unless KNOWN_EVENTS.include?(event_type)return 403 unless user.present?@@ -58,9 +58,9 @@ module OpenProject::GitlabIntegration.merge('open_project_user_id' => user.id,'gitlab_event' => event_type)- OpenProject::Notifications.send("gitlab.#{event_type}", payload)+ OpenProject::Notifications.send(:"gitlab.#{event_type}", payload)- return 200+ 200endendenddiff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/issue_hook.rbindex 0c5cabcc360..53b4148f6ea 100644--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb@@ -33,7 +33,7 @@ module OpenProject::GitlabIntegration# Handles Gitlab issue notifications.class IssueHookinclude OpenProject::GitlabIntegration::NotificationHandler::Helper-+def process(payload_params)@payload = wrap_payload(payload_params)user = User.find_by_id(payload.open_project_user_id)@@ -58,14 +58,15 @@ module OpenProject::GitlabIntegration}[payload.object_attributes.action]return nil unless accepted_actions.include? payload.object_attributes.action+I18n.t("gitlab_integration.issue_#{key_action}_referenced_comment",- :issue_number => payload.object_attributes.iid,- :issue_title => payload.object_attributes.title,- :issue_url => payload.object_attributes.url,- :repository => payload.repository.name,- :repository_url => payload.repository.homepage,- :gitlab_user => payload.user.name,- :gitlab_user_url => payload.user.avatar_url)+ issue_number: payload.object_attributes.iid,+ issue_title: payload.object_attributes.title,+ issue_url: payload.object_attributes.url,+ repository: payload.repository.name,+ repository_url: payload.repository.homepage,+ gitlab_user: payload.user.name,+ gitlab_user_url: payload.user.avatar_url)enddef gitlab_issue@@ -77,9 +78,10 @@ module OpenProject::GitlabIntegrationdef upsert_issue(work_packages)return if work_packages.empty? && gitlab_issue.nil?+OpenProject::GitlabIntegration::Services::UpsertIssue.new.call(payload,- work_packages: work_packages)+ work_packages:)endendend-end\ No newline at end of file+enddiff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rbindex c4e65d05572..cc409d2f4c7 100644--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb@@ -83,14 +83,14 @@ module OpenProject::GitlabIntegrationreturn nil unless key- I18n.t("gitlab_integration.merge_request_#{key_action ? key_action : key}_comment",- :mr_number => payload.object_attributes.iid,- :mr_title => payload.object_attributes.title,- :mr_url => payload.object_attributes.url,- :repository => payload.repository.name,- :repository_url => payload.repository.url,- :gitlab_user => payload.user.name,- :gitlab_user_url => payload.user.avatar_url)+ I18n.t("gitlab_integration.merge_request_#{key_action || key}_comment",+ mr_number: payload.object_attributes.iid,+ mr_title: payload.object_attributes.title,+ mr_url: payload.object_attributes.url,+ repository: payload.repository.name,+ repository_url: payload.repository.url,+ gitlab_user: payload.user.name,+ gitlab_user_url: payload.user.avatar_url)enddef merge_request@@ -102,10 +102,10 @@ module OpenProject::GitlabIntegrationdef upsert_merge_request(work_packages)return if work_packages.empty? && merge_request.nil?+OpenProject::GitlabIntegration::Services::UpsertMergeRequest.new.call(payload,- work_packages: work_packages)+ work_packages:)end-endendenddiff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/push_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/push_hook.rbindex 3c67dd3ad00..772b8e62562 100644--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/push_hook.rb+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/push_hook.rb@@ -33,10 +33,11 @@ module OpenProject::GitlabIntegration# Handles Gitlab commit notifications.class PushHookinclude OpenProject::GitlabIntegration::NotificationHandler::Helper-+def process(payload_params)@payload = wrap_payload(payload_params)return nil unless payload.object_kind == 'push'+payload.commits.each do |commit|user = User.find_by_id(payload.open_project_user_id)text = commit['title'] + " - " + commit['message']@@ -53,15 +54,15 @@ module OpenProject::GitlabIntegrationdef generate_notes(commit, payload)commit_id = commit['id']I18n.t("gitlab_integration.push_single_commit_comment",- :commit_number => commit_id[0, 8],- :commit_note => commit['message'],- :commit_url => commit['url'],- :commit_timestamp => commit['timestamp'],- :repository => payload.repository.name,- :repository_url => payload.repository.homepage,- :gitlab_user => payload.user_name,- :gitlab_user_url => payload.user_avatar)+ commit_number: commit_id[0, 8],+ commit_note: commit['message'],+ commit_url: commit['url'],+ commit_timestamp: commit['timestamp'],+ repository: payload.repository.name,+ repository_url: payload.repository.homepage,+ gitlab_user: payload.user_name,+ gitlab_user_url: payload.user_avatar)endendend-end\ No newline at end of file+enddiff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/system_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/system_hook.rbindex a23489a7ec3..72a56f1fb63 100644--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/system_hook.rb+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/system_hook.rb@@ -33,10 +33,11 @@ module OpenProject::GitlabIntegration# Handles Gitlab commit notifications.class SystemHookinclude OpenProject::GitlabIntegration::NotificationHandler::Helper-+def process(payload_params)@payload = wrap_payload(payload_params)return nil unless payload.object_kind == 'push'+payload.commits.each do |commit|user = User.find_by_id(payload.open_project_user_id)text = commit['title'] + " - " + commit['message']@@ -53,14 +54,14 @@ module OpenProject::GitlabIntegrationdef generate_notes(commit, payload)commit_id = commit['id']I18n.t("gitlab_integration.push_single_commit_comment",- :commit_number => commit_id[0, 8],- :commit_note => commit['message'],- :commit_url => commit['url'],- :commit_timestamp => commit['timestamp'],- :repository => payload.repository.name,- :repository_url => payload.repository.homepage,- :gitlab_user => payload.user_name,- :gitlab_user_url => payload.user_avatar)+ commit_number: commit_id[0, 8],+ commit_note: commit['message'],+ commit_url: commit['url'],+ commit_timestamp: commit['timestamp'],+ repository: payload.repository.name,+ repository_url: payload.repository.homepage,+ gitlab_user: payload.user_name,+ gitlab_user_url: payload.user_avatar)endendenddiff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handlers.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handlers.rbindex 7c78293b649..e157bbddf65 100644--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handlers.rb+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handlers.rb@@ -27,15 +27,14 @@# See docs/COPYRIGHT.rdoc for more details.#++-require_relative './notification_handler/helper'-require_relative './notification_handler/issue_hook'-require_relative './notification_handler/merge_request_hook'-require_relative './notification_handler/note_hook'-require_relative './notification_handler/push_hook'-require_relative './notification_handler/system_hook'+require_relative 'notification_handler/helper'+require_relative 'notification_handler/issue_hook'+require_relative 'notification_handler/merge_request_hook'+require_relative 'notification_handler/note_hook'+require_relative 'notification_handler/push_hook'+require_relative 'notification_handler/system_hook'module OpenProject::GitlabIntegration-### Handles gitlab-related notifications.module NotificationHandlersdiff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/patches/work_package_patch.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/patches/work_package_patch.rbindex 833b51b908a..946032fc65a 100644--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/patches/work_package_patch.rb+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/patches/work_package_patch.rb@@ -11,4 +11,4 @@ module OpenProject::GitlabIntegrationendend-::WorkPackage.include OpenProject::GitlabIntegration::Patches::WorkPackagePatch+WorkPackage.include OpenProject::GitlabIntegration::Patches::WorkPackagePatchdiff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/services.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/services.rbindex 288dc428154..ea44e173521 100644--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/services.rb+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/services.rb@@ -27,7 +27,7 @@# See docs/COPYRIGHT.rdoc for more details.#++-require_relative './services/params_helper'-require_relative './services/upsert_pipeline'-require_relative './services/upsert_gitlab_user'-require_relative './services/upsert_merge_request'+require_relative 'services/params_helper'+require_relative 'services/upsert_pipeline'+require_relative 'services/upsert_gitlab_user'+require_relative 'services/upsert_merge_request'diff --git a/modules/gitlab_integration/openproject-gitlab_integration.gemspec b/modules/gitlab_integration/openproject-gitlab_integration.gemspecindex f26ebc62226..e09e8e63635 100644--- a/modules/gitlab_integration/openproject-gitlab_integration.gemspec+++ b/modules/gitlab_integration/openproject-gitlab_integration.gemspec@@ -43,4 +43,5 @@ Gem::Specification.new do |s|s.files = Dir['{app,config,db,frontend,lib}/**/*'] + %w[README.md]s.add_dependency 'openproject-webhooks'+ s.metadata['rubygems_mfa_required'] = 'true'enddiff --git a/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.rb b/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.rbindex 73ede117dec..367df2f3934 100644--- a/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.rb+++ b/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.rb@@ -1,33 +1,33 @@# frozen_string_literal: true-#-- copyright+# -- copyright# OpenProject is an open source project management software.# Copyright (C) 2012-2024 the OpenProject GmbH-#+# This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License version 3.-#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:# Copyright (C) 2006-2013 Jean-Philippe Lang# Copyright (C) 2010-2013 the ChiliProject Team-#+# This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License# as published by the Free Software Foundation; either version 2# of the License, or (at your option) any later version.-#+# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.-#+# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#+# See COPYRIGHT and LICENSE files for more details.-#++-#+# +++module Storages::Adminclass OAuthAccessGrantNudgeModalComponent < ApplicationComponent # rubocop:disable OpenProject/AddPreviewForViewComponentoptions dialog_id: 'storages--oauth-grant-nudge-modal-component',