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

Regression: sideposted record id doesn't get updated after save #7783

Closed
andreyfel opened this issue Nov 29, 2021 · 2 comments · Fixed by #7800
Closed

Regression: sideposted record id doesn't get updated after save #7783

andreyfel opened this issue Nov 29, 2021 · 2 comments · Fixed by #7800

Comments

@andreyfel
Copy link
Contributor

If the newly created record id is consumed before save(), the id won't get updated after the record is sideposted through belongsTo or hasMany relationship. The PR with failing test is here: #7782.

Found this issue while upgrading from [email protected] to 3.28.

It may be related or have the same root cause as #7781

@runspired
Copy link
Contributor

@andreyfel does this still happen if lid is also reflected for the cake on the included relationship in #7782 ? It ought to be reflected there in retrospect. Also should be reflected on the main payload. The concept is that wherever there is a linkage it needs to be included, and since ingredient can link back to the cake which is also being created at the same time it would be required on both sides.

@andreyfel
Copy link
Contributor Author

@runspired yes, It happens even if I provide cake lid in the payload in both main payload and ingredient's relationship.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants