Skip to content

Bug/73464 user cannot save their notifications preferences if they save the show versions folded boolean as no#22641

Merged
EinLama merged 10 commits intorelease/17.3from
bug/73464-user-cannot-save-their-notifications-preferences-if-they-save-the-show-versions-folded-boolean-as-no
Apr 7, 2026
Merged

Bug/73464 user cannot save their notifications preferences if they save the show versions folded boolean as no#22641
EinLama merged 10 commits intorelease/17.3from
bug/73464-user-cannot-save-their-notifications-preferences-if-they-save-the-show-versions-folded-boolean-as-no

Conversation

@ulferts
Copy link
Copy Markdown
Contributor

@ulferts ulferts commented Apr 2, 2026

Ticket

https://community.openproject.org/wp/73464

What are you trying to accomplish?

Started out as a fix for a missing value on an unchecked checkbox. That is done in fa2a07a.

Then, it also adapts the labels on said checkbox to reference sprints instead of versions (7149d3a).

Those are the two parts that need to be in for 17.3. The other two commits could also be split off into a branch to be merged into dev. 1f78f5a enforces the validation of user prefs by using the UserPreferences::UpdateService inside the Users::UpdateService the lack of this validation was the root cause for the original bug being unnoticed first. An invalid value (according to the schema) was saved in the database. By then saving the backlogs preferences same as the rest of the prefs, the code could be simplified.

The last commit (0e2de3f) removes code dead for more than 10 years.

There is still a shortcoming in this solution. Faulty fields don't have an inline error:

image

This is still better than before where a faulty value was silently rejected. A success message was shown instead.

ulferts added 9 commits April 1, 2026 17:39
…r-cannot-save-their-notifications-preferences-if-they-save-the-show-versions-folded-boolean-as-no
…r-cannot-save-their-notifications-preferences-if-they-save-the-show-versions-folded-boolean-as-no
Fixes

rspec ./modules/costs/spec/features/time_entry_dialog_spec.rb:330

The reason it failed is that the id of the searched for work package might also be the id of the project or the status. Using the subject is stable
@ulferts ulferts marked this pull request as ready for review April 2, 2026 13:52
…their-notifications-preferences-if-they-save-the-show-versions-folded-boolean-as-no
Copy link
Copy Markdown
Contributor

@EinLama EinLama left a comment

Choose a reason for hiding this comment

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

Looks good and works 👍 I think we should merge the additional improvements as they are a simplification in one case - and removal of dead code in another case. It won't hurt to have them in knocking on wood.

@EinLama EinLama merged commit af7abae into release/17.3 Apr 7, 2026
17 checks passed
@EinLama EinLama deleted the bug/73464-user-cannot-save-their-notifications-preferences-if-they-save-the-show-versions-folded-boolean-as-no branch April 7, 2026 13:28
@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants