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

Make it clearer when endpoints modify the entity they're saving #64554

Open
dsas opened this issue Aug 15, 2024 · 0 comments
Open

Make it clearer when endpoints modify the entity they're saving #64554

dsas opened this issue Aug 15, 2024 · 0 comments
Labels
[Type] Enhancement A suggestion for improvement.

Comments

@dsas
Copy link
Contributor

dsas commented Aug 15, 2024

What problem does this address?

When saving an entity in Gutenberg it sends the entity being saved to the server, and the server responds with what it actually saved. Gutenberg then applies the saved version to its state.

I've experienced multiple problems where a bug, both in Gutenberg and in our own code have meant that the server replies back with something different different than was requested - usually something missing. These issues are can be a pain to track down and also be rather subtle. I'd like this to be easier.

Here's a list of some example bugs which might have been easier to find and fix:

What is your proposed solution?

It'd be helpful in diagnosing these bugs if there was a log that something was different. Ideally some kind of diff, but at the minimum a log message saying something like "Content in server response differs from request".

@dsas dsas added the [Type] Enhancement A suggestion for improvement. label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

1 participant