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

[#58150] Update the post storage creation message: admins don't need to activate individual modules per project anymore (#16901)

Kabiru Mwenja7fcd842fe6d3
diff --git a/modules/storages/app/controllers/storages/admin/automatically_managed_project_folders_controller.rb b/modules/storages/app/controllers/storages/admin/automatically_managed_project_folders_controller.rb
index b11474c1eb1..b8732de7ed6 100644
--- a/modules/storages/app/controllers/storages/admin/automatically_managed_project_folders_controller.rb
+++ b/modules/storages/app/controllers/storages/admin/automatically_managed_project_folders_controller.rb
@@ -74,7 +74,7 @@ class Storages::Admin::AutomaticallyManagedProjectFoldersController < Applicatio
if service_result.success?
flash[:op_primer_flash] = {
- message: I18n.t(:"storages.notice_successful_storage_connection"),
+ message: I18n.t(:"storages.successful_storage_connection"),
scheme: :success
}
redirect_to edit_admin_settings_storage_path(@storage)
diff --git a/modules/storages/app/controllers/storages/admin/oauth_clients_controller.rb b/modules/storages/app/controllers/storages/admin/oauth_clients_controller.rb
index fbc7c485a41..e32738fb075 100644
--- a/modules/storages/app/controllers/storages/admin/oauth_clients_controller.rb
+++ b/modules/storages/app/controllers/storages/admin/oauth_clients_controller.rb
@@ -125,7 +125,7 @@ class Storages::Admin::OAuthClientsController < ApplicationController
end
def finish_setup
- flash[:op_primer_flash] = { message: I18n.t(:"storages.notice_successful_storage_connection"), scheme: :success }
+ flash[:op_primer_flash] = { message: I18n.t(:"storages.successful_storage_connection"), scheme: :success }
redirect_to edit_admin_settings_storage_path(@storage)
end
diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.yml
index dfcfc75faec..d50780fbd2e 100644
--- a/modules/storages/config/locales/en.yml
+++ b/modules/storages/config/locales/en.yml
@@ -324,9 +324,6 @@ en:
not_connected: Not connected. The user should login to the storage via the following %{link}.
members_no_results: No members to display.
no_results: No storages set up yet.
- 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.
oauth_access_granted_modal:
access_granted: Access granted
project_settings:
@@ -391,6 +388,7 @@ en:
storage_list_blank_slate:
description: Add a storage to see them here.
heading: You don't have any storages yet.
+ successful_storage_connection: Storage connected successfully! Remember to activate the storage in the Projects tab for each desired project to use it.
upsale:
description: |-
Integrate your OneDrive/SharePoint as a file storage with OpenProject. Upload files and link them directly to
diff --git a/modules/storages/spec/features/storages/admin/create_storage_spec.rb b/modules/storages/spec/features/storages/admin/create_storage_spec.rb
index bf5c1781c22..6403283172e 100644
--- a/modules/storages/spec/features/storages/admin/create_storage_spec.rb
+++ b/modules/storages/spec/features/storages/admin/create_storage_spec.rb
@@ -182,8 +182,8 @@ RSpec.describe "Admin Create a new file storage",
expect(page).to have_current_path(edit_admin_settings_storage_path(Storages::Storage.last))
expect(page).to have_test_selector(
"primer-banner-message-component",
- text: "Storage connected successfully! Remember to activate the module and the specific " \
- "storage in the project settings of each desired project to use it."
+ text: "Storage connected successfully! " \
+ "Remember to activate the storage in the Projects tab for each desired project to use it."
)
end
end
@@ -319,8 +319,8 @@ RSpec.describe "Admin Create a new file storage",
expect(page).to have_current_path(edit_admin_settings_storage_path(Storages::Storage.last))
wait_for { page }.to have_test_selector(
"primer-banner-message-component",
- text: "Storage connected successfully! Remember to activate the module and the specific " \
- "storage in the project settings of each desired project to use it."
+ text: "Storage connected successfully! " \
+ "Remember to activate the storage in the Projects tab for each desired project to use it."
)
end
end