-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Bug] Ember 3.20.4 breaks @sort #19101
Comments
We ran into this too. We found that a work around is to replace the use of Certainly not ideal, but by doing so, we were able to leverage |
Thank you for reporting! If someone has the time, a failing test case would be really helpful to us (to help ensure we get it fixed, and prevent future regressions). Something like this test (which passes ATM 🤔): ember.js/packages/@ember/object/tests/computed/reduce_computed_macros_test.js Lines 1669 to 1683 in 93fb765
|
I've been trying to reproduce it in the unit tests, but haven't been successful. |
This is likely because |
I'm experiencing the same issue @jonathannewman described where updates are not propagated. In particular i'm seeing it related to running This sounds related enough to not need a new issue, but i may be wrong here. |
- fix problem with deprecated autotracking for @sort computed property (see emberjs/ember.js#19101 - replace relative environment config file import (ex: '../config/environment') by namespace import (ex: 'pix-certif/config/environment') in order to simplify future upgrade - add ember-cli-update.json file in order to improve upgrade experience - fix problem with Ember Mirage request object that now use PascalCase HTTP headers instead of greek-case request headers - bump dependencies rspecting Ember CLI Update program
@st-h Mind trying ember-data |
@snewcomer Thanks. Will give it a try. Just noticed though, that the offending @sort is now already migrated to native classes without the
But I still have a few @sort annotations :) |
I finally found some time to test the upgrade and so far I haven't noticed any issues. 👍 |
|
🐞 Describe the Bug
I have a ember data one to many relationship:
@hasMany('project/invite', {async: false}) invited!: EmberArray<ProjectInviteModel>;
When I delete one of those
ProjectInviteModel
like:await invite.destroyRecord();
and there is a dependent sort:
sortedInvitations
is no longer updated when the record is deleted. It just keeps the old (now invalid) value. Exactly the same issue happens when using https://pzuraq.github.io/macro-decorators/This has been working fine up to Ember 3.20.3.
🔬 Minimal Reproduction
Describe steps to reproduce. If possible, please, share a link with a minimal reproduction.
likely related to #19097
🌍 Environment
The text was updated successfully, but these errors were encountered: