-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[VTAdmin] Topology Browser #11496
[VTAdmin] Topology Browser #11496
Conversation
Signed-off-by: Rameez Sajwani <[email protected]> Signed-off-by: Florent Poinsard <[email protected]> Signed-off-by: Rameez Sajwani <[email protected]> Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
…rowser Signed-off-by: notfelineit <[email protected]>
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're also missing the cli command to correspond with the VtctldServer method
@ajm188 I wasn't sure if we wanted another cmd like the topocat one instead of this one for the command line client. I'll go ahead and add this one though. |
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
…opoproto because of import cycle Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Co-authored-by: David Graham <[email protected]> Signed-off-by: Frances Thai <[email protected]>
Signed-off-by: notfelineit <[email protected]>
…into frances/topo-browser Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Upgrade/downgrade test failures are because we upgraded golang on release-15 to 1.18.7. |
I was unable to backport this Pull Request to the following branches: |
Description
This PR implements the topology browser in VTAdmin. In doing so, it implements
VtctldServer.GetTopologyPath
. Given apath
,GetTopologyPath
returns the file located there in the topology server.Web Topology Browser
Only the root topology directories are loaded at first. This has the same behavior as the topology browser in
vtctld2
. "Nodes" can be expanded if they are not a "terminal" node (a file node).GetTopologyPath(path)
is only called when theExpand
button is clicked, and only for that specific path.The graph is then built recursively with only the paths that have been expanded so far.
VTAdmin example:
Related Issue(s)
Checklist
Deployment Notes
N/A