Skip to content

[MDS-6334] Fix condition category bad request #3397

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 2 commits into from
Jan 30, 2025

Conversation

sggerard
Copy link
Collaborator

Objective

MDS-6334

Small PR to fix a bug where newly extracted permit conditions were unable to be updated. This was caused by the validation checking the static data instead of live data for the conditon_category_code, likely a remnant from the original implementation which only included 5 standard categories and not custom/unique categories per extraction.

I have removed the validation from the marshalling and instead added checks on the create and update PermitConditions endpoints. There may be other endpoints that also need this validation but I'm not sure which.

image

@sggerard sggerard marked this pull request as draft January 30, 2025 00:40
Copy link

@sggerard sggerard marked this pull request as ready for review January 30, 2025 01:28
Copy link
Collaborator

@matbusby-fw matbusby-fw 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!

@sggerard sggerard merged commit c07dc36 into develop Jan 30, 2025
14 checks passed
@sggerard sggerard deleted the mds-6334-condition-category-fix branch January 30, 2025 17:26
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.

3 participants