Skip to content
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-web] Add Keyspace detail view #8111

Merged
merged 1 commit into from
May 14, 2021

Conversation

doeg
Copy link
Contributor

@doeg doeg commented May 12, 2021

Signed-off-by: Sara Bee 855595+doeg@users.noreply.github.com

Description

This PR adds the foundation for the Keyspace detail view, starting with a listing of shards + tablets.

A caveat: grouping table rows by shard complicates the filtering, since filterNouns wasn't written to handle nested properties. For now, "kinda gross but exhaustively commented hacks that work 90% of the time in this one place" seemed a better trade-off than "don't add filtering until we can handle this in a nicely generalized way". (Especially since using a library like https://fusejs.io is a better long-term filtering solution anyway ... who wants to maintain regexes? (Not me!)). I ticketed https://github.com/vitessio/vitess/projects/12#card-60968004 to investigate a more robust solution, when we get time.

Here's what it looks like:

Screen Shot 2021-05-12 at 1 54 18 PM

Screen Shot 2021-05-12 at 1 53 17 PM

Screen Shot 2021-05-12 at 12 50 14 PM

And a weird, semi-error state just for fun:
Screen Shot 2021-05-12 at 1 53 41 PM

Related Issue(s)

N/A

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

N/A

Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com>
Copy link
Contributor

@ajm188 ajm188 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

// and you match a shard, and also _some_ tablets in the shard -- do you show all
// of the tablets (since the shard matches), or (more likely) just the filtered ones?
//
// Instead of doing a complicated-and-hacky solution, this approach is a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me!

@ajm188 ajm188 merged commit 143f751 into vitessio:master May 14, 2021
@ajm188 ajm188 deleted the sarabee-vtadmin-keyspace-shards branch May 14, 2021 15:53
@ajm188 ajm188 added this to In progress in VTAdmin via automation May 21, 2021
@ajm188 ajm188 moved this from In progress to Done in VTAdmin May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants