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
[BEAM-551] Add utility to handle JSON option manipulation #1105
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, modulo minor test improvements.
TestOptions runtime = mapper.readValue(updatedOptions, PipelineOptions.class) | ||
.as(TestOptions.class); | ||
assertEquals("bar", runtime.getString()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you test with a value that gets replaced?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, with an options with multiple values, one gets preserved and another gets replaced.
And replacing with an empty map and ensuring it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Minor Checkstyle error.
Checkstyle has been updated since the commit at which you originally based the PR, perhaps? |
I'd believe that. Fixed. |
Merged, thanks for fixes. |
(Manually re-ran the jenkins command as this PR was sent when Jenkins was busted) |
Provide a utility to be used with RuntimeValueProviders that allows runners to manipulate PipelineOptions by interleaving runtime parameters.
Green travis: https://travis-ci.org/sammcveety/incubator-beam/jobs/167702097
R: @dhalperi