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

refactor httpgrpc request/response utils from httpgrpc/server to httpgrpc #435

Merged

Conversation

francoposa
Copy link
Member

In response to feedback on grafana/mimir#6694, tried to tee up a little more descriptive naming.

Having these utils be used prefixed with package name httpgrpc allows for clearer usage without a longer name: httpgrpc.FromHTTPRequest and httpgrpc.ToHTTPRequest, rather than server.FromHTTPRequest and server.ToHTTPRequest.

What this PR does:

Which issue(s) this PR fixes:

Fixes #

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

httpgrpc/httpgrpc.go Outdated Show resolved Hide resolved
httpgrpc/httpgrpc.go Outdated Show resolved Hide resolved
httpgrpc/httpgrpc.go Outdated Show resolved Hide resolved
httpgrpc/httpgrpc.go Outdated Show resolved Hide resolved
Copy link
Member

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

Thank you. Changes look good to me. I'd suggest to add CHANGELOG entry, as this can be a breaking change for many clients.

@pstibrany
Copy link
Member

I'd also suggest to please check if Mimir, Loki, Tempo or Pyroscope use any of moved methods.

@francoposa francoposa merged commit 765e343 into main Nov 20, 2023
3 checks passed
@francoposa francoposa deleted the francoposa/refactor-httpgrpc-utils-from-server-to-httpgrpc branch November 20, 2023 17:05
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