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

extract alias utils from "helpers" #510

Merged
merged 2 commits into from
Feb 25, 2021
Merged

Conversation

ro0gr
Copy link
Collaborator

@ro0gr ro0gr commented Jun 20, 2020

a part of #512

"helpers.js" is currently polluted with some of single-use utils. Moving such utils to a relevant context shuold imporve code clarity a bit.

Also removed utils tests, since the use cases are covered via alias tests

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 98.192% when pulling a794f37 on ro0gr:group-alias-utils into 242e2ab on san650:v2-beta.

const propOwner = get(object, pathToPropOwner);

if (propOwner === null || propOwner === undefined) {
return undefined;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lost coverage here

@ro0gr ro0gr mentioned this pull request Feb 4, 2021
9 tasks
@ro0gr ro0gr force-pushed the group-alias-utils branch 3 times, most recently from 95b63e6 to 1669ca3 Compare February 13, 2021 23:19
also removed utils tests, since the use cases are covered via alias tests
turns out `objectHasProperty(` has almost implemented a value lookup logic,
at the same time, `getProperty(` did almost the same, but via `Ember.get(`.

Merging of these 2 methods allows us to get rid of `Ember.get(`, and improve clarity.
@ro0gr ro0gr merged commit 75e0422 into san650:v2-beta Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants