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
baseline api: show `attributesByTimestamp` and `_meta` when using `timestamps`
Sebastian Fiedlschuster671de405b035
diff --git a/lib/api/v3/work_packages/work_package_representer.rb b/lib/api/v3/work_packages/work_package_representer.rbindex 095961688f7..aed22ed8c05 100644--- a/lib/api/v3/work_packages/work_package_representer.rb+++ b/lib/api/v3/work_packages/work_package_representer.rb@@ -333,7 +333,8 @@ module APIproperty :_meta,if: ->(*) {respond_to? :matches_query_filters_at_timestamps \- and matches_query_filters_at_timestamps.any?+ and respond_to? :timestamps \+ and timestamps != [Timestamp.now]},getter: ->(*) {{@@ -353,7 +354,6 @@ module API#'timestamp': timestamps.last.to_s}- }},uncacheable: true@@ -507,7 +507,7 @@ module APIproperty :attributes_by_timestamp,as: :attributesByTimestamp,- if: ->(*) { respond_to?(:attributes_by_timestamp) and attributes_by_timestamp.present? },+ if: ->(*) { respond_to?(:attributes_by_timestamp) and respond_to?(:timestamps) and timestamps != [Timestamp.now] },getter: ->(*) dotimestamps.collect do |timestamp|attrs = attributes_by_timestamp[timestamp.to_s].to_h