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

Allow numeric and non-string values for tag_keys. #1782

Merged
merged 3 commits into from
Sep 21, 2016

Conversation

danielegozzi
Copy link
Contributor

Required for all PRs:

  • CHANGELOG.md updated (we recommend not updating this until the PR has been approved by a maintainer)
  • Sign CLA (if not already signed)
  • README.md updated (if adding a new plugin)

According to the go documentation the JSON deserializer only produces these
base types in output:

  • string
  • bool
  • float64
  • nil
    With this patch bool, float64 and nil values get converted to a string when
    their field key is specified in tag_keys. Previously the field was simply
    discarded.

According to the go documentation the JSON deserializer only produces these
base types in output:
- string
- bool
- float64
- nil
With this patch bool, float64 and nil values get converted to a string when
their field key is specified in tag_keys. Previously the field was simply
discarded.
The automated tests are less than trivial to reproduece locally for me,
so I hope CircleCI wonn't mind...
Copy link
Contributor

@sparrc sparrc left a comment

Choose a reason for hiding this comment

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

LGTM, please update the changelog and sign the CLA and I can merge

@sparrc
Copy link
Contributor

sparrc commented Sep 21, 2016

fixes #1746

@nhaugo nhaugo added this to the 1.1.0 milestone Sep 21, 2016
@danielegozzi
Copy link
Contributor Author

I signed the CLA a few days ago. My last commit adds to the changelog both the pull request and the bug @sparrc mentioned. Thanks for your consideration!

@sparrc sparrc merged commit 9ea3dbe into influxdata:master Sep 21, 2016
@sparrc
Copy link
Contributor

sparrc commented Sep 21, 2016

thanks @danielegozzi

jackzampolin pushed a commit that referenced this pull request Oct 7, 2016
* Allow numeric and non-string values for tag_keys.

According to the go documentation the JSON deserializer only produces these
base types in output:
- string
- bool
- float64
- nil
With this patch bool, float64 and nil values get converted to a string when
their field key is specified in tag_keys. Previously the field was simply
discarded.

* Updated handling of nil for passing tests.

The automated tests are less than trivial to reproduece locally for me,
so I hope CircleCI wonn't mind...

* Updated changelog entries with PR and issue links.
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