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

Remove feature flag

Oliver Günther01a14f83b2e6
diff --git a/config/initializers/feature_decisions.rb b/config/initializers/feature_decisions.rb
index 7d9d29ad388..226c253228f 100644
--- a/config/initializers/feature_decisions.rb
+++ b/config/initializers/feature_decisions.rb
@@ -60,6 +60,3 @@ OpenProject::FeatureDecisions.add :work_package_comment_id_url,
description: "Introduced a new WP comment URL identifier structure " \
"`#comment-<journal-id>` replacing the old " \
"`#activity-<journal-sequence_number>`."
-
-OpenProject::FeatureDecisions.add :meeting_outcomes,
- description: "Add outcomes and decisions to meeting agenda items"
diff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb
index 47fa192e640..897e09bf1e0 100644
--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb
+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb
@@ -89,12 +89,10 @@
end
end
- if outcome_enabled?
- grid.with_area(:outcomes, tag: :div) do
- flex_layout do |flex|
- flex.with_row do
- render(MeetingAgendaItems::Outcomes::BaseComponent.new(meeting: @meeting, meeting_agenda_item: @meeting_agenda_item, meeting_outcome: nil, edit: false))
- end
+ grid.with_area(:outcomes, tag: :div) do
+ flex_layout do |flex|
+ flex.with_row do
+ render(MeetingAgendaItems::Outcomes::BaseComponent.new(meeting: @meeting, meeting_agenda_item: @meeting_agenda_item, meeting_outcome: nil, edit: false))
end
end
end
diff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.rb b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.rb
index a450eb0dfe0..130d526a593 100644
--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.rb
+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.rb
@@ -57,12 +57,8 @@ module MeetingAgendaItems
[email protected]? && User.current.allowed_in_project?(:manage_agendas, @meeting.project)
end
- def outcome_enabled?
- OpenProject::FeatureDecisions.meeting_outcomes_active?
- end
-
def add_outcome_action?
- @meeting_agenda_item.editable? && @meeting.in_progress? && outcome_enabled? && !@meeting_agenda_item.outcomes.exists?
+ @meeting_agenda_item.editable? && @meeting.in_progress? && !@meeting_agenda_item.outcomes.exists?
end
def first?
@@ -167,10 +163,10 @@ module MeetingAgendaItems
end
def notes_classes
- if OpenProject::FeatureDecisions.meeting_outcomes_active? && [email protected]?
- "op-uc-container override muted-color"
- else
+ if @meeting.open?
"op-uc-container override"
+ else
+ "op-uc-container override muted-color"
end
end
end
diff --git a/modules/meeting/spec/features/structured_meetings/meeting_outcomes/meeting_outcomes_crud_spec.rb b/modules/meeting/spec/features/structured_meetings/meeting_outcomes/meeting_outcomes_crud_spec.rb
index 4f7c266cf94..3c944cf9c57 100644
--- a/modules/meeting/spec/features/structured_meetings/meeting_outcomes/meeting_outcomes_crud_spec.rb
+++ b/modules/meeting/spec/features/structured_meetings/meeting_outcomes/meeting_outcomes_crud_spec.rb
@@ -28,9 +28,7 @@ require "spec_helper"
require_relative "../../../support/pages/structured_meeting/show"
-RSpec.describe "Meeting Outcomes CRUD",
- :js,
- with_flag: { meeting_outcomes: true } do
+RSpec.describe "Meeting Outcomes CRUD", :js do
shared_let(:project) { create(:project, enabled_module_names: %w[meetings]) }
shared_let(:user) do
create :user,