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

Updates config as we had the wrong behaviour around and tests

Marcello Rochae09be7cd083a
diff --git a/Gemfile b/Gemfile
index 6d16cee0e94..6b2c73d8fa2 100644
--- a/Gemfile
+++ b/Gemfile
@@ -333,8 +333,9 @@ group :development, :test do
# Output a stack trace anytime, useful when a process is stuck
gem "rbtrace"
- # REPL with debug commands
- gem "debug"
+ # REPL with debug commands, Debug changed to byebug due to the issue below
+ # https://github.com/puma/puma/issues/2835#issuecomment-2302133927
+ gem "byebug"
gem "pry-byebug", "~> 3.10.0", platforms: [:mri]
gem "pry-doc"
diff --git a/config/application.rb b/config/application.rb
index 0b5c8cff7a7..01330dc5164 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -243,7 +243,7 @@ module OpenProject
config.good_job.max_cache = OpenProject::Configuration[:good_job_max_cache]
config.good_job.enable_cron = OpenProject::Configuration[:good_job_enable_cron]
config.good_job.shutdown_timeout = 30
- config.good_job.smaller_number_is_higher_priority = false
+ config.good_job.smaller_number_is_higher_priority = true
config.action_controller.asset_host = OpenProject::Configuration::AssetHost.value
diff --git a/modules/storages/spec/workers/storages/manage_storage_integrations_job_spec.rb b/modules/storages/spec/workers/storages/manage_storage_integrations_job_spec.rb
index e76ed531522..663f9b022ee 100644
--- a/modules/storages/spec/workers/storages/manage_storage_integrations_job_spec.rb
+++ b/modules/storages/spec/workers/storages/manage_storage_integrations_job_spec.rb
@@ -76,11 +76,15 @@ RSpec.describe Storages::ManageStorageIntegrationsJob, type: :job do
expect(good_job_setting.key).to eq("cron_keys_disabled")
expect(good_job_setting.value).to eq(["Storages::ManageStorageIntegrationsJob"])
- expect { described_class.disable_cron_job_if_needed }.not_to change(GoodJob::Setting, :count).from(1)
+ expect { described_class.disable_cron_job_if_needed }.to change(GoodJob::Setting, :count).from(1).to(2)
good_job_setting.reload
expect(good_job_setting.key).to eq("cron_keys_disabled")
expect(good_job_setting.value).to eq([])
+
+ good_job_setting = GoodJob::Setting.second
+ expect(good_job_setting.key).to eq("cron_keys_enabled")
+ expect(good_job_setting.value).to eq(["Storages::ManageStorageIntegrationsJob"])
end
it "does nothing if the cron_job is not disabled" do