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

Merge remote-tracking branch 'origin/dev' into bug/46883-visibility-check-by-project-applied-to-current-project-instead-of-at-timestamp

ulferts55439c788602
diff --cc spec/lib/api/v3/work_packages/work_package_collection_representer_spec.rb
index 085f5716735,23122853c4d..24ab7388097
--- 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
@@@ -660,8 -627,15 +660,8 @@@ describe API::V3::WorkPackages::WorkPac
query.timestamps = timestamps
end
end
- let(:current_user) do
- create(:user,
- firstname: 'user',
- lastname: '1',
- member_in_project: project,
- 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 --cc spec/lib/api/v3/work_packages/work_package_representer_spec.rb
index aed7516b45a,822b88b3dd1..af24d718603
--- a/spec/lib/api/v3/work_packages/work_package_representer_spec.rb
+++ b/spec/lib/api/v3/work_packages/work_package_representer_spec.rb
@@@ -1417,8 -1410,15 +1417,8 @@@ describe API::V3::WorkPackages::WorkPac
query.timestamps = timestamps
end
end
- let(:current_user) do
- create(:user,
- firstname: 'user',
- lastname: '1',
- member_in_project: project,
- member_with_permissions: %i[view_work_packages view_file_links])
- end
- describe 'attributesByTimestamp', with_flag: { show_changes: true } do
+ describe 'attributesByTimestamp', with_ee: %i[baseline_comparison], with_flag: { show_changes: true } do
it 'states whether the work package matches the query filters at the timestamp' do
expect(subject)
.to be_json_eql(true.to_json)