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
move percentage_done to "estimates and time" section
ulferts7c139d031107
diff --git a/app/models/type/attribute_groups.rb b/app/models/type/attribute_groups.rbindex e449d316a23..a54aa240da4 100644--- a/app/models/type/attribute_groups.rb+++ b/app/models/type/attribute_groups.rb@@ -41,11 +41,11 @@ module Type::AttributeGroups# May be extended by pluginsmattr_accessor :default_group_map do{- author: :people,assignee: :people,responsible: :people,estimated_time: :estimates_and_time,remaining_time: :estimates_and_time,+ percentage_done: :estimates_and_time,spent_time: :estimates_and_time,priority: :details}@@ -170,6 +170,7 @@ module Type::AttributeGroupswork_package_attributes.keys.select { |key| default_attribute?(active_cfs, key) }+ .sort_by { |key| default_group_map.keys.index(key.to_sym) || default_group_map.keys.size }.group_by { |key| default_group_key(key.to_sym) }enddiff --git a/spec/features/types/form_configuration_spec.rb b/spec/features/types/form_configuration_spec.rbindex dcf71074559..c4fede9912c 100644--- a/spec/features/types/form_configuration_spec.rb+++ b/spec/features/types/form_configuration_spec.rb@@ -125,19 +125,20 @@ RSpec.describe "form configuration", :js do#form.expect_group "people","People",- key: :responsible, translation: "Accountable"+ { key: :assignee, translation: "Assignee" },+ { key: :responsible, translation: "Accountable" }form.expect_group "estimates_and_time","Estimates and time",{ key: :estimated_time, translation: "Work" },- { key: :spent_time, translation: "Spent time" },- { key: :remaining_time, translation: "Remaining work" }+ { key: :remaining_time, translation: "Remaining work" },+ { key: :percentage_done, translation: "% Complete" },+ { key: :spent_time, translation: "Spent time" }form.expect_group "details","Details",{ key: :category, translation: "Category" },{ key: :date, translation: "Date" },- { key: :percentage_done, translation: "% Complete" },{ key: :priority, translation: "Priority" },{ key: :version, translation: "Version" }@@ -182,13 +183,13 @@ RSpec.describe "form configuration", :js doform.expect_group "estimates_and_time","Estimates and time",{ key: :estimated_time, translation: "Work" },- { key: :spent_time, translation: "Spent time" },- { key: :remaining_time, translation: "Remaining work" }+ { key: :remaining_time, translation: "Remaining work" },+ { key: :percentage_done, translation: "% Complete" },+ { key: :spent_time, translation: "Spent time" }form.expect_group "Whatever","Whatever",- { key: :date, translation: "Date" },- { key: :percentage_done, translation: "% Complete" }+ { key: :date, translation: "Date" }form.expect_group "New Group","New Group",@@ -213,7 +214,7 @@ RSpec.describe "form configuration", :js doendwp_page.expect_group("Whatever") do- wp_page.expect_attributes percentageDone: "10"+ wp_page.expect_attributes combinedDate: "no start date - no finish date"endwp_page.expect_group("Cool Stuff") do