Skip to content

Devcon - #37

Open
romer8 wants to merge 12 commits into
whitelightning450:mainfrom
Aquaveo:devcon
Open

Devcon#37
romer8 wants to merge 12 commits into
whitelightning450:mainfrom
Aquaveo:devcon

Conversation

@romer8

@romer8 romer8 commented May 13, 2025

Copy link
Copy Markdown

🛠️ Refactor: Form Update Endpoints & Error Handling

Summary

This PR makes the following key improvements:

  1. Use POST for form updates
    Change all State, Reach, and HUC “update” handlers to accept POST requests instead of GET, aligning with RESTful conventions.

  2. Centralize REST API helper
    Add a new updateData() to standardize how the State, Reach, and HUC forms submit their data.


📝 Changes

  • Backend

    • Updated view decorators and URL patterns for /state_eval/, /reach_eval/, and /huc_eval/ to require POST.
    • Wrapped S3 download calls in try … except to catch FileNotFoundError, ClientError, and BotoCoreError.
  • Frontend (JavaScript)

    • Updated State, Reach, and HUC form handlers to call updateData() and handle success/error uniformly.
    • Display user-friendly notifications on Loading

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.

1 participant