Skip to content
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

Merged

Conversation

@cbliard cbliard force-pushed the epic/40867-progress-reporting-for-work-package-hierarchies branch from 380119e to 5a4f2b2 Compare November 23, 2023 14:00
@cbliard cbliard force-pushed the epic/40867-progress-reporting-for-work-package-hierarchies branch 2 times, most recently from 9ffdf64 to 73336f6 Compare December 5, 2023 15:53
@cbliard cbliard force-pushed the epic/40867-progress-reporting-for-work-package-hierarchies branch from 5f52f15 to ded6313 Compare December 13, 2023 07:58
@cbliard
Copy link
Member Author

cbliard commented Dec 13, 2023

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.

@cbliard cbliard force-pushed the epic/40867-progress-reporting-for-work-package-hierarchies branch from 76f5e4d to af24873 Compare December 13, 2023 10:53
@cbliard cbliard force-pushed the epic/40867-progress-reporting-for-work-package-hierarchies branch 4 times, most recently from bd74da2 to 0f5bd78 Compare December 26, 2023 11:00
@cbliard cbliard force-pushed the epic/40867-progress-reporting-for-work-package-hierarchies branch from 40a5526 to a65daab Compare December 27, 2023 13:56
@as-op as-op removed the pullpreview label Jan 4, 2024
@cbliard cbliard force-pushed the epic/40867-progress-reporting-for-work-package-hierarchies branch 3 times, most recently from 384511e to 070b68c Compare January 8, 2024 15:12
@cbliard cbliard changed the title [40867] Progress reporting for work package hierarchies [50953] Progress reporting for work package hierarchies: Change calculation and name of Work and Remaining work Jan 9, 2024
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".
@cbliard cbliard force-pushed the epic/40867-progress-reporting-for-work-package-hierarchies branch from 070b68c to d4f6361 Compare January 9, 2024 16:47
@cbliard cbliard marked this pull request as ready for review January 9, 2024 16:52

def read_and_update_work_packages_data(work_packages_data)
work_packages_data.each do |work_package_data|
work_package_data => { attributes:, row: }
Copy link
Contributor

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.

Copy link
Member Author

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))
Copy link
Contributor

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!

Copy link
Contributor

@aaron-contreras aaron-contreras left a 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 🎨

@cbliard cbliard merged commit bee59a6 into dev Jan 10, 2024
12 checks passed
@cbliard cbliard deleted the epic/40867-progress-reporting-for-work-package-hierarchies branch January 10, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants