-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat(dav): dispatch out-of-office started and ended events #41440
Conversation
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. |
* @method string getPropertyname() | ||
* @method string getPropertyvalue() | ||
*/ | ||
class Property extends Entity { |
Check notice
Code scanning / Psalm
PropertyNotSetInConstructor Note
Psalm and tests should be happy now |
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
apps/dav/lib/BackgroundJob/OutOfOfficeEventDispatcherJob.php
Dismissed
Show dismissed
Hide dismissed
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
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-execute
Checklist