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

Empty value handling - rebase from #541 #598

Merged
merged 8 commits into from
Sep 22, 2020

Conversation

Emily-Jiang
Copy link
Member

@Emily-Jiang Emily-Jiang commented Sep 11, 2020

Signed-off-by: Emily Jiang emijiang6@googlemail.com
Fixes #446, Fixes #531, Fixes #532, Fixes #397.

@Emily-Jiang Emily-Jiang changed the title Empty value handling - rebase from #541 Draft: Empty value handling - rebase from #541 Sep 11, 2020
@Emily-Jiang
Copy link
Member Author

I will update the tests and accommodate the comments in my next commit.

@Emily-Jiang Emily-Jiang changed the title Draft: Empty value handling - rebase from #541 Empty value handling - rebase from #541 Sep 15, 2020
@Emily-Jiang
Copy link
Member Author

@radcortez @jbee please review

…tion

Signed-off-by: Emily Jiang <emijiang6@googlemail.com>
Copy link
Contributor

@jbee jbee left a comment

Choose a reason for hiding this comment

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

Dropped some thoughts. The only crucial one to me is the question of how converters behave when they are given null or empty/blank string values.

I'd think

  • either a not present source lookup is never passed to the converter level and doing so manually is considered undefined behaviour to lift the burden of implementing these corner cases
  • or any result from source lookup is passed to the converters but any empty value (not present) results in the same behaviour as the Config API would show, throwing an exception of some type.

@jbee
Copy link
Contributor

jbee commented Sep 17, 2020

@Emily-Jiang I believe you have not yet pushed what you commented as done

Signed-off-by: Emily Jiang <emijiang6@googlemail.com>
Signed-off-by: Emily Jiang <emijiang6@googlemail.com>
Copy link
Contributor

@jbee jbee left a comment

Choose a reason for hiding this comment

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

I think everything is fine. Just confused about the empty test() method.

@Emily-Jiang
Copy link
Member Author

@radcortez I think I addressed all of your comments as well. Please take another look at it and I would like to merge in tomorrow.

Signed-off-by: Emily Jiang <emijiang6@googlemail.com>
Signed-off-by: Emily Jiang <emijiang6@googlemail.com>
Signed-off-by: Emily Jiang <emijiang6@googlemail.com>
Signed-off-by: Emily Jiang <emijiang6@googlemail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants