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
writeable properties for representers are not required within our stack
Christophe Bliard435c7855e393
diff --git a/modules/storages/lib/api/v3/file_links/file_link_representer.rb b/modules/storages/lib/api/v3/file_links/file_link_representer.rbindex 32133ce0e2d..d944ebafdb7 100644--- a/modules/storages/lib/api/v3/file_links/file_link_representer.rb+++ b/modules/storages/lib/api/v3/file_links/file_link_representer.rb@@ -36,9 +36,9 @@ module APIproperty :id- date_time_property :created_at, writeable: false+ date_time_property :created_at- date_time_property :updated_at, writeable: false+ date_time_property :updated_atproperty :originData,exec_context: :decorator,diff --git a/modules/storages/spec/lib/api/v3/file_links/file_link_representer_parsing_spec.rb b/modules/storages/spec/lib/api/v3/file_links/file_link_representer_parsing_spec.rbindex 24c31558482..116092fceb5 100644--- a/modules/storages/spec/lib/api/v3/file_links/file_link_representer_parsing_spec.rb+++ b/modules/storages/spec/lib/api/v3/file_links/file_link_representer_parsing_spec.rb@@ -68,20 +68,6 @@ describe ::API::V3::FileLinks::FileLinkRepresenter, 'parsing' do}end- describe 'given createdAt and updatedAt' do- let(:parsed_hash) do- {- "createdAt" => "2022-02-09T10:03:37Z",- "updatedAt" => "2022-02-09T10:03:37Z"- }- end-- it 'are not used by the parsing' do- expect(parsed).not_to have_attributes(created_at: DateTime.parse(parsed_hash["createdAt"]).in_time_zone,- updated_at: DateTime.parse(parsed_hash["updatedAt"]).in_time_zone)- end- end-describe 'storage' docontext 'if storage url is given with trailing slashes' dolet(:parsed_hash) do