-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass lid from relationship data to get record data
The issue appeared in the sideposting scenario: - model A has has many relationship to model B. - instance of model A and instance of model B are created on the client, - model A is saved along with model B sent in `include` section of payload; the linking is done through `lid` - server persisted both models and sent the response with server-generated `id` along with `lid` sent by the client. - when hasMany.updateData() was called while the response payload was pushed to the store it couldn't match the record which was already in the store with the record data contained in the relationship data because `lid` was omitted. Add a test which ensures that the hasMany() relationship has correct status in the sideposting with lid scenario.
- Loading branch information
Showing
2 changed files
with
82 additions
and
3 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