cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.16k stars 3.82k forks source link

console-ui(24.3): table index redirects to overview page in cc-console #135857

Open kyle-a-wong opened 1 day ago

kyle-a-wong commented 1 day ago

In cc-console, clicking on an index in the index tab of the table details page redirects back to the overview page instead of bringing the user to the index details. This is happening because react component makes the wrong assumption about the current route in a 24.3 cluster. Code in question: https://github.com/cockroachdb/cockroach/blob/79424ebf29364cac0ec2503bc1104b63c00af406/pkg/ui/workspaces/cluster-ui/src/components/links/indexStatsLink.tsx#L25

This should be updated to: /database/:dbname/:schema/table/:tablename/:index which is the defined route in CC console

https://www.loom.com/share/b7409fbed72446f1add90eb4fc0ec709?sid=28bee090-d200-455c-a12a-ce4792cd3861

Jira issue: CRDB-44751