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

fixup! [#48001] Restrict timestamps outside enterprise to "yesterday"in query timestamps backend

Dombi Attila2ea8627eb018
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 c3e77664922..173dd6df4d6 100644
--- a/spec/features/work_packages/table/baseline/baseline_rendering_spec.rb
+++ b/spec/features/work_packages/table/baseline/baseline_rendering_spec.rb
@@ -158,7 +158,7 @@ describe 'baseline rendering',
current_user { user }
- describe 'with feature enabled', with_flag: { show_changes: true } do
+ describe 'with feature enabled', with_ee: %i[baseline_comparison], with_flag: { show_changes: true } 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
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 90ddf5dfe03..23122853c4d 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
@@ -635,7 +635,7 @@ describe API::V3::WorkPackages::WorkPackageCollectionRepresenter do
member_with_permissions: %i[view_work_packages view_file_links])
end
- context 'with baseline and current timestamps', with_flag: { show_changes: true } do
+ context 'with baseline and current timestamps', with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do
let(:timestamps) { [Timestamp.parse("2022-01-01T00:00:00Z"), Timestamp.parse("PT0S")] }
describe 'attributesByTimestamp' do
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 48442feb039..dc3e08c182b 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 @@ describe 'API v3 Work package resource',
end
end
- context 'when providing timestamps', with_flag: { show_changes: true } do
+ context 'when providing timestamps', with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do
subject do
get path
last_response