-
-
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
[BUGFIX] observed properties not being marked as enum #16735
Conversation
b5e6530
to
2cbd94d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix looks good to me, only a few tweaks needed to the test then we can land...
@@ -93,6 +93,28 @@ moduleFor( | |||
getOwner(proxy); | |||
} | |||
|
|||
['@test `Object.keys` works properly'](assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you tweak this test title? I'd like to see it reference the original issue, and specifically what it is intended to test.
Something like this seems reasonable:
@test observed properties are enumerable when set GH#14594
Also, can you move this to two tests one in packages/ember-metal/tests/accessors/set_test.js
and another in packages/ember-metal/tests/set_properties_test.js
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
8fbf9c9
to
04c48cb
Compare
@@ -1,4 +1,5 @@ | |||
import { setProperties } from '..'; | |||
import { CoreObject } from 'ember-runtime'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general we shouldn't be importing from ember-runtime
from within ember-metal
.
The tests in ember-metal will need to be updated to use POJO's instead of CoreObject
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue does not happen with POJO objects it only happens with CoreObject, so moving back to CoreObject test
02bcae9
to
f3eca1c
Compare
f3eca1c
to
905f6db
Compare
905f6db
to
79494e2
Compare
Sorry it took so long here, but this looks good to me. Thanks again @bekzod! |
fixes #14594