Skip to content

CDA-142 - Switch FAIL_IF_EXISTS to OVERRIDE_PROTECTION for gate change post endpoint - #1992

Merged
RyanM-RMA merged 4 commits into
USACE:developfrom
RyanM-RMA:bugfix/CDA-142
Oct 8, 2026
Merged

RyanM-RMA merged 4 commits into
USACE:developfrom
RyanM-RMA:bugfix/CDA-142

Conversation

@RyanM-RMA

@RyanM-RMA RyanM-RMA commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Switched FAIL_IF_EXISTS to OVERRIDE_PROTECTION for gate change post endpoint. Updated unit tests

Related Issue

Closes #1906
Jira Ticket: https://jira.hecdev.net/browse/CDA-142

Validation

Verified with unit tests

Checklist

  • AI tools used

@read-the-docs-community

read-the-docs-community Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 CWMS-Data-APi | 🛠️ Build #35018018 | 📁 Comparing 60f5c63 against latest (61f31be)

  🔍 Preview build  

No files changed.

@RyanM-RMA RyanM-RMA changed the title Switch FAIL_IF_EXISTS to OVERRIDE_PROTECTION for gate change post endpoint CDA-142 - Switch FAIL_IF_EXISTS to OVERRIDE_PROTECTION for gate change post endpoint Oct 5, 2026
.body(json)
.header(AUTH_HEADER, USER.toHeaderValue())
.queryParam(FAIL_IF_EXISTS, "false")
.queryParam(OVERRIDE_PROTECTION, "false")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Perhaps include a test to verify the old query parameter can still be used for the time being

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Integration test implementation will come in a second PR. The problem right now is that it's still updating the record, in spite of a protected flag on the record and an override protection flag of false. Might require a DB change to resolve that issue.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

PR Created for this here: #1997

@RyanM-RMA
RyanM-RMA merged commit de2397c into USACE:develop Oct 8, 2026
11 checks passed
@RyanM-RMA
RyanM-RMA deleted the bugfix/CDA-142 branch October 8, 2026 16:27
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.

[Bug]: The gate change endpoint for POST uses fail-if-exists for override protection

4 participants