-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[50953] Progress reporting for work package hierarchies: Change calculation and name of Work and Remaining work #14216
[50953] Progress reporting for work package hierarchies: Change calculation and name of Work and Remaining work #14216
Conversation
380119e
to
5a4f2b2
Compare
9ffdf64
to
73336f6
Compare
5f52f15
to
ded6313
Compare
Removing and readding pullpreview tag to trigger a fresh pullpreview. Previous one was failing due to inability to download googleauth gem as version 1.9.0 has been yanked. It should work now that version has been updated to 1.9.1. |
76f5e4d
to
af24873
Compare
bd74da2
to
0f5bd78
Compare
40a5526
to
a65daab
Compare
384511e
to
070b68c
Compare
It allows to declare work packages and their properties from a visual table. It is especially useful to visualize hierarchies and data as if it were presented in the work package table page in OpenProject app.
For consistency because all other options are capitalized.
It allows removing the `finicky` flag from the `add` method. FWIW the `have_link` only works if the `a` tag has a `href` attribute, and some column headers like "Overall costs" did not have it, which is why another way of selecting them was needed. With the `:columnheader` selector, it works fine and reads better.
Also rewrote parts of the test to fix rubocop issues and make assertions more expressive.
For instance with the following wiki text: "Current estimates: workPackageValue:1234:estimatedTime".
070b68c
to
d4f6361
Compare
|
||
def read_and_update_work_packages_data(work_packages_data) | ||
work_packages_data.each do |work_package_data| | ||
work_package_data => { attributes:, row: } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to look up what this does. Very cool that it works somewhat like a Hash destructuring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pattern matching. I'm still not sure if I like it or not, so I try using it from times to times to get a better feeling about it.
symbolic_name = name.to_sym | ||
return symbolic_name if @work_packages_by_identifier.has_key?(symbolic_name) | ||
|
||
spell_checker = DidYouMean::SpellChecker.new(dictionary: @work_packages_by_identifier.keys.map(&:to_s)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've always been curious how this is done, cool!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This belongs in the Hall-of-fame. Excellent 🎨
Epic: https://community.openproject.org/wp/40867
Feature: https://community.openproject.org/wp/50953
This PR is for the feature and will be frequently rebased onto
dev
as the more specialized PR are merged.Pull requests: