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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Updates config as we had the wrong behaviour around and tests
Marcello Rochae09be7cd083a
diff --git a/Gemfile b/Gemfileindex 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 stuckgem "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.rbindex 0b5c8cff7a7..01330dc5164 100644--- a/config/application.rb+++ b/config/application.rb@@ -243,7 +243,7 @@ module OpenProjectconfig.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 = trueconfig.action_controller.asset_host = OpenProject::Configuration::AssetHost.valuediff --git a/modules/storages/spec/workers/storages/manage_storage_integrations_job_spec.rb b/modules/storages/spec/workers/storages/manage_storage_integrations_job_spec.rbindex 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 doexpect(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.reloadexpect(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"])endit "does nothing if the cron_job is not disabled" do