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
ui: add plan gist as option on bundle collection #110931
Conversation
77fab29
to
ca5ef87
Compare
Part Of cockroachdb#103018 This commit adds an option to collect statement bundle based on a specific plan gist. Release note (ui change): Add option to filter out by specific plan gist when collecting a statement bundle.
ca5ef87
to
790cd51
Compare
bors r+ |
@@ -1021,6 +1021,7 @@ export class StatementDetails extends React.Component< | |||
onSortingChange={this.props.onSortingChange} | |||
currentScale={this.props.timeScale} | |||
onChangeTimeScale={this.changeTimeScale} | |||
planGists={this.props.statementDetails.statement.stats.plan_gists} |
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.
Is plan_gists always going to exists or do we need to do some optional chaining here?
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.
always going to exist
value={selectedPlanGist} | ||
defaultValue={planGists ? planGists[0] : ""} | ||
onChange={(selected: string) => | ||
setSelectedPlanGist(selected) |
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.
You can skip creating the anon function here and just pass in setSelectedPlanGist
since the params line up and there's no extra work.
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.
I was getting a lint error, because the default is int, so I need to create this way to get the parameter as string
bors r- |
Canceled. |
bors r+ |
Build succeeded: |
Note to reviewers: There is another option to get any plan except from the selected gist, but that is not part of this PR. Once a design is created, this option can be added.
Part Of #103018
This commit adds an option to collect statement bundle based on a specific plan gist.
https://www.loom.com/share/59335438f0884b75a7d163d96effe5a8
Release note (ui change): Add option to filter out by specific plan gist when collecting a statement bundle.