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

feat: URL encode dataset #242

Merged
merged 2 commits into from
Jun 5, 2024
Merged

feat: URL encode dataset #242

merged 2 commits into from
Jun 5, 2024

Conversation

MikeGoldsmith
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith commented May 15, 2024

Which problem is this PR solving?

When sending data, the dataset name forms part of the URL path and should be URL encoded so restricted characters are preserved. This is particularly important if the dataset name included a forward slash / which results in an invalid URL path and the Honeycomb API rejecting the request.

Short description of the changes

  • URL encode the dataset before sending data
  • Add tests to verify dataset is encoded correctly for use in the request path

@MikeGoldsmith MikeGoldsmith added type: enhancement version: bump minor A PR that adds behavior, but is backwards-compatible. labels May 15, 2024
@MikeGoldsmith MikeGoldsmith self-assigned this May 15, 2024
@MikeGoldsmith MikeGoldsmith marked this pull request as ready for review June 4, 2024 20:23
@MikeGoldsmith MikeGoldsmith requested a review from a team as a code owner June 4, 2024 20:23
@MikeGoldsmith MikeGoldsmith force-pushed the mike/urlencode-dataset branch 5 times, most recently from cad2370 to 99ad56a Compare June 4, 2024 21:17
@MikeGoldsmith MikeGoldsmith merged commit ccff6c1 into main Jun 5, 2024
3 checks passed
@MikeGoldsmith MikeGoldsmith deleted the mike/urlencode-dataset branch June 5, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement version: bump minor A PR that adds behavior, but is backwards-compatible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants