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

Misc fixes/improvements to ingest endpoint #424

Merged
merged 2 commits into from
May 23, 2024
Merged

Conversation

mvandenburgh
Copy link
Member

This PR fixes some issues I noticed while debugging the bug David reported about 500 errors on model run upload.

  • After Rework Performer model, allow creation of new performers #407, new performers can be created. But, the pydantic validation for site/region models still restricts the list of accepted performers.
  • If an invalid geojson polygon is provided, GeoDjango throws a GEOSException. We don't explicitly catch it currently, resulting in a 500 error.

Copy link
Contributor

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

Sorry I thought I had approved this last week.

UPDATE: I remember I didn't approve because the test environment doesn't have the Performer Rows in the table that would match up with the new validator. I think if we resolve that this should be fine to merge.

@mvandenburgh mvandenburgh merged commit 91db46d into main May 23, 2024
8 checks passed
@mvandenburgh mvandenburgh deleted the ingest-improvements branch May 23, 2024 14:56
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