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

Prevent non-UUID slugs from raising errors on the BlockDocuments APIs. #6541

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

chrisguidry
Copy link
Collaborator

Summary

In Prefect Cloud, we observed some errors when clients would send requests for
.../block_documents/null, which should really be handled at the routing layer
with 404s when the path UUIDs can't be parsed.

Note that this is just correcting the server-side issue, but does not attempt
to diagnose the client-side issue at this time. Also, this does not attempt
to go through every route in Orion that includes UUIDs in its path.

Steps Taken to QA Changes

Additional regression tests added for this symptom, and no other tests were modified.

Checklist

This pull request is:

  • A documentation / typographical error fix
    • No tests or issue needed
  • A short code fix
    • Please reference the related issue by including "closes <link to issue>" in this Pull Request's summary section.
      • If no issue exists, please create a bug report issue
    • Please include tests. One-line fixes without tests will not be accepted unless it's related to the documentation only.
  • A new feature implementation
    • Please reference the related issue by including "closes <link to issue>" in this Pull Request's summary section.
      • If no issue exists, please create a feature enhancement issue
    • Please include tests
    • Please make sure that your QA steps are both thorough and easy to reproduce by somebody with limited knowledge of the feature that you are submitting

Happy engineering!

In Prefect Cloud, we observed some errors when clients would send requests for
`.../block_documents/null`, which should really be handled at the routing layer
with 404s when the path UUIDs can't be parsed.

Note that this is just correcting the server-side issue, but does not attempt
to diagnose the client-side issue at this time.  Also, this does not attempt
to go through every route in Orion that includes UUIDs in its path.
@netlify
Copy link

netlify bot commented Aug 24, 2022

Deploy Preview for prefect-orion ready!

Name Link
🔨 Latest commit 66722a3
🔍 Latest deploy log https://app.netlify.com/sites/prefect-orion/deploys/630629bd8beba90008b93c9e
😎 Deploy Preview https://deploy-preview-6541--prefect-orion.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

zangell44
zangell44 previously approved these changes Aug 24, 2022
@chrisguidry chrisguidry merged commit 74b49c7 into main Aug 24, 2022
@chrisguidry chrisguidry deleted the block-document-path-uuids branch August 24, 2022 14:40
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