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
|
|
@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.