Skip to content
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

Remove run and computed dot access #19653

Merged
merged 1 commit into from Jul 21, 2021

Conversation

mixonic
Copy link
Sponsor Member

@mixonic mixonic commented Jul 18, 2021

Part of #19617

Removing this code there is a bit of stuff adjacent to it regarding Ember global access. I haven't touched the Ember global stuff here, but this should probably land first and we can rip more code out during the Ember global removal.

@mixonic mixonic force-pushed the mixonic/run-and-computed-dot-access branch from cafda2b to 01aa1f3 Compare July 18, 2021 18:21
@mixonic mixonic mentioned this pull request Jul 18, 2021
58 tasks
@mixonic mixonic force-pushed the mixonic/run-and-computed-dot-access branch 4 times, most recently from bc8e880 to 975b18d Compare July 18, 2021 19:06
@@ -25,10 +25,6 @@ export default function confirmExport(Ember, assert, path, moduleId, exportName,
desc = null;
}

if (isDeprecated) {
expectDeprecation();
Copy link
Sponsor Member Author

@mixonic mixonic Jul 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expectDeprection() called without a callback sets up an expectation that a deprecation occurs anywhere during the test run. As confirmExport is called many times in the re-export test, this means if any one re-export* was expecting a deprecation satisfaction of that expectation would mean any later expectation was satisfied regardless of a new occurrence.

TLDR, https://github.com/emberjs/ember.js/pull/19653/files#diff-a9c227f21c32919d338aab29999b3ceaf7ca894a7bd3d7183ea81eda7578bdafL307 was a false positive. There was never a deprecation being issued for expandProperties, but the test passed because the computed macro tests did have deprecations.

Since confirmExport is not being used in a manner compatible with isDeprecated being an argument, and since there are no uses of it with that argument being true after this PR lands, I have removed the functionality from confirmExport. We can re-introduce it correctly when needed.

@mixonic mixonic force-pushed the mixonic/run-and-computed-dot-access branch from 975b18d to e8d7885 Compare July 18, 2021 19:14
@@ -25,9 +25,7 @@ moduleFor(
assert,
path,
moduleId,
exportName,
isDeprecated,
`Ember.${path} exports correctly`
Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This 7th argument (a string description) is not used. Here it is removed.

Note: also see https://github.com/emberjs/ember.js/pull/19653/files#r671884855 regarding the removal of isDeprecated on the line above.

@mixonic mixonic force-pushed the mixonic/run-and-computed-dot-access branch from e8d7885 to 5b044de Compare July 18, 2021 19:17
@mixonic mixonic marked this pull request as ready for review July 18, 2021 19:18
@mixonic mixonic force-pushed the mixonic/run-and-computed-dot-access branch from 5b044de to b005bc1 Compare July 18, 2021 19:31
@rwjblue rwjblue merged commit edc9925 into emberjs:master Jul 21, 2021
@rwjblue rwjblue deleted the mixonic/run-and-computed-dot-access branch July 21, 2021 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants