Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

upgrade @cockroachlabs-admin-ui-components@^0.1.20 #42

Merged
merged 1 commit into from
Oct 20, 2020

Conversation

koorosh
Copy link
Contributor

@koorosh koorosh commented Oct 16, 2020

No description provided.

@koorosh koorosh merged commit 4f69be4 into master Oct 20, 2020
craig bot pushed a commit to cockroachdb/cockroach that referenced this pull request Oct 20, 2020
55164: ui: extend diagnostics column to allow activate and download reports r=koorosh a=koorosh

Resolves #50824
~~Depends on cockroachdb/admin-ui-components#31
~~Depends on cockroachdb/yarn-vendored#42

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 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 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

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`

![Screen Shot 2020-10-01 at 4 55 32 PM](https://user-images.githubusercontent.com/3106437/94915373-77c62c80-04b5-11eb-8fef-4b33db15613b.png)


Co-authored-by: Andrii Vorobiov <and.vorobiov@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants