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

Fix deprecation warnings

Dombi Attila8ffa313bb80c
diff --git a/app/models/token/hashed_token.rb b/app/models/token/hashed_token.rb
index 48190a9ddae..98be0d9fb1f 100644
--- a/app/models/token/hashed_token.rb
+++ b/app/models/token/hashed_token.rb
@@ -46,7 +46,7 @@ module Token
# Use a fixed salt for hashing token values.
# We still want to be able to index the hash value for fast lookups,
# so we need to determine the hash without knowing the associated user (and thus its salt) first.
- Digest::SHA256.hexdigest(input + Rails.application.secrets.fetch(:secret_key_base))
+ Digest::SHA256.hexdigest(input + Rails.application.credentials.fetch(:secret_key_base))
end
delegate :hash_function, to: :class
diff --git a/app/workers/mails/mailer_job.rb b/app/workers/mails/mailer_job.rb
index 03d05aa7725..7ffcf171969 100644
--- a/app/workers/mails/mailer_job.rb
+++ b/app/workers/mails/mailer_job.rb
@@ -41,7 +41,7 @@ class Mails::MailerJob < ApplicationJob
queue_as { ActionMailer::Base.deliver_later_queue_name }
# Retry mailing jobs three times with exponential backoff
- retry_on StandardError, wait: :exponentially_longer, attempts: 3
+ retry_on StandardError, wait: :polynomially_longer, attempts: 3
# If exception is handled in mail handler
# retry_on will be ignored
diff --git a/modules/webhooks/app/workers/webhook_job.rb b/modules/webhooks/app/workers/webhook_job.rb
index 25c0f5fd68f..d172cb5101a 100644
--- a/modules/webhooks/app/workers/webhook_job.rb
+++ b/modules/webhooks/app/workers/webhook_job.rb
@@ -33,7 +33,7 @@ class WebhookJob < ApplicationJob
# in case of timeouts
retry_on Timeout::Error,
Faraday::TimeoutError,
- wait: :exponentially_longer,
+ wait: :polynomially_longer,
attempts: 3
def perform(webhook_id, event_name)