go-grpc-middleware icon indicating copy to clipboard operation
go-grpc-middleware copied to clipboard

v2: Move `metautils` to it's own package

Open bwplotka opened this issue 4 years ago • 8 comments

This is the package that allows to pass things across gRPC peers. You mention @johanbrandhorst some other methods for this 🤔 Is there something or should we maintain it here?

bwplotka avatar Jan 30 '21 20:01 bwplotka

I think this is written on top of gRPC metadata? It should still be relevant in that case.

johanbrandhorst avatar Jan 30 '21 20:01 johanbrandhorst

It is indeed.

Cool, let's move it out of utils then!

bwplotka avatar Jan 30 '21 20:01 bwplotka

Hi @bwplotka and @johanbrandhorst, I'd like to work on this issue. Just to confirm the metautils needs to be moved outside utils to the root and the references need to be updated right?

gunadhya avatar Jan 31 '21 11:01 gunadhya

Correct, just while you are doing this, can you just double check if all method names, comments make sense too? Would be nice to clean this before v2 release (while we can) 🤗

Also some better package name might be needed. The metadata is the original name on gRPC package that this one wraps. niceMD is not the best name as .... what nice means? Let's be more focused. Some name that exactly tells what it's added on top of original metadata package would be amazing (don't have idea right now). Feel free to propose something in the PR @gunadhya 🤗

Thanks!

bwplotka avatar Jan 31 '21 11:01 bwplotka

Oh, and make sure you to start from v2 branch and you point your PR to v2 (it has to be done manually for now on GitHub UI)

bwplotka avatar Jan 31 '21 11:01 bwplotka

Some changes to metautils were made since v2 got created as shown here -> master and v2 I found this and was just wondering if git checkout master -- dirname is the right way to update the package files or is there a better way to do this?

gunadhya avatar Feb 01 '21 10:02 gunadhya

You need to rebase your branch and start working on top of the current changes. More info on rebasing - https://www.atlassian.com/git/tutorials/rewriting-history/git-rebase

yashrsharma44 avatar Apr 26 '21 06:04 yashrsharma44

Hi @bwplotka , as the issue has been idle for a while, I've raised a PR for this change.

Please have a look and let me know if there are any suggested changes.

rahulkhairwar avatar Nov 22 '21 09:11 rahulkhairwar

Fixed by https://github.com/grpc-ecosystem/go-grpc-middleware/pull/474

bwplotka avatar Mar 18 '23 10:03 bwplotka