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

Adding incorrect value to one_allowed_collections relations through schema endpoint breaks graphql endpoint without any visible errors. #22520

Closed
that1matt opened this issue May 17, 2024 · 0 comments · Fixed by #22535

Comments

@that1matt
Copy link
Contributor

that1matt commented May 17, 2024

Describe the Bug

A member on my team accidentally added an incorrect value to a M2A relations value (through the schame apply) in the one_allowed_collections field where they used a - instead of _. This caused our graphql to return a 500 error for all queries being made. There was no error message outside of INTERNAL_SERVER_ERROR.

A more descriptive error message would have been helpful.

To Reproduce

  1. Create a collection with a M2A relationship.
  2. Pull down schema through API
  3. Change field one_allowed_collections value to include a non-existent collection in the schema.
  4. Push up schema changes.
  5. Try and make any graphql query, or even fetch schema, and get 500 error.

Directus Version

v10.11.0

Hosting Strategy

Directus Cloud

Database

PostgresQL 13.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants