Skip to content

Conversation

IvanGoncharov
Copy link
Contributor

@IvanGoncharov IvanGoncharov commented Oct 18, 2016

@manuelstofer @epoberezkin I implemented what we agreed on in #23.
Can you please review it?

@IvanGoncharov
Copy link
Contributor Author

@manuelstofer @epoberezkin Can you please review this PR?

@epoberezkin
Copy link
Collaborator

@IvanGoncharov ok with some little corrections. Please also merge changes from master into that branch.

@manuelstofer, can you please set branch protection on master branch like this:

image

You won't have coveralls though, but it's ok, we will add it later. Or you can give me admin rights if you like...

Readme.md Outdated

Removes an attribute of object referenced by pointer.
Removes an attribute of object or an item from array referenced by pointer.
**Note**: Since `v0.6.0` this function changed handles arrays differently, see # .
Copy link
Collaborator

Choose a reason for hiding this comment

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

s/changed handles/handles, also issue number

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@epoberezkin Done. 👍


### .delete(object, pointer)

Use JS `delete` operator on an attribute of object or an item from array referenced by pointer.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add note that delete works in the same way as remove before 0.6.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@epoberezkin I don't think it will be useful to anybody. If you new to this library it just confuses you. If used it prior 0.6.0 and want to know why started to behave differently remove you will check description of remove.

  • delete isn't a hack to simplify migration it's has it own semantic. And useful on it's own without any ties to 0.6.0.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok

@manuelstofer
Copy link
Owner

@epoberezkin Thanks for all your effort!! I enabled branch protection

@IvanGoncharov
Copy link
Contributor Author

@epoberezkin I rebased and address your PR comments

@coveralls
Copy link

coveralls commented Oct 20, 2016

Coverage Status

Coverage decreased (-0.9%) to 96.739% when pulling b89c8e1 on APIs-guru:delete into 018e488 on manuelstofer:master.

@IvanGoncharov
Copy link
Contributor Author

@epoberezkin I addressed your comment.
Can this PR be merged?

@epoberezkin
Copy link
Collaborator

@IvanGoncharov I expected you to add tests for failing cases. Coverage should stay the same. To merge as is I'll have to remove coveralls criteria and re-run the job - I don't have permission to merge regardless (and I don't want to, to be honest :)...

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.

4 participants