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

PUBDEV-7896 - do not discard Keys in h2o.removeAll() command #5137

Merged
merged 4 commits into from
Nov 20, 2020

Conversation

valenad1
Copy link
Collaborator

Copy link
Contributor

@honzasterba honzasterba left a comment

Choose a reason for hiding this comment

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

test is missing

@michalkurka
Copy link
Contributor

@Pscheidl this is your code, please review @valenad1's changes

@Pscheidl
Copy link
Contributor

Pscheidl commented Nov 17, 2020

Thank you @valenad1 - It's a good move to accept the keys as strings as well.

  • Document the behavior in method's description
  • What happens if users add wrong/nonexistent key ? The DKVManager itself should ignore it and just move on. Is this acceptable for users ? I think yes. Accepting only the objects was a double-edged sword and server partially as a protection against that - it's easy to pass a string, yet it's not as easy to pass your own estimator. 😉

For tests, the runit_retain.R might be extended to test the new functionality.

@valenad1
Copy link
Collaborator Author

Thank you @valenad1 - It's a good move to accept the keys as strings as well.

* Document the behavior in method's description

Documented.

* What happens if users add wrong/nonexistent key ? The DKVManager itself should ignore it and just move on. Is this acceptable for users ? I think yes. Accepting only the objects was a double-edged sword and server partially as a protection against that - it's easy to pass a string, yet it's not as easy to pass your own estimator. 😉

For tests, the runit_retain.R might be extended to test the new functionality.

I agree, when user makes a typo in string then something can be accidentally lost without any warning. I improve this behavior to check if provided key is in h2o.ls() and if not then do not perform remove. Please check.

If user provide something different than Frame or Model then it also do not perform remove.

@valenad1 valenad1 force-pushed the valenad-7896-r-remove-all-fix branch from 9ca01bf to 9a404eb Compare November 19, 2020 13:25
Copy link
Contributor

@michalkurka michalkurka left a comment

Choose a reason for hiding this comment

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

Thank you!

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

4 participants