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

Add ObjectUtil helper class #9

Merged
merged 3 commits into from
Sep 7, 2017
Merged

Conversation

marcjansen
Copy link
Member

@marcjansen marcjansen commented Sep 5, 2017

This PR adds an ObjectUtil helper class from a client project. It is ported with the minimum needed changes, and with additional tests so that coveralls is happy.

Please review.

@marcjansen marcjansen changed the title WIP: port some utility classes Add ObjectUtil helper class Sep 5, 2017
@ahennr
Copy link
Member

ahennr commented Sep 6, 2017

Basically 👍

However, getValue method contains some TODOs which maybe can be solved/handled using find and findLast of Lodash, what do you think?
/cc @marcjansen @dnlkoch @KaiVolland

Copy link
Member

@KaiVolland KaiVolland left a comment

Choose a reason for hiding this comment

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

Just two minors but i think they should be addresed.

As a new feature is introduced a new minor release would be good (version in package.json + tag).

var queryMatch;

if (!isString(queryKey)) {
// TODO Replace with new logger after logger implementation
Copy link
Member

Choose a reason for hiding this comment

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

As we got a Logger now please address this util.

return false;
}
if (!isObject(queryObject)) {
// TODO Replace with new logger after logger implementation
Copy link
Member

Choose a reason for hiding this comment

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

As we got a Logger now please address this util.

@marcjansen
Copy link
Member Author

@KaiVolland I have addressed your two comments, would you have another look?

@ahennr

However, getValue method contains some TODOs which maybe can be solved/handled using find and findLast of Lodash, what do you think?

OI think before refactoring we should add it as is. If you want me to do it, I can of course go ahead and rewrite this.

@terrestris terrestris deleted a comment from coveralls Sep 7, 2017
@terrestris terrestris deleted a comment from coveralls Sep 7, 2017
@terrestris terrestris deleted a comment from coveralls Sep 7, 2017
@terrestris terrestris deleted a comment from coveralls Sep 7, 2017
@marcjansen marcjansen merged commit 4849b25 into terrestris:master Sep 7, 2017
@KaiVolland KaiVolland mentioned this pull request Nov 30, 2017
56 tasks
@marcjansen marcjansen deleted the port-utils branch May 11, 2018 05:54
hblitza pushed a commit that referenced this pull request Oct 19, 2022
…il-0.1.1

Update @terrestris/base-util to the latest version 🚀
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.

3 participants