Skip to content

Conversation

@stefvanhouten
Copy link
Collaborator

This change prevents that a record stays in an invalid state after the record.Save() failed.
This prevents having to re-fetch the actual record from the database in order to show the correct page to the user.

E.g:

  • User attempts to update record but fails
  • Local record dictionary is still updated and thus no longer accurately represents the stored record values (this is expected behavior when editing a record before saving).
  • User page will now show data as if record was updated (because the local value did not rollback to the stored value).

@stefvanhouten stefvanhouten self-assigned this Jul 29, 2022
@stefvanhouten stefvanhouten added the bug Something isn't working label Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants