From 94afadd1d963fcf3366ed5d17d6f6ecb4c3347b2 Mon Sep 17 00:00:00 2001 From: dmitri-korin-bcps <108112696+dmitri-korin-bcps@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:05:03 -0700 Subject: [PATCH] fix: CE-769-Able-to-Update-status-on-Pending-review-status (#521) Co-authored-by: Barrett Falk Co-authored-by: afwilcox --- frontend/cypress/e2e/allegation-details-create.cy.ts | 4 ++-- frontend/cypress/e2e/hwcr-details-create.cy.ts | 4 ++-- frontend/src/app/store/reducers/case-thunks.ts | 4 +--- .../test-only-migrations/V23.0.0__CE-875.sql | 0 4 files changed, 5 insertions(+), 7 deletions(-) rename {backend/db => migrations}/test-only-migrations/V23.0.0__CE-875.sql (100%) diff --git a/frontend/cypress/e2e/allegation-details-create.cy.ts b/frontend/cypress/e2e/allegation-details-create.cy.ts index 3356b4f80..da3f58e55 100644 --- a/frontend/cypress/e2e/allegation-details-create.cy.ts +++ b/frontend/cypress/e2e/allegation-details-create.cy.ts @@ -8,8 +8,8 @@ describe("Complaint Create Page spec - Create View", () => { "Caller was involved in an altercation yesterday with a person who was exceeding the Callers understanding of the limit. SUBs were attempting to catch 5 fish, of each type, each person (total 20.) SUBs male and their wife. Caller requesting CO clarification regarding fish quotas for region 3. Caller has contacted front counter BC, who reported the answer to COS. ---- testing", location: "2975 Jutland Rd.", locationDescription: "tester call description 8 ---- testing", - xCoord: "-123.3776771", - yCoord: "48.4405309", + xCoord: "-123.377", + yCoord: "48.440", incidentDateDay: "01", incidentTime: "13:45", community: "Victoria", diff --git a/frontend/cypress/e2e/hwcr-details-create.cy.ts b/frontend/cypress/e2e/hwcr-details-create.cy.ts index 2ce47016d..896043183 100644 --- a/frontend/cypress/e2e/hwcr-details-create.cy.ts +++ b/frontend/cypress/e2e/hwcr-details-create.cy.ts @@ -12,8 +12,8 @@ describe("Complaint Create Page spec - Create View", () => { attractants: ["Livestock", "BBQ", "Beehive"], attractantCodes: ["LIVESTCK", "BBQ", "BEEHIVE"], attratantsIndex: [9, 0, 0], - xCoord: "-123.3776771", - yCoord: "48.4405309", + xCoord: "-123.377", + yCoord: "48.440", community: "Victoria", office: "Victoria", zone: "South Island", diff --git a/frontend/src/app/store/reducers/case-thunks.ts b/frontend/src/app/store/reducers/case-thunks.ts index 0a7fece2c..d77bfebce 100644 --- a/frontend/src/app/store/reducers/case-thunks.ts +++ b/frontend/src/app/store/reducers/case-thunks.ts @@ -668,9 +668,7 @@ export const updateReview = await patch(dispatch, parameters).then(async (res) => { if (res) { dispatch(setIsReviewedRequired(res.isReviewRequired)); - if (res.reviewComplete) { - dispatch(setReviewComplete(res.reviewComplete)); - } + dispatch(setReviewComplete(res.reviewComplete)); dispatch(getComplaintStatusById(complaintId, COMPLAINT_TYPES.HWCR)); ToggleSuccess("File review has been updated"); } else { diff --git a/backend/db/test-only-migrations/V23.0.0__CE-875.sql b/migrations/test-only-migrations/V23.0.0__CE-875.sql similarity index 100% rename from backend/db/test-only-migrations/V23.0.0__CE-875.sql rename to migrations/test-only-migrations/V23.0.0__CE-875.sql