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 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.rb
index 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)
end
diff --git a/config/initializers/feature_decisions.rb b/config/initializers/feature_decisions.rb
index 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_pages
OpenProject::FeatureDecisions.add :personal_theme_selection
diff --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.ts
index 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.ts
index 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.rb
index 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::Boards
caption: :'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)
end
diff --git a/modules/boards/spec/features/board_index_spec.rb b/modules/boards/spec/features/board_index_spec.rb
index 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/29754
shared_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.rb
index 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/29754
shared_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.rb
index 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 do
visit root_path
end
- 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_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))
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)
end
end
end
diff --git a/modules/boards/spec/features/menu_items/top_menu_item_spec.rb b/modules/boards/spec/features/menu_items/top_menu_item_spec.rb
index 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 do
end
end
- 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' do
before do
visit root_path
end
- 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
+ end
end
end
end
diff --git a/modules/calendar/lib/open_project/calendar/engine.rb b/modules/calendar/lib/open_project/calendar/engine.rb
index 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::Calendar
end
should_render = Proc.new do
- OpenProject::FeatureDecisions.more_global_index_pages_active? &&
(User.current.logged? || !Setting.login_required?) &&
User.current.allowed_to_globally?(:view_calendar)
end
diff --git a/modules/calendar/spec/features/calendars_global_create_spec.rb b/modules/calendar/spec/features/calendars_global_create_spec.rb
index 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 do
include_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.rb
index 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 do
let(: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' do
shared_examples 'global index page is reachable' do
it 'is reachable' do
expect(page).to have_current_path(calendars_path)
@@ -104,7 +104,7 @@ RSpec.describe 'Calendars', 'index', :js, :with_cuprite do
end
end
- context 'when visiting from a global context', with_flag: { more_global_index_pages: true } do
+ context 'when visiting from a global context' do
let(: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.rb
index 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::Meeting
partial: '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)
end
diff --git a/modules/meeting/spec/features/meetings_global_menu_item_spec.rb b/modules/meeting/spec/features/meetings_global_menu_item_spec.rb
index 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 do
shared_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.rb
index 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 do
end
end
- context 'when visiting from a global context', with_flag: { more_global_index_pages: true } do
+ context 'when visiting from a global context' do
let(:meetings_page) { Pages::Meetings::Index.new(project: nil) }
it 'lists all upcoming meetings for all projects the user has access to' do
diff --git a/modules/team_planner/lib/open_project/team_planner/engine.rb b/modules/team_planner/lib/open_project/team_planner/engine.rb
index 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::TeamPlanner
end
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_team_planner)
end
diff --git a/modules/team_planner/spec/features/team_planner_global_create_spec.rb b/modules/team_planner/spec/features/team_planner_global_create_spec.rb
index 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] do
include_context 'with team planner full access'
context 'within the overview page' do
diff --git a/modules/team_planner/spec/features/team_planner_menu_spec.rb b/modules/team_planner/spec/features/team_planner_menu_spec.rb
index 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' do
before do
login_as user_without_rights
diff --git a/modules/team_planner/spec/features/team_planner_overview_spec.rb b/modules/team_planner/spec/features/team_planner_overview_spec.rb
index 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] do
include_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.rb
index 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 do
include_context 'ModelContract shared context'
include_context 'with queries contract'
- describe 'timestamps', with_flag: { show_changes: true } do
+ describe 'timestamps' do
let(:query) { build_stubbed(:query, timestamps:) }
context 'with EE', with_ee: %i[baseline_comparison] do
diff --git a/spec/features/menu_items/top_menu_item_spec.rb b/spec/features/menu_items/top_menu_item_spec.rb
index 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 do
top_menu.click if open_menu
end
- describe 'Modules', with_flag: { more_global_index_pages_active: true } do
+ describe 'Modules' do
let!(: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.rb
index 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] do
it 'shows the item with all values removed' do
wp_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.rb
index 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' do
login_as berlin_user
wp_table.visit!
@@ -86,7 +86,7 @@ RSpec.describe 'baseline query saving',
end
end
- it 'can configure and save baseline queries', with_flag: { show_changes: true } do
+ it 'can configure and save baseline queries' do
login_as berlin_user
wp_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.rb
index 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] do
it 'does show changes' do
wp_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',
end
end
- 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 do
it 'disabled options' do
wp_table.visit_query(query)
baseline_modal.expect_closed
diff --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.rb
index 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 do
end
end
- 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] do
let(:timestamps) { [Timestamp.parse("2022-01-01T00:00:00Z"), Timestamp.parse("PT0S")] }
describe 'attributesByTimestamp' do
diff --git a/spec/lib/api/v3/work_packages/work_package_representer_spec.rb b/spec/lib/api/v3/work_packages/work_package_representer_spec.rb
index 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 do
end
end
- describe 'attributesByTimestamp', with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do
+ describe 'attributesByTimestamp', with_ee: %i[baseline_comparison] do
it 'states whether the work package matches the query filters at the timestamp' do
expect(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.rb
index 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] do
create_shared_association_defaults_for_work_package_factory
shared_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.rb
index 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] do
let(: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.rb
index 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] do
describe "#timestamps" do
subject { query.timestamps }
diff --git a/spec/models/query_spec.rb b/spec/models/query_spec.rb
index 6afc1b38d25..f229902c334 100644
--- a/spec/models/query_spec.rb
+++ b/spec/models/query_spec.rb
@@ -108,7 +108,7 @@ RSpec.describe Query,
end
end
- describe 'timestamps', with_flag: { show_changes: true } do
+ describe 'timestamps' do
subject { build(:query, timestamps:) }
context 'with EE', with_ee: %i[baseline_comparison] do
@@ -755,7 +755,7 @@ RSpec.describe Query,
end
end
- context 'with timestamps', with_flag: { show_changes: true } do
+ context 'with timestamps' do
let(:timestamps) do
[3.weeks.ago.iso8601, 'oneWeekAgo@12:00+00:00', 'oneDayAgo@12:00+00:00', 'PT0S']
end
diff --git a/spec/requests/api/v3/queries/create_form_api_spec.rb b/spec/requests/api/v3/queries/create_form_api_spec.rb
index 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] do
include API::V3::Utilities::PathHelper
let(: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.rb
index 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] do
shared_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.rb
index 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 do
include Rack::Test::Methods
include API::V3::Utilities::PathHelper
diff --git a/spec/requests/api/v3/queries/update_form_api_spec.rb b/spec/requests/api/v3/queries/update_form_api_spec.rb
index 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] do
include API::V3::Utilities::PathHelper
let(: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.rb
index 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] do
shared_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.rb
index 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',
end
end
- context 'when providing timestamps', with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do
+ context 'when providing timestamps', with_ee: %i[baseline_comparison] do
subject do
get path
last_response
diff --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.rb
index 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,
end
end
- context 'when timestamps are given', with_flag: { show_changes: true } do
+ context 'when timestamps are given' do
let(: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.rb
index 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,
end
end
- context "when providing timestamps", with_flag: { show_changes: true } do
+ context "when providing timestamps" do
let(: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.rb
index 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' do
end
end
- describe 'timestamps', with_flag: { show_changes: true } do
+ describe 'timestamps' do
let(:path) do
params = CGI.escape(timestamps.join(","))
"#{base_path}?timestamps=#{params}"