-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
deleteRecord does not set hasDirtyAttributes to true #9053
Comments
This was fixed in later versions. Broad strokes If @fivetanley or @richgt wants to get this change into 4.4 then it shouldn't be hard to backport. |
@runspired sorry do you mean |
@jayseo5953 yes, it was a mistake that we did that is what I mean. Newer cache APIs allow us to differentiate these things and also provide access to whether relationships are dirty. We should likely have a single |
@runspired right ok thanks for confirmation. Maybe the doc needs editing then? |
@jayseo5953 no the docs are right and its a bug that in 4.4 it doesn't work that way. There's two different points being made here:
I only mention (2) because for folks converting from @ember-data/model to @warp-drive/schema-record the 1:1 migration path will be to check both |
@runspired would you be able to point me to the closest version that has the fix? if it was fixed in minor versions |
@jayseo5953 according to git blame the fix was part of this PR #8849 (I recalled it being older than this but alas). That PR is currently part of 5.3, but we intend to port its work back to the 4.12 LTS |
@runspired thank you! |
Reproduction
Please provide one of the following:
Description
order.deleteRecord()
order.isDeleted
is trueorder.hasDirtyAttributes
is falseorder.rollbackAttributes()
revertisDeleted
to falseVersions
The text was updated successfully, but these errors were encountered: