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
[#59864] remove feature flag
Eric Schubert9fc08851a6b6
diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rbindex 1c9d15ae208..f9880b5d14e 100644--- a/app/helpers/custom_fields_helper.rb+++ b/app/helpers/custom_fields_helper.rb@@ -204,14 +204,9 @@ module CustomFieldsHelper# Return an array of custom field formats which can be used in select_tagdef custom_field_formats_for_select(custom_field)- hierarchy_if_deactivated = lambda do |format|- format.name == "hierarchy" && !OpenProject::FeatureDecisions.custom_field_of_type_hierarchy_active?- end-OpenProject::CustomFieldFormat.all_for_field(custom_field).sort_by(&:order).reject { |format| format.label.nil? }- .reject(&hierarchy_if_deactivated).map do |custom_field_format|[label_for_custom_field_format(custom_field_format.name), custom_field_format.name]enddiff --git a/config/initializers/feature_decisions.rb b/config/initializers/feature_decisions.rbindex 1af9d4f3b80..546662ab026 100644--- a/config/initializers/feature_decisions.rb+++ b/config/initializers/feature_decisions.rb@@ -47,9 +47,6 @@ OpenProject::FeatureDecisions.add :generate_pdf_from_work_package,description: "Allows to generate a PDF document from a work package description. " \"See #45896 for details."-OpenProject::FeatureDecisions.add :custom_field_of_type_hierarchy,- description: "Allows the use of the custom field type 'Hierarchy'."-# TODO: Remove once the feature flag primerized_work_package_activities is removed altogetherOpenProject::FeatureDecisions.define_singleton_method(:primerized_work_package_activities_active?) doRails.env.production? ||diff --git a/spec/features/custom_fields/hierarchy_custom_field_spec.rb b/spec/features/custom_fields/hierarchy_custom_field_spec.rbindex 68542e168e2..37344c95716 100644--- a/spec/features/custom_fields/hierarchy_custom_field_spec.rb+++ b/spec/features/custom_fields/hierarchy_custom_field_spec.rb@@ -40,8 +40,7 @@ RSpec.describe "custom fields of type hierarchy", :js, :with_cuprite doallow(EnterpriseToken).to receive(:allows_to?).and_return(true)end- it "lets you create, update and delete a custom field of type hierarchy",- with_flag: { custom_field_of_type_hierarchy: true } do+ it "lets you create, update and delete a custom field of type hierarchy" dologin_as admin# region CustomField creation