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

protos: Update style guide to try and prevent redundant imports #16231

Merged
merged 1 commit into from
May 3, 2021

Conversation

phlax
Copy link
Member

@phlax phlax commented Apr 29, 2021

Signed-off-by: Ryan Northey [email protected]

Commit Message: protos: Update style guide to try and prevent redundant imports
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue] Partial fix for #15589
[Optional Deprecated:]
[Optional API Considerations:]

@phlax phlax marked this pull request as draft April 29, 2021 12:43
@phlax
Copy link
Member Author

phlax commented Apr 29, 2021

@htuch similar to #16231 im really not too sure what exactly im doing here - but like that PR im trying to get the ball rolling...

Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

LGTM. Why not verify this works as expected on some extension?

@@ -122,8 +122,7 @@ To add an extension config to the API, the steps below should be followed:
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)
```
1. Add to the v3 extension config proto `import "udpa/annotations/migrate.proto";`
and `import "udpa/annotations/status.proto";`
Copy link
Member Author

Choose a reason for hiding this comment

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

im guessing in this case that its ok to just totally remove this

@@ -122,8 +122,7 @@ To add an extension config to the API, the steps below should be followed:
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)
```
1. Add to the v3 extension config proto `import "udpa/annotations/migrate.proto";`
and `import "udpa/annotations/status.proto";`
1. Add to the v3 extension config proto `import "udpa/annotations/status.proto";`
Copy link
Member Author

Choose a reason for hiding this comment

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

not sure about this one - this is also added and unused frequently - but im guessing it is needed (in some cases ?) and may relate to some of the docs below ?

Copy link
Member

Choose a reason for hiding this comment

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

This is needed for the work_in_progress annotation below.

Copy link
Member Author

Choose a reason for hiding this comment

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

k - on that basis lets keep - i think the issue is more status not being set than the status proto being included

@phlax phlax changed the title [WIP] protos: Update style guide to try and prevent redundant imports protos: Update style guide to try and prevent redundant imports May 3, 2021
@phlax phlax marked this pull request as ready for review May 3, 2021 13:12
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@htuch htuch merged commit 174e45c into envoyproxy:main May 3, 2021
gokulnair pushed a commit to gokulnair/envoy that referenced this pull request May 5, 2021
gokulnair pushed a commit to gokulnair/envoy that referenced this pull request May 6, 2021
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.

2 participants