-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat(dav): dispatch out-of-office started and ended events #41440
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
Conversation
ChristophWurst
left a comment
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.
Looks good! We'll need the user timezone to dispatch this at the correct time
66c089d to
1f3ef66
Compare
I'm looking into this now |
|
TZ handling based on a cleaned-up version of #41461 added. It's a bit messy to have to fetch the current timezone setting everywhere, OTOH this allows the tz to move with the user, should it ever change. Tests will need adjustment. Looking into that shortly. |
|
Psalm and tests should be happy now |
ChristophWurst
left a comment
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.
For @st3iny's part
Signed-off-by: Richard Steinmetz <[email protected]>
st3iny
left a comment
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.
✔️ for Christoph's part. There still is a off-by-one bug that will be fixed in a follow-up.
ea0dbb4 to
8191295
Compare
|
Merging because the 28 backport is in too |
Summary
Adds a new queued job that emits events when a out-of-office period of a user begins and ends.
TODO
How to smoke test
\OCA\DAV\BackgroundJob\OutOfOfficeEventDispatcherJob, note its idphp occ background-job:execute <id> --force-executeChecklist