-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensures generated IDs persist on create (#10089)
IDs that are supplied directly through the API, such as client-side generated IDs when adding new blocks and array rows, are overwritten on create. This is because when adding blocks or array rows on the client, their IDs are generated first before being sent to the server for processing. Then when the server receives this data, it incorrectly overrides them to ensure they are unique when using relational DBs. But this only needs to happen when no ID was supplied on create, or specifically when duplicating documents via the `beforeDuplicate` hook.
- Loading branch information
1 parent
4e95353
commit 957867f
Showing
7 changed files
with
291 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.