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 hooks + skeleton view for workflows #7762

Merged
merged 4 commits into from Mar 30, 2021

Conversation

doeg
Copy link
Contributor

@doeg doeg commented Mar 30, 2021

Description

  • Adds react-query hooks for the /api/workflows endpoint
  • Updates the NavRail (sidebar) with workflow counts
  • Adds a very rudimentary /workflows view as a placeholder for later.

Screen Shot 2021-03-30 at 1 14 24 PM

Related Issue(s)

N/A

Checklist

  • Should this PR be backported? No
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

N/A

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving
  • VReplication
  • Cluster Management
  • Build/CI
  • VTAdmin

Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com>
Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com>
@doeg doeg added this to In progress in VTAdmin via automation Mar 30, 2021
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.

one non-blocking comment, but lg2m!

<tr key={idx}>
<td>{workflow?.name}</td>
<td>{cluster?.name}</td>
<td>{workflow?.source?.keyspace || '-'}</td>
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if - is the right placeholder here, because in vitess that could be confused with the 00-00 shard

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ohhh good idea, thanks! I updated it to "n/a" for now, which is straightforward but also lame. I'll get Shannon's thoughts on a better placeholder this week as we go over the rest of the UI.

east: {
workflows: [
{
workflow: { name: 'one-goes-east' },
Copy link
Contributor

Choose a reason for hiding this comment

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

🤌 (cmon github, how is this not in your emoji set yet???)

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

doeg commented Mar 30, 2021

Addressed feedback (thanks!) and also had a commit with actually correct sort order that I hadn't pushed up (sigh).

@ajm188 ajm188 merged commit f1ec52c into vitessio:master Mar 30, 2021
VTAdmin automation moved this from In progress to Done Mar 30, 2021
@askdba askdba added the Component: VTAdmin VTadmin interface label Apr 1, 2021
@askdba askdba added this to the v10.0 milestone Apr 1, 2021
@doeg doeg deleted the sarabee-vtadmin-web-workflows-hooks branch November 1, 2021 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: VTAdmin VTadmin interface
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants