data icon indicating copy to clipboard operation
data copied to clipboard

Issues with new save promise deprecation

Open runspired opened this issue 3 years ago • 2 comments

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 hasOwnProperty etc. 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

runspired avatar May 26 '22 21:05 runspired

for cross referencing: https://github.com/machty/ember-concurrency/issues/463

Turbo87 avatar May 31 '22 07:05 Turbo87

See #8025

runspired avatar Jul 15 '22 21:07 runspired

@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 :(

sly7-7 avatar Oct 04 '22 09:10 sly7-7

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 avatar Oct 04 '22 10:10 bartocc

🤔 @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 ?

sly7-7 avatar Oct 11 '22 11:10 sly7-7

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

Turbo87 avatar Oct 11 '22 12:10 Turbo87

the original issues have been fixed but it now appears it can lead to infinite recursion of EC tasks in some scenarios: requires investigation.

runspired avatar Nov 19 '22 18:11 runspired