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
Merge branch 'dev' into implementation/62103-update-the-ui-component-to-be-able-to-render-the-groups-with-statuses
Eric Schubert659df21f8222
diff --cc modules/storages/app/common/storages/peripherals/connection_validators/base_connection_validator.rbindex 00000000000,7846ee10823..7ce347d053emode 000000,100644..100644--- a/modules/storages/app/common/storages/peripherals/connection_validators/base_connection_validator.rb+++ b/modules/storages/app/common/storages/peripherals/connection_validators/base_connection_validator.rb@@@ -1,0 -1,63 +1,67 @@@+ # frozen_string_literal: true++ #-- copyright+ # OpenProject is an open source project management software.+ # Copyright (C) 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+ module Peripherals+ module ConnectionValidators+ class BaseConnectionValidator+ class << self+ def validation_groups+ @validation_groups ||= {}+ end++ def register_group(group_name, klass, precondition: ->(*) { true })+ validation_groups[group_name] = { klass:, precondition: }+ end+ end++ def initialize(storage)+ @storage = storage+ end++ def call+ validation_groups.each_with_object(ValidatorResult.new) do |(key, group_metadata), result|+ if group_metadata[:precondition].call(@storage, result)+ result.add_group_result(key, group_metadata[:klass].call(@storage))+ end+ end+ end+++ def report_cache_key++ "#{@storage}_storage_#{@storage.id}_health_status_report"++ end+++ private++ def validation_groups = self.class.validation_groups+ end+ end+ end+ enddiff --cc modules/storages/app/common/storages/peripherals/connection_validators/nextcloud/ampf_configuration_validator.rbindex e97338cb089,e97338cb089..958784c24e8--- a/modules/storages/app/common/storages/peripherals/connection_validators/nextcloud/ampf_configuration_validator.rb+++ b/modules/storages/app/common/storages/peripherals/connection_validators/nextcloud/ampf_configuration_validator.rb@@@ -83,7 -83,7 +83,7 @@@ module Storagereturn pass_check(:group_folder_contents) if unexpected_files.empty?log_extraneous_files(unexpected_files)-- warn_check(:group_folder_contents, message(:unexpected_content))++ warn_check(:group_folder_contents, message("nextcloud.unexpected_content"))enddef log_extraneous_files(unexpected_files)diff --cc modules/storages/config/locales/en.ymlindex f9299286453,f8cb2c7a370..b9782fda614--- a/modules/storages/config/locales/en.yml+++ b/modules/storages/config/locales/en.yml@@@ -271,7 -241,7 +271,9 @@@ engroup_folder_not_found: The group folder could not be found.group_folder_version_mismatch: The Group Folder version is not supported. Please update your Nextcloud server.host_not_found: No Nextcloud server found at the configured host url. Please check the configuration.- missing_dependencies: 'A required dependency is missing on the file storage. Please add the following dependency: %{dependency}.'+ missing_dependencies: "A required dependency is missing on the file storage. Please add the following dependency: %{dependency}."++ nextcloud:++ unexpected_content: Unexpected content found in the managed group folder.not_configured: The connection could not be validated. Please finish configuration first.oauth_request_not_found: OpenProject couldn't find the root folder of Nextcloud using the current logged-in user. Please check the server logs for further information.oauth_request_unauthorized: The current user isn't authorized to see the main folder of Nextcloud or we couldn't acquire a token. Please check the server logs for further information.@@@ -281,10 -251,19 +283,16 @@@oidc_cant_refresh_token: There was an error while trying to check your access to the storage. Please check the server logs for further information.oidc_non_oidc_user: The current user, while provisioned, wasn't provisioned by an OpenID Connect (OIDC) Identity Provider. Please re-run the check with an OIDC provisioned user.oidc_non_provisioned_user: The current user isn't provided by an OpenID Connect Identity Provider. Please re-run the check with a provided user.+ one_drive:+ client_cant_delete_folder: The client is having trouble deleting folders. Please check the setup documentation for your storage.+ client_write_permission_missing: The client seems to have write permissions missing. Please check the setup documentation for your storage.+ drive_id_not_found: The configured drive id could not be found. Please check the configuration.+ drive_id_wrong: The configured drive id seems invalid. Please check the configuration.+ existing_test_folder: The folder %{folder_name} needed for testing already exists. Please delete it and try again.+ unexpected_content: Unexpected content found in the drive.+ placeholder: Check your connection against the server.+ subtitle: Connection validationtenant_id_wrong: The configured directory (tenant) id is invalid. Please check the configuration.-- unexpected_content:-- nextcloud: Unexpected content found in the managed group folder.-- one_drive: Unexpected content found in the drive.unknown_error: The connection could not be validated. An unknown error occurred. Please check the server logs for further information.userless_access_denied: The configured app password is invalid.label_error: Error