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

Add feature flag

Mir Bhatiafc466565f286
diff --git a/config/initializers/feature_decisions.rb b/config/initializers/feature_decisions.rb
index 755b96a88da..373a37fbb91 100644
--- a/config/initializers/feature_decisions.rb
+++ b/config/initializers/feature_decisions.rb
@@ -42,3 +42,7 @@ OpenProject::FeatureDecisions.add :percent_complete_edition,
description: "Allow edition of % Complete in work-based progress calculation mode. " \
"Will be enabled by default in OpenProject 15.0. " \
"See work package #52233 for more details."
+
+OpenProject::FeatureDecisions.add :meeting_updated_notification,
+ description: "Allow flash messages to notify users about concurrent meeting edits. " \
+ "See work package #54744 for more details."
diff --git a/modules/meeting/app/components/meetings/header_component.rb b/modules/meeting/app/components/meetings/header_component.rb
index 08bcba7912f..41d52b5f58d 100644
--- a/modules/meeting/app/components/meetings/header_component.rb
+++ b/modules/meeting/app/components/meetings/header_component.rb
@@ -46,7 +46,7 @@ module Meetings
# Define the interval so it can be overriden through tests
def check_for_updates_interval
- 10_000
+ OpenProject::FeatureDecisions.meeting_updated_notification_active? ? 10_000 : 0
end
private