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

[#63611] remove feature flag for generated subjects

Eric Schubertd350d4000544
diff --git a/app/helpers/types_helper.rb b/app/helpers/types_helper.rb
index 6fc73f7bbb8..f5d31d4c61a 100644
--- a/app/helpers/types_helper.rb
+++ b/app/helpers/types_helper.rb
@@ -31,7 +31,7 @@
module ::TypesHelper
# rubocop:disable Rails/HelperInstanceVariable
def types_tabs
- tabs = [
+ [
{
name: "settings",
path: edit_tab_type_path(id: @type.id, tab: :settings),
@@ -44,6 +44,13 @@ module ::TypesHelper
path: edit_tab_type_path(id: @type.id, tab: :form_configuration),
label: "types.edit.form_configuration.tab"
},
+ {
+ name: "subject_configuration",
+ path: edit_tab_type_path(id: @type.id, tab: :subject_configuration),
+ label: "types.edit.subject_configuration.tab",
+ view_component: WorkPackages::Types::SubjectConfigurationComponent,
+ enterprise_feature: :work_package_subject_generation
+ },
{
name: "projects",
partial: "types/form/projects",
@@ -57,20 +64,6 @@ module ::TypesHelper
view_component: WorkPackages::Types::ExportConfigurationComponent
}
]
-
- if OpenProject::FeatureDecisions.generate_work_package_subjects_active?
- subject_configuration_tab = {
- name: "subject_configuration",
- path: edit_tab_type_path(id: @type.id, tab: :subject_configuration),
- label: "types.edit.subject_configuration.tab",
- view_component: WorkPackages::Types::SubjectConfigurationComponent,
- enterprise_feature: :work_package_subject_generation
- }
-
- tabs.insert(2, subject_configuration_tab)
- end
-
- tabs
end
# rubocop:enable Rails/HelperInstanceVariable
diff --git a/config/initializers/feature_decisions.rb b/config/initializers/feature_decisions.rb
index 66c1d9f705a..b1721a94fca 100644
--- a/config/initializers/feature_decisions.rb
+++ b/config/initializers/feature_decisions.rb
@@ -44,9 +44,5 @@ require_relative "../../lib_static/open_project/feature_decisions"
OpenProject::FeatureDecisions.add :built_in_oauth_applications,
description: "Allows the display and use of built-in OAuth applications."
-OpenProject::FeatureDecisions.add :generate_work_package_subjects,
- description: "Allows the configuration for work package types to have " \
- "automatically generated work package subjects."
-
OpenProject::FeatureDecisions.add :stages_and_gates,
description: "Enables the under construction feature of phases."