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
Decrease nextcould sync debounce time to 5 secs.
Pavel Balashoucf195361679a
diff --git a/modules/storages/app/workers/storages/manage_nextcloud_integration_events_job.rb b/modules/storages/app/workers/storages/manage_nextcloud_integration_events_job.rbindex c1f821d1763..48480e0d52c 100644--- a/modules/storages/app/workers/storages/manage_nextcloud_integration_events_job.rb+++ b/modules/storages/app/workers/storages/manage_nextcloud_integration_events_job.rb@@ -27,7 +27,7 @@#++class Storages::ManageNextcloudIntegrationEventsJob < ApplicationJob- DEBOUNCE_TIME = 20.seconds.freeze+ DEBOUNCE_TIME = 5.seconds.freezedef self.debouncecount = Delayed::Jobdiff --git a/modules/storages/spec/workers/storages/manage_nextcloud_integration_events_job_spec.rb b/modules/storages/spec/workers/storages/manage_nextcloud_integration_events_job_spec.rbindex 56b5eef7fab..f34fac7f63a 100644--- a/modules/storages/spec/workers/storages/manage_nextcloud_integration_events_job_spec.rb+++ b/modules/storages/spec/workers/storages/manage_nextcloud_integration_events_job_spec.rb@@ -34,9 +34,9 @@ RSpec.describe Storages::ManageNextcloudIntegrationEventsJob, type: :job doActiveJob::Base.disable_test_adapterother_handler = Storages::ManageNextcloudIntegrationCronJob.perform_later.provider_job_id- same_handler_within_timeframe1 = described_class.set(wait: 10.seconds).perform_later.provider_job_id- same_handler_within_timeframe2 = described_class.set(wait: 12.seconds).perform_later.provider_job_id- same_handler_within_timeframe3 = described_class.set(wait: 16.seconds).perform_later.provider_job_id+ same_handler_within_timeframe1 = described_class.set(wait: 1.seconds).perform_later.provider_job_id+ same_handler_within_timeframe2 = described_class.set(wait: 2.seconds).perform_later.provider_job_id+ same_handler_within_timeframe3 = described_class.set(wait: 3.seconds).perform_later.provider_job_idsame_handler_out_of_timeframe = described_class.set(wait: 1.minute).perform_later.provider_job_idsame_handler_within_timeframe_in_progress = described_class.set(wait: 18.seconds).perform_later.tap do |job|# simulate in progress state