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

[22360] Edit lag to follow-precedes-relations #17299

Merged
merged 5 commits into from
Dec 3, 2024

Conversation

HDinger
Copy link
Contributor

@HDinger HDinger commented Nov 28, 2024

Ticket

https://community.openproject.org/projects/stream-planning-and-reporting/work_packages/22360/activity

What are you trying to accomplish?

Show and edit the Lag for follows/precedes relationships.

ToDo

Dialog

  • Add a text field "Lag" to the Dialogs for follows and precedes relationships
  • The text field should show a unit when not focused. On focus, the unit is hidden
  • Update the Lag when saving the Dialog

Relations tab

  • If a Lag exists, it is shown:
    • before the date for successors
    • after the date for predecessors

Screenshots

Bildschirmfoto 2024-11-28 um 11 04 35 Bildschirmfoto 2024-11-29 um 12 49 36

Merge checklist

  • Added/updated tests

@HDinger HDinger added this to the 15.2.x milestone Nov 28, 2024
@HDinger HDinger force-pushed the feature/22360-edit-lag-to-follow-precedes-relations branch from c7a2951 to b3f9157 Compare November 29, 2024 09:46
@HDinger HDinger force-pushed the feature/22360-edit-lag-to-follow-precedes-relations branch from 150dda9 to 6337a5e Compare November 29, 2024 11:46
@HDinger HDinger marked this pull request as ready for review November 29, 2024 11:47
@HDinger HDinger force-pushed the feature/22360-edit-lag-to-follow-precedes-relations branch from 6337a5e to fdb15b5 Compare November 29, 2024 11:47
@HDinger HDinger requested a review from cbliard December 2, 2024 08:02
@cbliard cbliard self-assigned this Dec 2, 2024
Copy link
Member

@cbliard cbliard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code wise, that looks good for me 👍

Regarding the feature, it should not allow negative lag values. This will be possible later but that's in another feature.

And when lag is 0 or unset, it behaves the same regarding scheduling, so I believe it should behave the same in the relations tab: either it displays "lag: 0 days" in both cases, or it should hide the lag information in both case. Currently it display it if lag is 0 and hides it if lag is nil. Between the 2 options, I would prefer hiding it.

@HDinger HDinger requested a review from cbliard December 3, 2024 07:43
Copy link
Member

@cbliard cbliard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect 👌

@cbliard
Copy link
Member

cbliard commented Dec 3, 2024

On last CI attempts, the failed tests were different, meaning they pass but are flickering.

  • First attempt:
    • spec/features/work_packages/details/inplace_editor/subject_editor_spec.rb:80 failed
  • Second attempt:
    • ./spec/features/work_packages/update_ancestors_spec.rb:173 failed
    • modules/boards/spec/features/board_navigation_spec.rb:181 failed

I also tested them locally and they all pass, so it's ok to merge.

@cbliard cbliard merged commit 5af44cb into dev Dec 3, 2024
10 of 11 checks passed
@cbliard cbliard deleted the feature/22360-edit-lag-to-follow-precedes-relations branch December 3, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants