Skip to content
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

release-20.2: ui: extend diagnostics column to allow activate and download reports #55890

Merged
merged 1 commit into from
Nov 13, 2020

Conversation

koorosh
Copy link
Collaborator

@koorosh koorosh commented Oct 23, 2020

Backport 1/1 commits from #55164.

/cc @cockroachdb/release


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

@koorosh koorosh requested a review from a team October 23, 2020 09:08
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@koorosh koorosh force-pushed the backport20.2-55164 branch from ffd3228 to f8afb31 Compare November 3, 2020 10:51
@dhartunian
Copy link
Collaborator

@koorosh can you update this backport PR, there are merge conflicts.

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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants