-
Notifications
You must be signed in to change notification settings - Fork 43
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 a unique identifier to each feature #88
Conversation
Currently, this is just numeric, however, if area is necessary, we could also support an identifier of the format One con with doing this as an object property is I don't believe jsonschema supports verifying uniqueness. I.e. it will verify uniqueness for:
But not for:
If we were to change it to be a key |
Yes, that is the idea.
…On Tue, Jun 22, 2021, 5:20 PM Brian Avery ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In features.yaml
<#88 (comment)>:
> @@ -1,299 +1,344 @@
features:
- name: "Protocols:HTTP1.1/HTTP2/gRPC/TCP"
+ id: 1
Sure. I'm fine with that. Will the API maturity annotations look up the
feature name? The name is rendered to Istio.io so may be useful for
consistency in things like istioctl.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#88 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGIQFQ4UZBRIHL33MJOLRDTUESEJANCNFSM47EFZHLA>
.
|
Hi @brian-avery , LGTM, I have approved it. Let's see the other's, thank you for your effort on this PR! ^_^ |
features.yaml
Outdated
level: | ||
checklist: "" | ||
maturity: Stable | ||
nextExpectedPromotion: "" | ||
area: Traffic Management | ||
- name: "Locality load balancing" | ||
id: "traffic.localityloadbalancing" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now have two mappings of "features" - the other one being here https://github.com/istio/istio/blob/809c761526f43e05853d1b8f389449a41e7c4d27/pkg/test/framework/features/features.yaml#L36 and doesn't have the same identifiers. it seems like we should have one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the IDs should probably be the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talking to @therealmitchconnors, it sounds like either the other feature IDs will go away, or they will be updated to match the ones here so I think that using the ones here is fine.
There's also not a one-to-one mapping with what's in the other features.yaml and what's here.
* Add a unique identifier to each fature * Change IDs to strings * Update feature IDs
This adds a unique, machine readable identifier to features. This can be used, among other things, for linking features to annotations.
@zhlsunshine @therealmitchconnors PTAL