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

Follow advice of deprecation warning

Jan Sandbrinkecf92204e355
diff --git a/modules/storages/app/common/storages/peripherals/nextcloud_connection_validator.rb b/modules/storages/app/common/storages/peripherals/nextcloud_connection_validator.rb
index 399f871d21a..5cf220ef915 100644
--- a/modules/storages/app/common/storages/peripherals/nextcloud_connection_validator.rb
+++ b/modules/storages/app/common/storages/peripherals/nextcloud_connection_validator.rb
@@ -106,7 +106,8 @@ module Storages
capabilities_result = capabilities.result
- if !capabilities_result.app_enabled? || (@storage.automatically_managed? && !capabilities_result.group_folder_enabled?)
+ if !capabilities_result.app_enabled? ||
+ (@storage.automatic_management_enabled? && !capabilities_result.group_folder_enabled?)
app_name = if capabilities_result.app_enabled?
I18n.t("storages.dependencies.nextcloud.group_folders_app")
else
@@ -149,7 +150,8 @@ module Storages
expected: min_app_version.to_s)
)
)
- elsif @storage.automatically_managed? && capabilities_result.group_folder_version < min_group_folder_version
+ elsif @storage.automatic_management_enabled? &&
+ capabilities_result.group_folder_version < min_group_folder_version
Some(
ConnectionValidation.new(
type: :error,
diff --git a/modules/storages/app/components/storages/admin/side_panel/health_notifications_component.rb b/modules/storages/app/components/storages/admin/side_panel/health_notifications_component.rb
index 95d283cac01..ea92a4ae506 100644
--- a/modules/storages/app/components/storages/admin/side_panel/health_notifications_component.rb
+++ b/modules/storages/app/components/storages/admin/side_panel/health_notifications_component.rb
@@ -39,7 +39,7 @@ module Storages
end
def render?
- @storage.automatically_managed?
+ @storage.automatic_management_enabled?
end
def notification_status
diff --git a/modules/storages/app/workers/storages/automatically_managed_storage_sync_job.rb b/modules/storages/app/workers/storages/automatically_managed_storage_sync_job.rb
index 801518c2c15..2a9277182ad 100644
--- a/modules/storages/app/workers/storages/automatically_managed_storage_sync_job.rb
+++ b/modules/storages/app/workers/storages/automatically_managed_storage_sync_job.rb
@@ -55,7 +55,7 @@ module Storages
def self.key(storage) = "sync-#{storage}-#{storage.id}"
def perform(storage)
- return unless storage.configured? && storage.automatically_managed?
+ return unless storage.configured? && storage.automatic_management_enabled?
sync_result = case storage.short_provider_type
when "nextcloud"