Skip to content

Commit

Permalink
Merge pull request #17853 from opf/fix-deprecation
Browse files Browse the repository at this point in the history
Follow advice of deprecation warning
  • Loading branch information
NobodysNightmare authored Feb 6, 2025
2 parents f70acb2 + ecf9220 commit d80a732
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def missing_dependencies

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
Expand Down Expand Up @@ -149,7 +150,8 @@ def version_mismatch
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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def initialize(storage:)
end

def render?
@storage.automatically_managed?
@storage.automatic_management_enabled?
end

def notification_status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class AutomaticallyManagedStorageSyncJob < ApplicationJob
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"
Expand Down

0 comments on commit d80a732

Please sign in to comment.