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

logcli: introduced QueryStringBuilder utility to clean up query string encoding #1115

Merged
merged 1 commit into from
Oct 9, 2019

Conversation

pracucci
Copy link
Contributor

@pracucci pracucci commented Oct 3, 2019

What this PR does / why we need it:

In the PR #1103 I've used url.Values to conditionally build the query string, but I'm not much satisfied by the code cleanliness of all the type casting to string. In this PR I'm proposing to introduce a QueryStringBuilder utility (based on url.Values) to avoid having to cast any data to string when using it.

Checklist

  • Documentation added
  • Tests updated

@pracucci pracucci force-pushed the add-query-string-builder-util branch from 6f6eb9d to 6650e1a Compare October 4, 2019 04:50
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@cyriltovena cyriltovena merged commit 0e718c2 into grafana:master Oct 9, 2019
@pracucci pracucci deleted the add-query-string-builder-util branch October 10, 2019 06:46
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

2 participants