-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
ui: standardize the display of node names in node lists #45551
Conversation
Standardize the display of node names in node lists. The nodes overview list was displaying nodes as `N<id> <ip-address>` while graphs display `<ip-address> (n<id>)`. Standardize on the latter format. A similar problem existed on the statement details page which was displaying `N<id> <ip-address> (n<id>)`. The node id was being displayed twice! Release note: None
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.
Reviewable status: complete! 0 of 0 LGTMs obtained
pkg/ui/src/views/cluster/containers/nodesOverview/index.tsx, line 131 at r1 (raw file):
return ( <Link className="nodes-table__link" to={`/node/${record.nodeId}`}> <Text>{record.nodeName}</Text>
Why does nodeName
not include the (n<id>)
suffix? Should we be using getDisplayName
to populate nodeName
?
Thanks for this @petermattis! I think I'll merge as-is for now. I agree something like @Annebirzin see Peter's comment above for the changes he made to the node naming. Let me know if there's a strong reason to use the Nx prefix notation for nodes. Otherwise I think consistency is preferred for now. cc @taroface hopefully if this is intersecting with any docs work it's making your life easier :) |
bors r+ |
Build succeeded |
@dhartunian 👍 makes sense, we can standardize to |
I have a strong preference for |
Standardize the display of node names in node lists. The nodes overview
list was displaying nodes as
N<id> <ip-address>
while graphs display<ip-address> (n<id>)
. Standardize on the latter format. A similarproblem existed on the statement details page which was displaying
N<id> <ip-address> (n<id>)
. The node id was being displayed twice!Release note: None