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

client/v3/watch.go: use fmt go pkg for gRPC metadata map printing #18308

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

mohamedawnallah
Copy link
Contributor

@mohamedawnallah mohamedawnallah commented Jul 10, 2024

Description

Addresses this issue #18303

@k8s-ci-robot
Copy link

Hi @mohamedawnallah. Thanks for your PR.

I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@mohamedawnallah mohamedawnallah changed the title client/v3/watch.go: use fmt for map printing client/v3/watch.go: use fmt go pkg for metadata map printing Jul 10, 2024
@henrybear327
Copy link
Contributor

/ok-to-test

client/v3/watch.go Outdated Show resolved Hide resolved
@ahrtr
Copy link
Member

ahrtr commented Jul 10, 2024

Please also add an unit test

client/v3/watch_test.go Outdated Show resolved Hide resolved
client/v3/watch_test.go Outdated Show resolved Hide resolved
client/v3/watch_test.go Outdated Show resolved Hide resolved
client/v3/watch_test.go Outdated Show resolved Hide resolved
@mohamedawnallah
Copy link
Contributor Author

mohamedawnallah commented Jul 10, 2024

Thanks a lot for the feedback, @ahrtr! It is much better now! 🙏 I have addressed all of the feedback.

client/v3/watch_test.go Outdated Show resolved Hide resolved
client/v3/watch_test.go Outdated Show resolved Hide resolved
client/v3/watch_test.go Outdated Show resolved Hide resolved
Signed-off-by: Mohamed Awnallah <[email protected]>
Co-authored-by: Benjamin Wang <ahrtr>
@mohamedawnallah
Copy link
Contributor Author

I've addressed the recent feedback 🙏. This might be off-topic, but I'm eager to contribute more to etcd. Could you suggest any specific issues or labels to work on? I'm just starting out and haven't found any labeled good-first-issue other than this one.

@ahrtr
Copy link
Member

ahrtr commented Jul 10, 2024

Could you suggest any specific issues or labels to work on?

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

nice work! Thank you for your first contribution!

Copy link
Member

@ivanvc ivanvc left a comment

Choose a reason for hiding this comment

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

Looking good. Thanks, @mohamedawnallah. I left a potential suggestion.

I also suggest removing the "Close" keyword from the pull request description, as Benjamin labeled the issue with a backport to 3.4 and 3.5, and it would be better not to close the parent issue automatically.

client/v3/watch_test.go Show resolved Hide resolved
Copy link
Member

@ivanvc ivanvc left a comment

Choose a reason for hiding this comment

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

LGTM. We can add completeness in a follow-up/later. Thanks.

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, ivanvc, mohamedawnallah

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ahrtr ahrtr merged commit 13e0d92 into etcd-io:main Jul 12, 2024
47 of 48 checks passed
@ahrtr
Copy link
Member

ahrtr commented Jul 12, 2024

@mohamedawnallah could you backport the PR to 3.5 and 3.4?

@mohamedawnallah
Copy link
Contributor Author

mohamedawnallah commented Jul 12, 2024

@ahrtr Yeah I would love that it is my first time going through this backport process! I've just submitted two PRs for this:

@mohamedawnallah mohamedawnallah changed the title client/v3/watch.go: use fmt go pkg for metadata map printing client/v3/watch.go: use fmt go pkg for gRPC metadata map printing Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

6 participants