Skip to content

Commit

Permalink
Merge pull request #14680 from opf/feature/52252-remove-derived-remai…
Browse files Browse the repository at this point in the history
…ning-work-from-work-package-form-configuration

[52252] Exclude derived_remaining_time from work package form
  • Loading branch information
cbliard committed Feb 1, 2024
2 parents 020e38b + 3565c08 commit 4ca30e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/models/type/attributes.rb
Expand Up @@ -35,6 +35,7 @@ module Type::Attributes
derived_start_date
derived_due_date
derived_estimated_time
derived_remaining_time
ignore_non_working_days
duration
description
Expand Down Expand Up @@ -80,6 +81,7 @@ def all_work_package_form_attributes(merge_date: false)

OpenProject::Cache.fetch('all_work_package_form_attributes',
*wp_cf_cache_parts,
EXCLUDED.length,
merge_date) do
calculate_all_work_package_form_attributes(merge_date)
end
Expand Down
6 changes: 3 additions & 3 deletions spec/features/work_packages/share/access_spec.rb
Expand Up @@ -100,7 +100,7 @@
%i[type subject description
assignee responsible
estimatedTime remainingTime
combinedDate percentageDone category version derivedRemainingTime
combinedDate percentageDone category version
overallCosts laborCosts].each do |field|
work_package_page.edit_field(field).expect_read_only
end
Expand Down Expand Up @@ -174,7 +174,7 @@
%i[type subject description
assignee responsible
estimatedTime remainingTime
combinedDate percentageDone category version derivedRemainingTime
combinedDate percentageDone category version
overallCosts laborCosts].each do |field|
work_package_page.edit_field(field).expect_read_only
end
Expand Down Expand Up @@ -258,7 +258,7 @@
.to be_editable
end
# Except for
%i[version derivedRemainingTime
%i[version
overallCosts laborCosts].each do |field|
work_package_page.edit_field(field).expect_read_only
end
Expand Down

0 comments on commit 4ca30e8

Please sign in to comment.