Skip to content
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

Implemented case snoozes. #887

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Implemented case snoozes. #887

wants to merge 3 commits into from

Conversation

apognu
Copy link
Contributor

@apognu apognu commented Mar 5, 2025

A case can now be snoozed, either until a specified date and time, or until a new decision is added to the case, whichever happens first.

A new filter can be provided when listing cases (which by default does not include snoozed cases), include_snoozed, to keep displaying snoozed cases.

TODO:

  • Manual snoozing
  • Manual unsnoozing
  • Removal from listing when snoozed
  • Add a list param to still include snoozed cases
  • Unsnooze a case when a new decision is added
  • Add case events when a case is manually snoozed or unsnoozed

@apognu apognu added enhancement New feature or request go Pull requests that update Go code labels Mar 5, 2025
@apognu apognu self-assigned this Mar 5, 2025
@apognu apognu force-pushed the feat/casemanager/snoozing branch from 0f64e2b to 4f26438 Compare March 5, 2025 14:45
apognu added 2 commits March 6, 2025 08:32
A case can now be snoozed, either until a specified date and time, or until a new decision is added to the case, whichever happens first.

A new filter can be provided when listing cases, `include_snoozed`, to keep displaying snoozed cases.
@apognu apognu force-pushed the feat/casemanager/snoozing branch from f63953b to 44b8dd7 Compare March 6, 2025 07:32
var previousSnooze *string

if c.IsSnoozed() {
previousSnooze = utils.Ptr(c.SnoozedUntil.Format(time.RFC3339))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pascal-Delange Quite unsure here, do we have another standard datetime format when we manually serialize it (without using a timestmap)? This seems aligned with what we return, but if it is not, I'll change it.

@apognu apognu marked this pull request as ready for review March 6, 2025 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant