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
rely on contract for duration & non working days writability
ulferts2a79beb60d59
diff --git a/lib/api/v3/work_packages/schema/work_package_schema_representer.rb b/lib/api/v3/work_packages/schema/work_package_schema_representer.rbindex 6d2670a895b..07d6881f2cd 100644--- a/lib/api/v3/work_packages/schema/work_package_schema_representer.rb+++ b/lib/api/v3/work_packages/schema/work_package_schema_representer.rb@@ -120,7 +120,6 @@ module APIschema :duration,type: 'Duration',required: false,- writable: false,show_if: ->(*) { !represented.milestone? && OpenProject::FeatureDecisions.work_packages_duration_field_active? }schema :schedule_manually,@@ -131,7 +130,6 @@ module APIschema :ignore_non_working_days,type: 'Boolean',required: false,- writable: false,show_if: ->(*) { OpenProject::FeatureDecisions.work_packages_duration_field_active? }schema :start_date,diff --git a/spec/lib/api/v3/work_packages/schema/work_package_schema_representer_spec.rb b/spec/lib/api/v3/work_packages/schema/work_package_schema_representer_spec.rbindex 97579914527..dc97b30b9e6 100644--- a/spec/lib/api/v3/work_packages/schema/work_package_schema_representer_spec.rb+++ b/spec/lib/api/v3/work_packages/schema/work_package_schema_representer_spec.rb@@ -307,7 +307,7 @@ describe ::API::V3::WorkPackages::Schema::WorkPackageSchemaRepresenter dolet(:type) { 'Duration' }let(:name) { I18n.t('activerecord.attributes.work_package.duration') }let(:required) { false }- let(:writable) { false }+ let(:writable) { true }endcontext 'when the work package is a milestone' do@@ -342,7 +342,7 @@ describe ::API::V3::WorkPackages::Schema::WorkPackageSchemaRepresenter dolet(:type) { 'Boolean' }let(:name) { I18n.t('activerecord.attributes.work_package.ignore_non_working_days') }let(:required) { false }- let(:writable) { false }+ let(:writable) { true }endcontext 'when the feature flag is off', with_flag: { work_packages_duration_field_active: false } do