Mark VanLandingham
1a7922bea2
FEATURE: Create notification schedule to automatically set do not disturb time ( #11665 )
...
This adds a new table UserNotificationSchedules which stores monday-friday start and ends times that each user would like to receive notifications (with a Boolean enabled to remove the use of the schedule). There is then a background job that runs every day and creates do_not_disturb_timings for each user with an enabled notification schedule. The job schedules timings 2 days in advance. The job is designed so that it can be run at any point in time, and it will not create duplicate records.
When a users saves their notification schedule, the schedule processing service will run and schedule do_not_disturb_timings. If the user should be in DND due to their schedule, the user will immediately be put in DND (message bus publishes this state).
The UI for a user's notification schedule is in user -> preferences -> notifications. By default every day is 8am - 5pm when first enabled.
2021-01-20 10:31:52 -06:00
..
2020-10-14 18:20:41 +11:00
2020-05-23 00:56:13 -04:00
2020-12-08 11:55:49 -08:00
2019-05-13 09:31:32 +08:00
2020-09-15 10:00:10 -04:00
2019-07-02 11:53:16 +10:00
2020-05-12 11:18:19 +03:00
2019-05-13 09:31:32 +08:00
2020-07-21 14:00:43 -04:00
2019-10-02 14:01:53 +10:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-08-18 15:12:04 -03:00
2020-07-16 15:51:24 -03:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-10-08 12:10:43 +01:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-06-04 00:56:56 +05:30
2019-05-13 09:31:32 +08:00
2020-09-16 14:58:52 -04:00
2019-05-13 09:31:32 +08:00
2020-03-24 11:12:52 +02:00
2019-05-13 09:31:32 +08:00
2019-12-03 18:37:01 +11:00
2019-12-19 09:48:01 -08:00
2020-03-24 01:13:25 +05:30
2019-12-19 17:09:45 +02:00
2020-08-10 09:49:05 -05:00
2019-05-13 09:31:32 +08:00
2020-07-14 12:36:19 -04:00
2019-05-13 09:31:32 +08:00
2019-08-12 11:02:38 +01:00
2020-08-28 10:36:52 -04:00
2020-08-28 10:36:52 -04:00
2021-01-07 10:49:49 -06:00
2020-02-05 15:23:39 -05:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-03-23 11:30:40 +00:00
2019-05-13 09:31:32 +08:00
2019-07-30 15:05:08 -04:00
2020-07-27 10:23:54 +10:00
2019-05-13 09:31:32 +08:00
2020-12-09 15:40:40 -05:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-07-27 10:23:54 +10:00
2019-05-13 09:31:32 +08:00
2020-12-11 11:52:03 -05:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-09-16 16:02:28 -04:00
2019-11-25 10:49:27 +10:00
2019-05-13 09:31:32 +08:00
2019-07-02 11:22:01 +10:00
2019-05-13 09:31:32 +08:00
2020-04-30 16:48:53 +10:00
2019-05-13 09:31:32 +08:00
2020-06-09 20:49:32 +05:30
2020-06-09 20:49:32 +05:30
2020-06-09 20:49:32 +05:30
2020-06-09 20:49:32 +05:30
2020-06-09 20:49:32 +05:30
2020-09-11 15:51:11 +08:00
2019-11-29 09:30:54 -05:00
2020-07-13 12:07:39 -06:00
2019-05-13 09:31:32 +08:00
2020-05-25 14:51:01 +02:00
2020-10-16 15:24:58 +02:00
2020-06-19 10:44:21 -04:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-11-11 14:49:53 +02:00
2019-10-02 14:01:53 +10:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-06-17 12:42:20 +02:00
2019-05-13 09:31:32 +08:00
2021-01-15 09:43:26 +11:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-10-02 14:01:53 +10:00
2019-06-05 12:34:41 -04:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-07-19 11:56:14 -04:00
2019-10-08 09:49:07 -04:00
2019-10-02 14:01:53 +10:00
2019-05-23 11:54:45 -04:00
2020-11-11 14:09:42 -03:00
2019-05-23 11:54:45 -04:00
2019-05-13 09:31:32 +08:00
2021-01-15 09:43:26 +11:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-08-07 12:43:09 +08:00
2019-05-13 09:31:32 +08:00
2020-07-23 09:25:31 +08:00
2019-05-13 09:31:32 +08:00
2020-11-11 00:42:44 +05:30
2020-04-30 10:39:11 -07:00
2020-08-28 10:36:52 -04:00
2019-07-02 11:53:16 +10:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-12-10 12:02:07 -05:00
2019-12-04 13:33:51 -05:00
2019-05-13 09:31:32 +08:00
2020-11-16 14:44:09 +02:00
2019-05-31 14:49:59 +01:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-09-11 15:20:27 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2021-01-13 11:27:23 -03:00
2019-05-13 09:31:32 +08:00
2021-01-14 19:20:34 +02:00
2020-08-05 11:50:15 +10:00
2019-10-02 14:01:53 +10:00
2019-05-13 09:31:32 +08:00
2020-07-03 13:23:10 +02:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-04-20 10:03:25 -07:00
2019-05-13 09:31:32 +08:00
2020-07-14 14:43:41 +10:00
2020-05-13 14:03:24 +10:00
2020-07-27 10:23:54 +10:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-08-28 10:36:52 -04:00
2021-01-20 10:31:52 -06:00
2020-11-17 12:07:16 +00:00
2020-07-27 10:23:54 +10:00
2019-05-13 09:31:32 +08:00
2019-08-02 15:29:12 +01:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-11-11 14:49:53 +02:00
2020-10-16 16:24:38 -03:00
2020-06-16 13:00:09 +03:00
2019-05-13 09:31:32 +08:00
2020-11-09 15:14:57 -05:00
2020-08-20 17:10:33 -07:00
2019-05-13 09:31:32 +08:00