Skip to content

[BEAM-4031] Add labels flag to Go SDK Dataflow Runner.#5272

Merged
tgroh merged 2 commits into
apache:masterfrom
jasonkuster:go-labels
May 3, 2018
Merged

[BEAM-4031] Add labels flag to Go SDK Dataflow Runner.#5272
tgroh merged 2 commits into
apache:masterfrom
jasonkuster:go-labels

Conversation

@jasonkuster

Copy link
Copy Markdown
Contributor

Signed-off-by: Jason Kuster jasonkuster@google.com

Add labels flag to Go SDK Dataflow Runner.


Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand:
    • What the pull request does
    • Why it does it
    • How it does it
    • Why this approach
  • Each commit in the pull request should have a meaningful subject line and body.
  • Run ./gradlew build to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

Signed-off-by: Jason Kuster <jasonkuster@google.com>
@jasonkuster

Copy link
Copy Markdown
Contributor Author

R: @herohde

var jobLabels map[string]string
if *labels != "" {
if err := json.Unmarshal([]byte(*labels), &jobLabels); err != nil {
return err

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

return a descriptive error

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@herohde herohde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM with one minor comment

Signed-off-by: Jason Kuster <jasonkuster@google.com>
@jasonkuster

Copy link
Copy Markdown
Contributor Author

@tgroh can you give this a quick look?

@tgroh tgroh merged commit b6dadff into apache:master May 3, 2018
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