Skip to content

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

Merge remote-tracking branch 'origin/dev' into implementation/50908-implement-redirect-to-project-foler-with-waiting-under-projectsproject_idproject_storagesidopen

Pavel Balashou9e0506d8ccb0
diff --cc modules/storages/config/locales/en.yml
index b986f4c6ed2,318bb6a9f38..95dd733c69d
--- a/modules/storages/config/locales/en.yml
+++ b/modules/storages/config/locales/en.yml
@@@ -245,10 -248,9 +248,16 @@@ en
automatically_managed_project_folder_missing: "To complete the setup, please configure automatically managed project folders for your storage."
notice_oauth_application_replaced: "The OpenProject OAuth application was successfully replaced."
notice_successful_storage_connection: "Storage connected successfully! Remember to activate the module and the specific storage in the project settings of each desired project to use it."
+ open_project_storage_modal:
+ waiting:
+ a: "We are setting up your permissions on the project folder."
+ b: "One moment please, this might take some time..."
+ success:
+ a: "Integration setup completed"
+ b: "You are being redirected"
+ health:
+ title: "Managed folders status"
+ label_pending: "Pending"
+ label_error: "Error"
+ label_healthy: "Healthy"
+ checked: "Checked %{datetime}"
diff --cc modules/storages/spec/factories/storage_factory.rb
index 15e0a80f604,1a78a95121a..d6acdce69c1
--- a/modules/storages/spec/factories/storage_factory.rb
+++ b/modules/storages/spec/factories/storage_factory.rb
@@@ -64,15 -64,32 +64,39 @@@ FactoryBot.define d
trait :as_not_automatically_managed do
automatically_managed { false }
end
+
+ trait :as_healthy do
+ health_status { 'healthy' }
+ health_reason { nil }
+ health_changed_at { Time.now.utc }
+ end
+
+ trait :as_unhealthy do
+ health_status { 'unhealthy' }
+ health_reason { 'error reason' }
+ health_changed_at { Time.now.utc }
+ end
+
+ trait :as_unhealthy_long_reason do
+ health_status { 'unhealthy' }
+ health_reason { 'unauthorized | Outbound request not authorized | #<Storages::StorageErrorData:0x0000ffff646ac570>' }
+ health_changed_at { Time.now.utc }
+ end
+
+ trait :as_pending do
+ health_status { 'pending' }
+ health_reason { nil }
+ health_changed_at { Time.now.utc }
+ end
end
+ factory :nextcloud_storage_configured, parent: :nextcloud_storage do
+ after(:create) do |storage, _evaluator|
+ create(:oauth_client, integration: storage)
+ create(:oauth_application, integration: storage)
+ end
+ end
+
factory :nextcloud_storage_with_local_connection,
parent: :nextcloud_storage,
traits: [:as_not_automatically_managed] do