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

Bug/wf1 post error #3023

Merged
merged 19 commits into from
Jul 26, 2023
Merged

Bug/wf1 post error #3023

merged 19 commits into from
Jul 26, 2023

Conversation

brettedw
Copy link
Collaborator

@brettedw brettedw commented Jul 20, 2023

@brettedw brettedw requested a review from conbrad July 20, 2023 20:18
@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #3023 (f7a6f16) into main (aa79b43) will increase coverage by 0.02%.
The diff coverage is 54.54%.

@@            Coverage Diff             @@
##             main    #3023      +/-   ##
==========================================
+ Coverage   85.13%   85.16%   +0.02%     
==========================================
  Files         300      300              
  Lines       10046    10051       +5     
  Branches      586      587       +1     
==========================================
+ Hits         8553     8560       +7     
+ Misses       1335     1333       -2     
  Partials      158      158              
Files Changed Coverage Δ
...c/features/moreCast2/components/TabbedDataGrid.tsx 39.69% <0.00%> (ø)
web/src/api/moreCast2API.ts 90.90% <33.33%> (ø)
api/app/routers/morecast_v2.py 89.00% <50.00%> (-1.91%) ⬇️
api/app/wildfire_one/wfwx_post_api.py 94.44% <100.00%> (+37.30%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@brettedw brettedw requested a review from conbrad July 20, 2023 21:47
@brettedw brettedw requested a review from dgboss July 24, 2023 16:32
conbrad and others added 7 commits July 24, 2023 13:52
Raise exception on api route so it's seen by the frontend
- exceptions now using fastapi HTTPExceptions and status'
- test updated to reflect catching new Exception
-Altered error messaging in the case that posting to WF1 is unsuccessful
@brettedw brettedw marked this pull request as ready for review July 24, 2023 23:40
@sonarcloud
Copy link

sonarcloud bot commented Jul 25, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Collaborator

@conbrad conbrad left a comment

Choose a reason for hiding this comment

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

Great work!

@brettedw brettedw temporarily deployed to production July 26, 2023 15:17 Inactive
@brettedw brettedw merged commit 304314a into main Jul 26, 2023
32 checks passed
@brettedw brettedw deleted the bug/wf1-post-error branch July 26, 2023 15:40
vanislekahuna pushed a commit to vanislekahuna/wps that referenced this pull request Sep 19, 2024
Shows an error when failing to submit a forecast to WF1

- Throws HTTPException upon failure to post along with message which surfaces on the front end
- Adds/modifies several tests on both backend and frontend

Co-authored-by: Conor Brady <[email protected]>
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.

2 participants