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

add protodoc annotations #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add protodoc annotations #14

wants to merge 1 commit into from

Conversation

lizan
Copy link
Collaborator

@lizan lizan commented Dec 6, 2019

Signed-off-by: Lizan Zhou [email protected]

Signed-off-by: Lizan Zhou <[email protected]>
@lizan lizan requested a review from htuch December 6, 2019 21:50

message ProtodocAnnotation {
// Not implemented yet annotation. This will hide the
bool not_implemented_hide = 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

So, this actually gets to a pivotal issue. UDPA should be generally client agnostic, so shouldn't reflect Envoy implementation status. I think the other annotations are generic API evolution, but this one is Envoy specific. So, I'd suggest we put this in the Envoy repo for now. For UDPA fields that are not in Envoy, we're going to have to figure out some story, but it's probably outside the scope of what we care about for v3.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well I agree that "is this feature implemented" is specific to each implementation but not to Envoy, so that's why I posted the annotation here. Another reason is I think we will end moving our proto tools here (including protoxform/protodoc). The pivotal issue is how to mark an UDPA message not implemented (by each implementation) but not where this annotation lives.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think consuming projects are going to have to consume some baseline tools for working with protos and the common docs form UDPA, and then overlay their own additional customizations before generating docs. I actually think there are a number of viable alternatives here, e.g. we could have each doc produce its own doc tree, with common source, or we could have various projects provide overlays and generate one central set of docs with federated responsibility for communicating what is implemented.

Either way, we won't have a commit to the UDPA repository every time a new field is added or removed.

I'll add this to the agenda for the next UDPA-WG, we should discuss more. Meanwhile, I recommend moving this annotation back to Envoy. CC @mattklein123

Copy link
Collaborator

Choose a reason for hiding this comment

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

I agree that this is a really messy topic and one we have to think about deeply. For now I agree we should move it back until we figure out the overlay situation.

Base automatically changed from master to main February 7, 2021 01:37
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.

3 participants