Skip to content

[MDS-5860] Fix inconsistent toast error message from api calls #3032

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

Merged
merged 4 commits into from
Apr 3, 2024

Conversation

matbusby-fw
Copy link
Collaborator

Objective

Errors that were being thrown by the frontend were being overridden when an action creator contained throw new Error(), but it's invocation didn't contain a catch block.

Did a search throughout the frontends and only found a very limited number of catch blocks, so removed the throw new Error from all actionCreators where this didn't exist.

MDS-5860

image

henryoforeh-dev
henryoforeh-dev previously approved these changes Apr 2, 2024
Copy link
Contributor

@henryoforeh-dev henryoforeh-dev left a comment

Choose a reason for hiding this comment

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

Clean clean!

asinn134
asinn134 previously approved these changes Apr 2, 2024
Copy link
Collaborator

@asinn134 asinn134 left a comment

Choose a reason for hiding this comment

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

Nice catch

@matbusby-fw matbusby-fw dismissed stale reviews from asinn134 and henryoforeh-dev via 7eae17f April 3, 2024 18:05
Copy link

sonarqubecloud bot commented Apr 3, 2024

Quality Gate Passed Quality Gate passed for 'bcgov-sonarcloud_mds_minespace-web'

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

sonarqubecloud bot commented Apr 3, 2024

Quality Gate Failed Quality Gate failed for 'bcgov-sonarcloud_mds_common'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link

sonarqubecloud bot commented Apr 3, 2024

Quality Gate Passed Quality Gate passed for 'bcgov-sonarcloud_mds_core-api'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

sonarqubecloud bot commented Apr 3, 2024

Quality Gate Passed Quality Gate passed for 'bcgov-sonarcloud_mds_core-web'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@matbusby-fw matbusby-fw merged commit 7604956 into develop Apr 3, 2024
@matbusby-fw matbusby-fw deleted the mds-5860-toast-messages branch April 3, 2024 21:13
simensma-fresh pushed a commit that referenced this pull request Jun 12, 2024
* remove throwing errors where no catch blocks exist

* remove unnecessary conditional

* updated test
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.

5 participants