data
data copied to clipboard
Issues with new save promise deprecation
The implementation in https://github.com/emberjs/data/pull/7868 has a few issues we should address.
- it does not allow for native object methods such as
hasOwnPropertyetc. that we would still expect to be present. - it does not proxy properties correctly as it assumes
return Reflect.get(...arguments)returns a method and calls.bind(target);. While we don't want to introduce a new behavior (dot notation lookups) we still do need to allow for the situation in which the property might be expected to be on the promise-object itself.
cc @machty @Turbo87 @snewcomer
for cross referencing: https://github.com/machty/ember-concurrency/issues/463
See #8025
@runspired I'm sorry, I can't see if this issue is supposed to be closed by #8025. I'm on 4.6.1 and still encounter something like https://github.com/machty/ember-concurrency/issues/463, so I guess some cases are not handled. I just don't know at all what should be done :(
I was in the process of upgrading our codebase to [email protected]/4.6 this morning and, like @sly7-7 , could not figure if #8025 was supposed to fix everything or not…
🤔 @bartocc looking at the test in #8025, it seems expected to have a deprecation. Actually, this check returns false, but if ember-concurrency was using a "reel" symbol, I guess the deprecation would disappear ?
FWIW we're using https://github.com/mixonic/ember-cli-deprecation-workflow to simply disable the deprecation warning since it will silence itself again eventually
the original issues have been fixed but it now appears it can lead to infinite recursion of EC tasks in some scenarios: requires investigation.