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

fix: CE-1059 Unable to save Decision section without entering all fields - incorrect toast #629

Merged
merged 10 commits into from
Sep 17, 2024

Conversation

marqueone-ps
Copy link
Contributor

@marqueone-ps marqueone-ps commented Sep 13, 2024

Description

Unable to save Decision section without entering all fields - incorrect toast

Fixes # CE-1059

Tasks

  • Add validation messages to the first 3 fields to indicate that they are required
  • Ensure you can save without entering anything other than the first 3 fields
  • Add validation when adding action input
  • Add validation if
    • lead agency selected
    • recommend inspection
  • Fix toast message

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

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:


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:

@marqueone-ps marqueone-ps changed the base branch from main to release/lewis-moon-snail September 13, 2024 22:09
added validation handling to prevent user from creating a decision with missing data, updated thunk to display correct toast
@marqueone-ps marqueone-ps added the case_management_3 https://dc0a4a-compenf-dev-3-backend.apps.emerald.devops.gov.bc.ca/graphql label Sep 16, 2024
@afwilcox afwilcox added case_management_4 https://dc0a4a-compenf-dev-4-backend.apps.emerald.devops.gov.bc.ca/graphql and removed case_management_3 https://dc0a4a-compenf-dev-3-backend.apps.emerald.devops.gov.bc.ca/graphql labels Sep 16, 2024
Copy link
Collaborator

@afwilcox afwilcox left a comment

Choose a reason for hiding this comment

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

Two additional functionality issues that seem to be here:

  • You always get the error message toast regardless of if the save is successful or not.
  • If you don't fully enter the action, today's date still shows up in the read only screen. I think there might be a fix for this in the branch CE-1059-natcom-changes but it might not be the most elegant way to resolve the problem

Copy link

sonarcloud bot commented Sep 17, 2024

@afwilcox
Copy link
Collaborator

Failing Cypress Test is due to a recent change in how the officer lists are populated. Will create a bug to address.

@afwilcox afwilcox merged commit 6d6be66 into release/lewis-moon-snail Sep 17, 2024
14 of 15 checks passed
@afwilcox afwilcox deleted the bug/CE-1059 branch September 17, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
case_management_4 https://dc0a4a-compenf-dev-4-backend.apps.emerald.devops.gov.bc.ca/graphql
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants