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
Remove show_changes and more_global_index_pages feature flags
Oliver Günther117d82e724e1
diff --git a/app/models/query/timestamps.rb b/app/models/query/timestamps.rbindex d7210e959d5..294b057630e 100644--- a/app/models/query/timestamps.rb+++ b/app/models/query/timestamps.rb@@ -42,8 +42,6 @@ module Query::Timestamps# call `timestamp.to_time`.#def timestamps- return [Timestamp.now] unless OpenProject::FeatureDecisions.show_changes_active?-timestamps = super.collect do |timestamp_string|Timestamp.new(timestamp_string)enddiff --git a/config/initializers/feature_decisions.rb b/config/initializers/feature_decisions.rbindex 94369abf41f..b3f771bbedb 100644--- a/config/initializers/feature_decisions.rb+++ b/config/initializers/feature_decisions.rb@@ -39,6 +39,4 @@ require_relative '../../lib_static/open_project/feature_decisions'# OpenProject::FeatureDecisions.add :some_flag# end-OpenProject::FeatureDecisions.add :show_changes-OpenProject::FeatureDecisions.add :more_global_index_pagesOpenProject::FeatureDecisions.add :personal_theme_selectiondiff --git a/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-baseline.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-baseline.service.tsindex 584a233aa24..bcc2e8f05df 100644--- a/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-baseline.service.ts+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-baseline.service.ts@@ -141,10 +141,6 @@ export class WorkPackageViewBaselineService extends WorkPackageQueryStateService}public isActive():boolean {- if (!this.configurationService.activeFeatureFlags.includes('showChanges')) {- return false;- }-return this.current.length >= 1 && this.current[0] !== DEFAULT_TIMESTAMP;}diff --git a/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts b/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.tsindex eb239583052..9ca0a01ed34 100644--- a/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts+++ b/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts@@ -75,7 +75,6 @@ export class WorkPackageViewPageComponent extends PartitionedQuerySpacePageCompo},{component: OpBaselineModalComponent,- show: () => this.configuration.activeFeatureFlags.includes('showChanges'),containerClasses: 'hidden-for-mobile',},{diff --git a/modules/boards/lib/open_project/boards/engine.rb b/modules/boards/lib/open_project/boards/engine.rbindex 016c0c97aa9..ee8256d846e 100644--- a/modules/boards/lib/open_project/boards/engine.rb+++ b/modules/boards/lib/open_project/boards/engine.rb@@ -54,7 +54,6 @@ module OpenProject::Boardscaption: :'boards.label_boards'should_render_global_menu_item = Proc.new do- OpenProject::FeatureDecisions.more_global_index_pages_active? &&(User.current.logged? || !Setting.login_required?) &&User.current.allowed_to_globally?(:show_board_views)enddiff --git a/modules/boards/spec/features/board_index_spec.rb b/modules/boards/spec/features/board_index_spec.rbindex bf9c8490263..77ad237dac4 100644--- a/modules/boards/spec/features/board_index_spec.rb+++ b/modules/boards/spec/features/board_index_spec.rb@@ -32,8 +32,7 @@ require_relative 'support/board_index_page'RSpec.describe 'Work Package Project Boards Index Page',:js,:with_cuprite,- with_ee: %i[board_view],- with_flag: { more_global_index_pages: true } do+ with_ee: %i[board_view] do# The identifier is important to test https://community.openproject.com/wp/29754shared_let(:project) { create(:project, identifier: 'boards', enabled_module_names: %i[work_package_tracking board_view]) }diff --git a/modules/boards/spec/features/board_overview_spec.rb b/modules/boards/spec/features/board_overview_spec.rbindex 41e40409b52..7634decf8c5 100644--- a/modules/boards/spec/features/board_overview_spec.rb+++ b/modules/boards/spec/features/board_overview_spec.rb@@ -31,8 +31,7 @@ require_relative './support/board_overview_page'RSpec.describe 'Work Package Boards Overview',:with_cuprite,- with_ee: %i[board_view],- with_flag: { more_global_index_pages: true } do+ with_ee: %i[board_view] do# The identifier is important to test https://community.openproject.com/wp/29754shared_let(:project) { create(:project, identifier: 'boards', enabled_module_names: %i[work_package_tracking board_view]) }shared_let(:other_project) { create(:project, enabled_module_names: %i[work_package_tracking board_view]) }diff --git a/modules/boards/spec/features/menu_items/global_menu_item_spec.rb b/modules/boards/spec/features/menu_items/global_menu_item_spec.rbindex a5d6f5bfd1d..ed192c421ab 100644--- a/modules/boards/spec/features/menu_items/global_menu_item_spec.rb+++ b/modules/boards/spec/features/menu_items/global_menu_item_spec.rb@@ -39,28 +39,26 @@ RSpec.describe 'Global menu item for boards', :js, :with_cuprite dovisit root_pathend- context 'with more global index pages active', with_flag: { more_global_index_pages: true } do- context 'with permissions' do- let(:current_user) { create(:admin) }+ context 'with permissions' do+ let(:current_user) { create(:admin) }- it "sends the user to the boards overview when clicked" do- within '#main-menu' do- click_on boards_label- end-- expect(page).to have_current_path(boards_all_path)- expect(page).to have_content(boards_label)- expect(page).to have_content(I18n.t(:no_results_title_text))+ it "sends the user to the boards overview when clicked" do+ within '#main-menu' do+ click_on boards_labelend++ expect(page).to have_current_path(boards_all_path)+ expect(page).to have_content(boards_label)+ expect(page).to have_content(I18n.t(:no_results_title_text))end+ end- context 'without permissions' do- let(:current_user) { create(:user) }+ context 'without permissions' do+ let(:current_user) { create(:user) }- it 'is not rendered' do- within '#main-menu' do- expect(page).not_to have_content(boards_label)- end+ it 'is not rendered' do+ within '#main-menu' do+ expect(page).not_to have_content(boards_label)endendenddiff --git a/modules/boards/spec/features/menu_items/top_menu_item_spec.rb b/modules/boards/spec/features/menu_items/top_menu_item_spec.rbindex 58a4071ba40..3910d23094a 100644--- a/modules/boards/spec/features/menu_items/top_menu_item_spec.rb+++ b/modules/boards/spec/features/menu_items/top_menu_item_spec.rb@@ -51,44 +51,30 @@ RSpec.describe 'Top menu item for boards', :js, :with_cuprite doendend- context 'with more global index pages', with_flag: { more_global_index_pages: true } do- context 'when in the project settings' do- let!(:project) { create(:project) }+ context 'when in the project settings' do+ let!(:project) { create(:project) }- before do- visit "/projects/#{project.identifier}/settings/general"- end-- it_behaves_like 'the boards menu item'+ before do+ visit "/projects/#{project.identifier}/settings/general"end- context 'on the landing page' do- before do- visit root_path- end-- it_behaves_like 'the boards menu item'-- context 'with missing permissions' do- let(:user) { create(:user) }-- it "does not display the menu item" do- within '#more-menu', visible: false do- expect(page).not_to have_link boards- end- end- end- end+ it_behaves_like 'the boards menu item'end- context 'without more global index pages enabled' do+ context 'on the landing page' dobefore dovisit root_pathend- it 'does not display the menu item' do- within '#more-menu', visible: false do- expect(page).not_to have_link boards+ it_behaves_like 'the boards menu item'++ context 'with missing permissions' do+ let(:user) { create(:user) }++ it "does not display the menu item" do+ within '#more-menu', visible: false do+ expect(page).not_to have_link boards+ endendendenddiff --git a/modules/calendar/lib/open_project/calendar/engine.rb b/modules/calendar/lib/open_project/calendar/engine.rbindex 5d0533a7c52..983930b15c8 100644--- a/modules/calendar/lib/open_project/calendar/engine.rb+++ b/modules/calendar/lib/open_project/calendar/engine.rb@@ -42,7 +42,6 @@ module OpenProject::Calendarendshould_render = Proc.new do- OpenProject::FeatureDecisions.more_global_index_pages_active? &&(User.current.logged? || !Setting.login_required?) &&User.current.allowed_to_globally?(:view_calendar)enddiff --git a/modules/calendar/spec/features/calendars_global_create_spec.rb b/modules/calendar/spec/features/calendars_global_create_spec.rbindex 8e362de83f7..000c849625a 100644--- a/modules/calendar/spec/features/calendars_global_create_spec.rb+++ b/modules/calendar/spec/features/calendars_global_create_spec.rb@@ -35,8 +35,7 @@ require_relative 'shared_context'RSpec.describe 'Calendar','Creating a view from a Global Context',:js,- :with_cuprite,- with_flag: { more_global_index_pages_active: true } do+ :with_cuprite doinclude_context 'with calendar full access'let(:calendars_page) { Pages::Calendar.new nil }diff --git a/modules/calendar/spec/features/calendars_index_spec.rb b/modules/calendar/spec/features/calendars_index_spec.rbindex 99cb6172894..851e4b7767c 100644--- a/modules/calendar/spec/features/calendars_index_spec.rb+++ b/modules/calendar/spec/features/calendars_index_spec.rb@@ -66,7 +66,7 @@ RSpec.describe 'Calendars', 'index', :js, :with_cuprite dolet(:current_user) { user }- context 'when navigating to the global index page', with_flag: { more_global_index_pages: true } do+ context 'when navigating to the global index page' doshared_examples 'global index page is reachable' doit 'is reachable' doexpect(page).to have_current_path(calendars_path)@@ -104,7 +104,7 @@ RSpec.describe 'Calendars', 'index', :js, :with_cuprite doendend- context 'when visiting from a global context', with_flag: { more_global_index_pages: true } do+ context 'when visiting from a global context' dolet(:calendars_page) { Pages::Calendar.new(nil) }let(:queries) { [query, other_query] }diff --git a/modules/meeting/lib/open_project/meeting/engine.rb b/modules/meeting/lib/open_project/meeting/engine.rbindex 07f3d07db63..2781fa71066 100644--- a/modules/meeting/lib/open_project/meeting/engine.rb+++ b/modules/meeting/lib/open_project/meeting/engine.rb@@ -72,7 +72,6 @@ module OpenProject::Meetingpartial: 'meetings/menu_query_select'should_render_global_menu_item = Proc.new do- OpenProject::FeatureDecisions.more_global_index_pages_active? &&(User.current.logged? || !Setting.login_required?) &&User.current.allowed_to_globally?(:view_meetings)enddiff --git a/modules/meeting/spec/features/meetings_global_menu_item_spec.rb b/modules/meeting/spec/features/meetings_global_menu_item_spec.rbindex 463548ae254..27acea56141 100644--- a/modules/meeting/spec/features/meetings_global_menu_item_spec.rb+++ b/modules/meeting/spec/features/meetings_global_menu_item_spec.rb@@ -33,8 +33,7 @@ require 'spec_helper'require_relative '../support/pages/meetings/index'RSpec.describe 'Meetings global menu item',- :with_cuprite,- with_flag: { more_global_index_pages: true } do+ :with_cuprite doshared_let(:user_without_permissions) { create(:user) }shared_let(:admin) { create(:admin) }shared_let(:meetings_label) { I18n.t(:label_meeting_plural) }diff --git a/modules/meeting/spec/features/meetings_index_spec.rb b/modules/meeting/spec/features/meetings_index_spec.rbindex 9f78b434afd..067c1994945 100644--- a/modules/meeting/spec/features/meetings_index_spec.rb+++ b/modules/meeting/spec/features/meetings_index_spec.rb@@ -166,7 +166,7 @@ RSpec.describe 'Meetings', 'Index', :with_cuprite doendend- context 'when visiting from a global context', with_flag: { more_global_index_pages: true } do+ context 'when visiting from a global context' dolet(:meetings_page) { Pages::Meetings::Index.new(project: nil) }it 'lists all upcoming meetings for all projects the user has access to' dodiff --git a/modules/team_planner/lib/open_project/team_planner/engine.rb b/modules/team_planner/lib/open_project/team_planner/engine.rbindex 617087b1dcd..4091650be18 100644--- a/modules/team_planner/lib/open_project/team_planner/engine.rb+++ b/modules/team_planner/lib/open_project/team_planner/engine.rb@@ -39,7 +39,6 @@ module OpenProject::TeamPlannerendshould_render_global_menu_item = Proc.new do- OpenProject::FeatureDecisions.more_global_index_pages_active? &&(User.current.logged? || !Setting.login_required?) &&User.current.allowed_to_globally?(:view_team_planner)enddiff --git a/modules/team_planner/spec/features/team_planner_global_create_spec.rb b/modules/team_planner/spec/features/team_planner_global_create_spec.rbindex a28aee7a241..f369d1f28bf 100644--- a/modules/team_planner/spec/features/team_planner_global_create_spec.rb+++ b/modules/team_planner/spec/features/team_planner_global_create_spec.rb@@ -35,8 +35,7 @@ RSpec.describe 'Team Planner','Creating a view from a Global Context',:js,:with_cuprite,- with_ee: %i[team_planner_view],- with_flag: { more_global_index_pages_active: true } do+ with_ee: %i[team_planner_view] doinclude_context 'with team planner full access'context 'within the overview page' dodiff --git a/modules/team_planner/spec/features/team_planner_menu_spec.rb b/modules/team_planner/spec/features/team_planner_menu_spec.rbindex ed5afbb89c6..d42cfe924f6 100644--- a/modules/team_planner/spec/features/team_planner_menu_spec.rb+++ b/modules/team_planner/spec/features/team_planner_menu_spec.rb@@ -49,7 +49,7 @@ RSpec.describe 'Team planner Menu Item', :js, :with_cuprite do])end- context 'within the global menu', with_flag: { more_global_index_pages_active: true } do+ context 'within the global menu' dobefore dologin_as user_without_rightsdiff --git a/modules/team_planner/spec/features/team_planner_overview_spec.rb b/modules/team_planner/spec/features/team_planner_overview_spec.rbindex c952a0f02a5..6bd3d529d9b 100644--- a/modules/team_planner/spec/features/team_planner_overview_spec.rb+++ b/modules/team_planner/spec/features/team_planner_overview_spec.rb@@ -35,8 +35,7 @@ require_relative 'shared_context'RSpec.describe 'Team planner overview',:js,:with_cuprite,- with_ee: %i[team_planner_view],- with_flag: { more_global_index_pages_active: true } do+ with_ee: %i[team_planner_view] doinclude_context 'with team planner full access'let(:current_user) { user }diff --git a/spec/contracts/queries/base_contract_spec.rb b/spec/contracts/queries/base_contract_spec.rbindex b2285a75c28..196b0473948 100644--- a/spec/contracts/queries/base_contract_spec.rb+++ b/spec/contracts/queries/base_contract_spec.rb@@ -34,7 +34,7 @@ RSpec.describe Queries::BaseContract doinclude_context 'ModelContract shared context'include_context 'with queries contract'- describe 'timestamps', with_flag: { show_changes: true } do+ describe 'timestamps' dolet(:query) { build_stubbed(:query, timestamps:) }context 'with EE', with_ee: %i[baseline_comparison] dodiff --git a/spec/features/menu_items/top_menu_item_spec.rb b/spec/features/menu_items/top_menu_item_spec.rbindex 33a9c7cc8f5..2d767a332ac 100644--- a/spec/features/menu_items/top_menu_item_spec.rb+++ b/spec/features/menu_items/top_menu_item_spec.rb@@ -65,7 +65,7 @@ RSpec.describe 'Top menu items', :js, :with_cuprite dotop_menu.click if open_menuend- describe 'Modules', with_flag: { more_global_index_pages_active: true } do+ describe 'Modules' dolet!(:top_menu) { find("[title=#{I18n.t('label_modules')}]") }shared_let(:menu_link_item) { Struct.new(:label, :path) }diff --git a/spec/features/work_packages/table/baseline/baseline_invisible_project_spec.rb b/spec/features/work_packages/table/baseline/baseline_invisible_project_spec.rbindex ffeb0e9ecae..b3bd2da0fdc 100644--- a/spec/features/work_packages/table/baseline/baseline_invisible_project_spec.rb+++ b/spec/features/work_packages/table/baseline/baseline_invisible_project_spec.rb@@ -86,7 +86,7 @@ RSpec.describe 'baseline with a work package moved to an invisible project',current_user { user }- describe 'with feature enabled', with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do+ describe 'with EE active', with_ee: %i[baseline_comparison] doit 'shows the item with all values removed' dowp_table.visit_query(query)diff --git a/spec/features/work_packages/table/baseline/baseline_query_spec.rb b/spec/features/work_packages/table/baseline/baseline_query_spec.rbindex 54bb52c9890..e864b45e42d 100644--- a/spec/features/work_packages/table/baseline/baseline_query_spec.rb+++ b/spec/features/work_packages/table/baseline/baseline_query_spec.rb@@ -55,7 +55,7 @@ RSpec.describe 'baseline query saving',member_with_permissions: %i[view_work_packages save_queries manage_public_queries])end- it 'shows a warning when an incompatible filter is used', with_flag: { show_changes: true } do+ it 'shows a warning when an incompatible filter is used' dologin_as berlin_userwp_table.visit!@@ -86,7 +86,7 @@ RSpec.describe 'baseline query saving',endend- it 'can configure and save baseline queries', with_flag: { show_changes: true } do+ it 'can configure and save baseline queries' dologin_as berlin_userwp_table.visit!diff --git a/spec/features/work_packages/table/baseline/baseline_rendering_spec.rb b/spec/features/work_packages/table/baseline/baseline_rendering_spec.rbindex 92a5395011d..69991fdc565 100644--- a/spec/features/work_packages/table/baseline/baseline_rendering_spec.rb+++ b/spec/features/work_packages/table/baseline/baseline_rendering_spec.rb@@ -278,7 +278,7 @@ RSpec.describe 'baseline rendering',current_user { user }- describe 'with feature enabled', with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do+ describe 'with EE', with_ee: %i[baseline_comparison] doit 'does show changes' dowp_table.visit_query(query)wp_table.expect_work_package_listed wp_task, wp_task_changed, wp_task_was_bug, wp_bug_was_task,@@ -424,17 +424,7 @@ RSpec.describe 'baseline rendering',endend- describe 'with feature disabled', with_flag: { show_changes: false } do- it 'does not show changes' do- wp_table.visit_query(query)- wp_table.expect_work_package_listed wp_task, wp_task_changed, wp_task_was_bug- wp_table.ensure_work_package_not_listed! wp_bug, wp_bug_was_task-- baseline.expect_inactive- end- end-- describe 'without EE', with_ee: false, with_flag: { show_changes: true } do+ describe 'without EE', with_ee: false doit 'disabled options' dowp_table.visit_query(query)baseline_modal.expect_closeddiff --git a/spec/lib/api/v3/work_packages/work_package_collection_representer_spec.rb b/spec/lib/api/v3/work_packages/work_package_collection_representer_spec.rbindex 9fe082dc1b2..b7c0d1ab780 100644--- a/spec/lib/api/v3/work_packages/work_package_collection_representer_spec.rb+++ b/spec/lib/api/v3/work_packages/work_package_collection_representer_spec.rb@@ -702,7 +702,7 @@ RSpec.describe API::V3::WorkPackages::WorkPackageCollectionRepresenter doendend- context 'with baseline and current timestamps', with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do+ context 'with baseline and current timestamps', with_ee: %i[baseline_comparison] dolet(:timestamps) { [Timestamp.parse("2022-01-01T00:00:00Z"), Timestamp.parse("PT0S")] }describe 'attributesByTimestamp' dodiff --git a/spec/lib/api/v3/work_packages/work_package_representer_spec.rb b/spec/lib/api/v3/work_packages/work_package_representer_spec.rbindex 2e34ec372dc..63fb3b53976 100644--- a/spec/lib/api/v3/work_packages/work_package_representer_spec.rb+++ b/spec/lib/api/v3/work_packages/work_package_representer_spec.rb@@ -1388,7 +1388,7 @@ RSpec.describe API::V3::WorkPackages::WorkPackageRepresenter doendend- describe 'attributesByTimestamp', with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do+ describe 'attributesByTimestamp', with_ee: %i[baseline_comparison] doit 'states whether the work package matches the query filters at the timestamp' doexpect(subject).to be_json_eql(true.to_json)diff --git a/spec/models/journable/with_historic_attributes_spec.rb b/spec/models/journable/with_historic_attributes_spec.rbindex a57aaa4d7f5..fbe44903a69 100644--- a/spec/models/journable/with_historic_attributes_spec.rb+++ b/spec/models/journable/with_historic_attributes_spec.rb@@ -29,7 +29,7 @@require 'spec_helper'RSpec.describe Journable::WithHistoricAttributes,- with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do+ with_ee: %i[baseline_comparison] docreate_shared_association_defaults_for_work_package_factoryshared_let(:baseline_time) { "2022-01-01".to_time }diff --git a/spec/models/query/results_filter_on_historic_data_spec.rb b/spec/models/query/results_filter_on_historic_data_spec.rbindex 5470c670da6..b32aba09b44 100644--- a/spec/models/query/results_filter_on_historic_data_spec.rb+++ b/spec/models/query/results_filter_on_historic_data_spec.rb@@ -30,8 +30,7 @@ require 'spec_helper'RSpec.describe Query::Results,'Filter on historic data',- with_ee: %i[baseline_comparison],- with_flag: { show_changes: true } do+ with_ee: %i[baseline_comparison] dolet(:historic_time) { "2022-08-01".to_datetime }let(:pre_historic_time) { historic_time - 1.day }let(:recent_time) { 1.hour.ago }diff --git a/spec/models/query/timestamps_spec.rb b/spec/models/query/timestamps_spec.rbindex 6aead098e81..94311af66f4 100644--- a/spec/models/query/timestamps_spec.rb+++ b/spec/models/query/timestamps_spec.rb@@ -29,7 +29,7 @@require 'spec_helper'RSpec.describe Query::Timestamps,- with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do+ with_ee: %i[baseline_comparison] dodescribe "#timestamps" dosubject { query.timestamps }diff --git a/spec/models/query_spec.rb b/spec/models/query_spec.rbindex 6afc1b38d25..f229902c334 100644--- a/spec/models/query_spec.rb+++ b/spec/models/query_spec.rb@@ -108,7 +108,7 @@ RSpec.describe Query,endend- describe 'timestamps', with_flag: { show_changes: true } do+ describe 'timestamps' dosubject { build(:query, timestamps:) }context 'with EE', with_ee: %i[baseline_comparison] do@@ -755,7 +755,7 @@ RSpec.describe Query,endend- context 'with timestamps', with_flag: { show_changes: true } do+ context 'with timestamps' dolet(:timestamps) do[3.weeks.ago.iso8601, 'oneWeekAgo@12:00+00:00', 'oneDayAgo@12:00+00:00', 'PT0S']enddiff --git a/spec/requests/api/v3/queries/create_form_api_spec.rb b/spec/requests/api/v3/queries/create_form_api_spec.rbindex c223d619858..9fafa466bda 100644--- a/spec/requests/api/v3/queries/create_form_api_spec.rb+++ b/spec/requests/api/v3/queries/create_form_api_spec.rb@@ -29,7 +29,7 @@ require 'spec_helper'require 'rack/test'RSpec.describe "POST /api/v3/queries/form",- with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do+ with_ee: %i[baseline_comparison] doinclude API::V3::Utilities::PathHelperlet(:path) { api_v3_paths.create_query_form }diff --git a/spec/requests/api/v3/queries/create_query_spec.rb b/spec/requests/api/v3/queries/create_query_spec.rbindex 6679cd91c55..f9cdac84f3b 100644--- a/spec/requests/api/v3/queries/create_query_spec.rb+++ b/spec/requests/api/v3/queries/create_query_spec.rb@@ -29,7 +29,7 @@require 'spec_helper'RSpec.describe "POST /api/v3/queries",- with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do+ with_ee: %i[baseline_comparison] doshared_let(:user) { create(:admin) }shared_let(:status) { create(:status) }shared_let(:project) { create(:project) }diff --git a/spec/requests/api/v3/queries/query_resource_spec.rb b/spec/requests/api/v3/queries/query_resource_spec.rbindex 6a4aec210ba..d6c2c6119a5 100644--- a/spec/requests/api/v3/queries/query_resource_spec.rb+++ b/spec/requests/api/v3/queries/query_resource_spec.rb@@ -30,8 +30,7 @@ require 'spec_helper'require 'rack/test'RSpec.describe 'API v3 Query resource',- content_type: :json,- with_flag: { show_changes: true } do+ content_type: :json doinclude Rack::Test::Methodsinclude API::V3::Utilities::PathHelperdiff --git a/spec/requests/api/v3/queries/update_form_api_spec.rb b/spec/requests/api/v3/queries/update_form_api_spec.rbindex e7480c1be4f..af95a799334 100644--- a/spec/requests/api/v3/queries/update_form_api_spec.rb+++ b/spec/requests/api/v3/queries/update_form_api_spec.rb@@ -29,7 +29,7 @@ require 'spec_helper'require 'rack/test'RSpec.describe "POST /api/v3/queries/form",- with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do+ with_ee: %i[baseline_comparison] doinclude API::V3::Utilities::PathHelperlet(:path) { api_v3_paths.query_form(query.id) }diff --git a/spec/requests/api/v3/queries/update_query_spec.rb b/spec/requests/api/v3/queries/update_query_spec.rbindex 0bc8c500c52..7500456577f 100644--- a/spec/requests/api/v3/queries/update_query_spec.rb+++ b/spec/requests/api/v3/queries/update_query_spec.rb@@ -29,7 +29,7 @@require 'spec_helper'RSpec.describe "PATCH /api/v3/queries/:id",- with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do+ with_ee: %i[baseline_comparison] doshared_let(:user) { create(:admin) }shared_let(:status) { create(:status) }shared_let(:project) { create(:project) }diff --git a/spec/requests/api/v3/work_packages/index_resource_spec.rb b/spec/requests/api/v3/work_packages/index_resource_spec.rbindex 21a3276541b..4ce2ff12c58 100644--- a/spec/requests/api/v3/work_packages/index_resource_spec.rb+++ b/spec/requests/api/v3/work_packages/index_resource_spec.rb@@ -238,7 +238,7 @@ RSpec.describe 'API v3 Work package resource',endend- context 'when providing timestamps', with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do+ context 'when providing timestamps', with_ee: %i[baseline_comparison] dosubject doget pathlast_responsediff --git a/spec/services/api/v3/work_package_collection_from_query_service_spec.rb b/spec/services/api/v3/work_package_collection_from_query_service_spec.rbindex 0188a8f6fd7..9e113bbdfd2 100644--- a/spec/services/api/v3/work_package_collection_from_query_service_spec.rb+++ b/spec/services/api/v3/work_package_collection_from_query_service_spec.rb@@ -235,7 +235,7 @@ RSpec.describe API::V3::WorkPackageCollectionFromQueryService,endend- context 'when timestamps are given', with_flag: { show_changes: true } do+ context 'when timestamps are given' dolet(:timestamps) { [Timestamp.parse("P-1Y"), Timestamp.parse("oneWeekAgo@12:00+00:00"), Timestamp.now] }let(:query) { build_stubbed(:query, timestamps:) }diff --git a/spec/services/update_query_from_params_service_spec.rb b/spec/services/update_query_from_params_service_spec.rbindex 16444654bf6..e297f460f3c 100644--- a/spec/services/update_query_from_params_service_spec.rb+++ b/spec/services/update_query_from_params_service_spec.rb@@ -191,7 +191,7 @@ RSpec.describe UpdateQueryFromParamsService,endend- context "when providing timestamps", with_flag: { show_changes: true } do+ context "when providing timestamps" dolet(:timestamps) do[Timestamp.parse("2022-10-29T23:01:23Z"),diff --git a/spec/support/queries/shared_get_individual_query_examples.rb b/spec/support/queries/shared_get_individual_query_examples.rbindex 1896e504333..62ac7244733 100644--- a/spec/support/queries/shared_get_individual_query_examples.rb+++ b/spec/support/queries/shared_get_individual_query_examples.rb@@ -97,7 +97,7 @@ RSpec.shared_examples_for 'GET individual query' doendend- describe 'timestamps', with_flag: { show_changes: true } do+ describe 'timestamps' dolet(:path) doparams = CGI.escape(timestamps.join(","))"#{base_path}?timestamps=#{params}"