-
Notifications
You must be signed in to change notification settings - Fork 16
bug: When start new query in admin, do not show error message #237
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
bug: When start new query in admin, do not show error message #237
Conversation
|
@markkelnar so it looks like the original issue of not showing "something is wrong with the form data" is gone, but it still seems like something is wrong. If I try and save a document with an invalid document (like just a string saying "invalid document") I get an admin error that states:
However, even though the error states it did not save, it actually is saved and I can see the document in the list of GraphQL Documents:
perhaps the
|
jasonbahl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see: #237 (comment)
|
@markkelnar when testing, we can still "publish" the document without a valid document. Since the current issue was specifically targeting the error messaging, I'll create another issue to follow-up on tightening up the behavior around publishing. |
|
related: #243 |



When creating new 'saved document' in admin editor, do not show the error message in red 'Something is wrong with the form data'. This message happens for a new post and the 'auto-draft' triggers the save_post_query action, which is trying to validate the query document form data. But that _POST data doesn't have data yet.
For the new saved query in auto-draft, be more deliberate about form data validation. Put more accurate error message if something is missing/invalid.