-
Notifications
You must be signed in to change notification settings - Fork 261
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
Refine route list output #407
Refine route list output #407
Conversation
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.
@zhanggbj: 0 warnings.
In response to this:
- Show tag for revisionName if any
- Make the traffic colume shorter
Fixes #
Proposed Changes
Release Note
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/test-infra repository.
Hi @zhanggbj. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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/test-infra repository. |
729b338
to
e217cc5
Compare
/ok-to-test |
e217cc5
to
ab82c30
Compare
ab82c30
to
8696ec1
Compare
8696ec1
to
5644f9c
Compare
Are |
I even question whether we want to have the detailed traffic splitting in a list output. This column can be unbounded and does not nicely fit on a single line in a general case. And if crammed into a single line it easily gets confusing. IMO this kind of information belongs to |
In general I would like to impose the rule not to show array/list-value on an overview view in Said that we could add something like the main revision + the portion of traffic it gets if its not 100%
Still not sure whether this is very helpful, but at least the length of the last column is then fixed to a single revision name. The tag name I would reserve as a detail for |
/retest |
} else { | ||
traffic = fmt.Sprintf("%d%% -> %s", target.Percent, target.RevisionName) | ||
var tag string | ||
if target.Tag != "" { |
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.
I wonder if we should explicitly deal with cases where the API returns empty tag? Perhaps have a token like NOTAG or similar?
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.
I don't think that is necessary as an empty tag is not distinguishable from having no tag ("" is the empty string value, too, there is no nil
string in go).
And when there is no tag there is no need to add something.
However, that tag should be added with a space between revision name and opening parentheses.
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.
I disagree. But I can live with it.
Thanks @navidshaikh @rhuss @maximilien for your input. As there are lots of different suggestions of the route list output, I'm thinking we can take this PR as a place for further discussion. How about I list the options for voting and comments, and anyone can list more voting options if necessary. From Above comments, I think we have two items now. Please choose 👍(agree) or 👎 (disagree) and leave your comments if needed.
|
Vote 1a): |
Vote 1b): |
Vote 2a):
|
Vote 2b):
|
Show the most-traffic revision and relabel it "MAIN REVISION" or "MOST TRAFFIC" or something like that. |
Maybe we can list a set of use cases for To be clear, if we would have a Here is a use case, I could see for
For Any other use case you can imaging for |
@zhanggbj @toVersus @navidshaikh @sixolet I put the question whether we need @zhanggbj sorry, I know it's very late for you (probably too late). We can also chat about it tomorrow on slack #cli (knative.slack.com). I will be there starting from 8am CEST. |
@rhuss @toVersus 1) Use custom url to access one Revision directly 2) Routing across multiple Knative services So in
3) http-based routing for different Revisions of one Service So in
@rhuss It's great to discuss in WG on this, I may not able to attend it :-) And yes, we can discuss later on Slack. Thanks! |
@zhanggbj thanks a lot for your detailed exploration of possible route use cases. My comments on them following your enumeration above:
|
I still think that the decision whether to implement
|
5644f9c
to
a1f171b
Compare
Hi All, I've submit a new PR and please help to take a review. Thx!
|
a1f171b
to
b8f5e69
Compare
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.
thanks.
/lgtm
/approve
- Only show NAME/URL/READY [issue 350](knative#350)
b8f5e69
to
1da007d
Compare
The following is the coverage report on the affected files.
|
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: navidshaikh, rhuss, zhanggbj 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 |
Fixes #
issue 350
Proposed Changes
With this PR, output of route list will be
Release Note