-
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: display workflow type in workflows list #11685
Changes from 8 commits
60df402
be1df2f
4f1b9ff
21c8e0e
3c0e610
ebe49de
5988f3a
d9b22ee
ee596df
f11ba5b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -54,6 +54,8 @@ export const Workflows = () => { | |||||
target: workflow.workflow?.target?.keyspace, | ||||||
targetShards: workflow.workflow?.target?.shards, | ||||||
timeUpdated: getTimeUpdated(workflow), | ||||||
workflowType: workflow.workflow?.workflow_type, | ||||||
workflowSubType: workflow.workflow?.workflow_sub_type, | ||||||
})); | ||||||
const filtered = filterNouns(filter, mapped); | ||||||
return orderBy(filtered, ['name', 'clusterName', 'source', 'target']); | ||||||
|
@@ -70,6 +72,16 @@ export const Workflows = () => { | |||||
<tr key={idx}> | ||||||
<DataCell> | ||||||
<div className="font-bold">{href ? <Link to={href}>{row.name}</Link> : row.name}</div> | ||||||
{row.workflowType && ( | ||||||
<div className="text-secondary text-success-200"> | ||||||
{row.workflowType} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For this one we'll still want to handle the null case from line 57 😄
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I thought it would never reach this point (line 77) if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah I missed that! You're correct. This is great! |
||||||
{row.workflowSubType && row.workflowSubType != 'None' && ( | ||||||
<span className="text-sm"> | ||||||
{' (' + row.workflowSubType + ')'} | ||||||
</span> | ||||||
)} | ||||||
</div> | ||||||
)} | ||||||
<div className="text-sm text-secondary">{row.clusterName}</div> | ||||||
</DataCell> | ||||||
<DataCell> | ||||||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Just a note that with named values the field names are case sensitive and we're not guaranteeing case with
AS
alias clauses in theSELECT
right now. Should be fine since these are vitess tables and the columns do seem to be all lower case in our defined schema.