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

feat: CE-1014 update web eoc filter to include complaints with a violation type of waste or pesticide in any region #649

Open
wants to merge 39 commits into
base: release/orca
Choose a base branch
from

Conversation

barrfalk
Copy link
Collaborator

@barrfalk barrfalk commented Sep 19, 2024

Description

NATCom will now accept the following complaints from WebEOC:

  • Flag_COS = Yes, or
  • Violation Type = Pesticide, or
  • Violation Type = Waste

Fixes # (issue)

How Has This Been Tested?

  • Create an ERS complaint in WebEOC where the location is not in Peace, and set the violation type to Pesticide. Ensure the complaint appears in NatCom.
  • Create an ERS complaint in WebEOC where the location is not in Peace, and set the violation type to Waste. Ensure the complaint appears in NatCom.
  • Create a HWCR complaint in WebEOC where the location is not in Peace. Ensure the complaint does not appear in NatCom.
  • Create a HWCR complaint in WebEOC where the location is in Peace. Ensure the complaint does appear in NatCom.

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Further comments


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

dmitri-korin-bcps and others added 30 commits August 26, 2024 07:56
…orcement-Complaint (#596)

Co-authored-by: Barrett Falk <[email protected]>
Co-authored-by: gregorylavery <[email protected]>
Co-authored-by: Scarlett <[email protected]>
Co-authored-by: Mike <[email protected]>
Co-authored-by: Mike Sears <[email protected]>
…etails do not appear in NatCom (#598)

Co-authored-by: Barrett Falk <[email protected]>
Co-authored-by: gregorylavery <[email protected]>
Co-authored-by: Scarlett <[email protected]>
Co-authored-by: dmitri-korin-bcps <[email protected]>
Co-authored-by: Mike Sears <[email protected]>
Co-authored-by: Barrett Falk <[email protected]>
Co-authored-by: Scarlett <[email protected]>
Co-authored-by: Mike <[email protected]>
Co-authored-by: dmitri-korin-bcps <[email protected]>
Co-authored-by: Mike Sears <[email protected]>
Co-authored-by: Mike Sears <[email protected]>
Co-authored-by: gregorylavery <[email protected]>
Co-authored-by: barrfalk <[email protected]>
Co-authored-by: Barrett Falk <[email protected]>
Co-authored-by: gregorylavery <[email protected]>
Co-authored-by: Mike <[email protected]>
Co-authored-by: dmitri-korin-bcps <[email protected]>
Co-authored-by: Mike Sears <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: afwilcox <[email protected]>
Co-authored-by: Mike Sears <[email protected]>
Co-authored-by: Barrett Falk <[email protected]>
Co-authored-by: afwilcox <[email protected]>
#623)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: afwilcox <[email protected]>
Co-authored-by: afwilcox <[email protected]>
Co-authored-by: Scarlett <[email protected]>
Co-authored-by: Barrett Falk <[email protected]>
Co-authored-by: Scarlett <[email protected]>
Co-authored-by: afwilcox <[email protected]>
…lds - incorrect toast (#629)

Co-authored-by: Mike Sears <[email protected]>
Co-authored-by: afwilcox <[email protected]>
barrfalk and others added 4 commits September 17, 2024 14:01
Get all flag_COS complaints, or complaints that have a violation type of waste or pesticide.
…ude-complaints-with-a-violation-type-of-Waste-or-Pesticide-in-any-region
return response.data as Complaint[];
const complaints = response.data as Complaint[];
let filteredComplaints: Complaint[];
if (flagName === WEBEOC_FLAGS.COMPLAINTS) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This logic is incorrect. It will only work for complaints but not Updates, Actions Taken or Updates to Actions Taken.

As a result Complaints are being filtered properly but all other messages are going through regardless of if the flag is set or not. E.g. if I create an update for a complaint in Victoria, the complaint is properly filtered out but the update is staged (and promptly errors because it can't find the complaint)

Copy link

sonarcloud bot commented Sep 20, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants