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

LINK-1529: Give a ValidationError for invalid image id #988

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

harriris-vincit
Copy link
Contributor

@harriris-vincit harriris-vincit commented Sep 17, 2024

Description

Non-numeric event image IDs have resulted in a 500 internal server error. This PR implements a fix that makes the API return a serializers.ValidationError instead.

Closes

LINK-1529

@harriris-vincit harriris-vincit force-pushed the fix/LINK-1529_image-id-500-error branch 3 times, most recently from 81afda9 to b830434 Compare September 17, 2024 13:47
@terovirtanen
Copy link
Contributor

LINKEDEVENTS-API branch is deployed to platta: https://linkedevents-pr988.api.dev.hel.ninja 🚀🚀🚀

@harriris-vincit harriris-vincit requested a review from a team September 18, 2024 10:43
@harriris-vincit harriris-vincit marked this pull request as ready for review September 18, 2024 10:43
@nicobav
Copy link
Contributor

nicobav commented Sep 19, 2024

Bunch of tests are failing - perhaps something to do still

@harriris-vincit harriris-vincit removed the request for review from a team September 20, 2024 10:32
@harriris-vincit harriris-vincit marked this pull request as draft September 20, 2024 10:32
Copy link

sonarcloud bot commented Sep 20, 2024

@terovirtanen
Copy link
Contributor

LINKEDEVENTS-API branch is deployed to platta: https://linkedevents-pr988.api.dev.hel.ninja 🚀🚀🚀

@harriris-vincit harriris-vincit requested a review from a team September 20, 2024 11:02
@harriris-vincit harriris-vincit marked this pull request as ready for review September 20, 2024 11:02
@harriris-vincit
Copy link
Contributor Author

Bunch of tests are failing - perhaps something to do still

@nicobav Fixed. Had used type[str] instead of str as the default value for the id_data_type parameter.

@nicobav nicobav merged commit 3fb28db into main Sep 23, 2024
20 checks passed
@nicobav nicobav deleted the fix/LINK-1529_image-id-500-error branch September 23, 2024 15:23
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