release-20.2: ui: extend diagnostics column to allow activate and download reports #55890
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport 1/1 commits from #55164.
/cc @cockroachdb/release
Resolves #50824
Depends on cockroachdb/admin-ui-components#31Depends on cockroachdb/yarn-vendored#42Previously, Statements table had a Diagnostics column which allowed
users to request diagnostics reports for the first time and then
displayed status for requested report only. As result it wasn't
possible to download already generated report or request new one
report from the statements table.
With current changes, Diagnostics column allows requesting new
reports every time when previous reports are generated.
Also, it provides a list with links to download previous reports.
The main change is to provide a list of available (or requested)
reports for every statement (instead of a single, most recent
report as it was before). Then extracted
StatementsPage
component(from
admin-ui-components
package) handles all rendering logicfor this list of reports.
Minor changes:
WAITING FOR QUERY
status is renamed toWAITING
for new designgetDiagnosticsStatus
utility function is reused to reduce codeduplication
Release note (admin ui change): Diagnostics column (on statements table)
has been changed and includes
Activate
button and dropdown list todownload completed reports. Also, diagnostics badge status is changed from
WAITING FOR QUERY
toWAITING