-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: checking for last-data in notices from snapd (#116)
The data we get from the snapd notices endpoint now supports an optional `last-data` field which we can use to be a little more efficient in how we pull prompt details. ``` { "id": "1674", "user-id": 1000, "type": "interfaces-requests-prompt", "key": "000000000000014E", "first-occurred": "2024-09-13T13:05:05.189006863Z", "last-occurred": "2024-09-13T13:05:05.232809028Z", "last-repeated": "2024-09-13T13:05:05.232809028Z", "occurrences": 2, "last-data": { "resolved": "replied" }, "expire-after": "168h0m0s" } ``` In the case where we get a notice with `last-data.resolved == "replied"` we can treat this in the same way we currently treat getting a 404 when pulling prompt details (i.e. removing our internal state for that prompt).
- Loading branch information
Showing
6 changed files
with
104 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.