-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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: extend diagnostics column to allow activate and download reports #55164
Conversation
a94a8c2
to
b7a3fad
Compare
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.
@koorosh really appreciate the detail in the commit message. Nice work!
Reviewed 7 of 7 files at r1.
Reviewable status:complete! 0 of 0 LGTMs obtained
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.
@koorosh I am expecting this PR to bump the admin-ui-components
version, am I missing something?
Reviewable status:
complete! 0 of 0 LGTMs obtained
Previously, 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 statements table. With current changes, Diagnostics column allows to request new reports everytime 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 logic for this list of reports. Minor changes: - `WAITING FOR QUERY` status is renamed to `WAITING` for new design - `getDiagnosticsStatus` utility function is reused to reduce code duplication Resolves: cockroachdb#50824 Release note (admin ui change): Diagnostics column (on statements table) has been changed and includes `Activate` button and dropdown list to download completed reports. Also diagnostics badge status is changed from `WAITING FOR QUERY` to `WAITING`.
b7a3fad
to
28c4f9e
Compare
@dhartunian , you're definitely right, already updated with bumped version. Thanks! |
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.
Reviewed 3 of 3 files at r2.
Reviewable status:complete! 1 of 0 LGTMs obtained
bors r+ |
Build succeeded: |
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