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

Make changes to Django model and API to reflect new "disabled" state #24

Open
henrywrightPSC opened this issue Apr 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@henrywrightPSC
Copy link
Collaborator

What?
As a system administrator I want to move all of one care providers' care recipients into a state where messages aren't sent for them but their information remains in the system.

Why?

  • A care provider may want to turn off messages for a week
  • We may need to pause the pilot for some reason and this would add robustness

It's done when

  • Django model changes are made to add a new boolean is_disabled field with a default value of false
  • Changes made to the OpenAPI spec on the infrastructure repo to document the following behaviour of the /care-provider-location/_search API endpoint
    • 404 not found for a request made for a care recipient marked as is_disabled=true in the database (this will be identical to if a patient isn't in the database at all
  • A 404 not found is returned for requests made where the care recipient is in the database but marked as is_disabled=true
  • Remaining functionality continues to work as-is for those marked as is_disabled=false
@henrywrightPSC henrywrightPSC added the enhancement New feature or request label Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant