-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[RAM] Create data model for scheduled and recurring snoozes #130724
Comments
Pinging @elastic/response-ops (Team:ResponseOps) |
Turns out this already touches a lot of existing functionality. The data model I'm migrating to is: "snoozeIndefinitely": {
"type": "boolean"
},
"snoozeSchedule": {
"properties": {
"id": {
"type": "keyword"
},
"startTime": {
"type": "date",
"format": "strict_date_time"
},
"duration": {
"type": "long"
},
"repeatInterval": {
"type": "keyword"
},
"occurrences": {
"type": "long"
},
"repeatEndTime": {
"type": "date",
"format": "strict_date_time"
}
}
}
When we add the scheduled snooze UI, we'll also make use of:
Because this is an array that can store an indefinite number of scheduled snoozes, we may want to create a cleanup task to clear expired snoozes from the |
After discussing with @XavierM and @pmuellr, we're simplifying the data model in favor of setting an iCal RRULE for any recurring snoozes. |
This sounds great. Love aligning on standards, so we can say "we didn't invent this, it's a 'standard'" :-) Opens the door to us being able to "import/export" some of this calendar-ish data with other apps. I did take a look at some other incident providers, and they don't seem to have great support for this kind of thing, but ... I'll bet some do. Could be an interesting integration angle. Kinda funny, when I click on the link in the comment ^^^, I get the following: |
Modify SavedObject specification to include more than just a
snoozeEndTime
but also:Also create a migration to move from the old data model (Just
snoozeEndTime
) to this new modelThe text was updated successfully, but these errors were encountered: