Skip to content

Conversation

@nickvergessen
Copy link
Member

… automation

Summary

Over some time now I noticed that my user status was not toggling correctly with my working schedule.
Since I had quite a "complex" time schedule I assumed the math/checking of IN or OUT is not working.
But after trying to extract my data from our instance to replay it locally, I found the root-cause and it's so much simpler.

Since this is not the first time we have a where-whereOr/whereAnd-where situation, I wonder if we should add some safety net by logging an error when where is being used on a query builder while the current where is not empty. But it reduces reusability of QueryBuilder objects (a pattern I dislike anyway 😅)

Checklist

@nickvergessen nickvergessen added this to the Nextcloud 26 milestone Jan 20, 2023
@nickvergessen nickvergessen requested a review from a team January 20, 2023 06:30
@nickvergessen nickvergessen self-assigned this Jan 20, 2023
@nickvergessen nickvergessen requested review from ArtificialOwl, blizzz and icewind1991 and removed request for a team January 20, 2023 06:30
@nickvergessen
Copy link
Member Author

/backport to stable25

@nickvergessen
Copy link
Member Author

/backport to stable24

Copy link
Member

@AndyScherzinger AndyScherzinger left a comment

Choose a reason for hiding this comment

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

LGTM

@nickvergessen nickvergessen merged commit 3eda055 into master Jan 23, 2023
@nickvergessen nickvergessen deleted the bugfix/noid/fix-user-availability-selection branch January 23, 2023 14:59
@backportbot-nextcloud
Copy link

The backport to stable24 failed. Please do this backport manually.

@nickvergessen
Copy link
Member Author

New in 25, so okay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants