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

[do-not-merge, wrong branch] ui/db-console: surface more job metrics around reverting and retrying in the DBConsole Jobs Overview page #72289

Closed
wants to merge 22 commits into from

Conversation

jocrl
Copy link
Contributor

@jocrl jocrl commented Nov 1, 2021

edit: whoops, made this PR from the wrong branch

Resolves #68179

[do-not-merge] Tests are still work in progress. Just wanted to get people's
thoughts in the meantime! Only tests are missing.

This commit surfaces the status reverting, annotates existing running and
reverting statuses UI with "retrying" where applicable, and adds the "Last
Execution Time (UTC)" and "Execution Count" columns to the jobs overview table
in db console. "Retrying" is defined as status IN ('running', 'reverting') AND next_run > now() AND num_runs > 1.

Hovering a retrying status shows the next execution time. The "Status" column
was also moved left to the second column. Filtering using the dropdown by
Status: Running or Status: Reverting will include those that are
also "retrying". Users can also filter by Status: Retrying.

The /jobs endpoint was modified to add the last_run, next_run, and
num_runs fields required for the UI change. Jobs with status running or
reverting and are also "retrying" have their statuses sent as retry-running
and retry-reverting respectively. The endpoint was also modified to support
the value retrying for the status query parameter.

This commit also adds a storybook story for the jobs table, which showcases the
different possible statuses in permutations of information that could be
present for the running status.

Release note (ui change): The jobs overview table in DBConsole now shows when
jobs have the status "reverting", and shows the badge "retrying" when running
or reverting jobs are also retrying. Hovering the status for a "retrying" job
will show the "Next execution time" in UTC. Two new columns, "Last Execution
Time (UTC)" and "Execution Count", were also added to the jobs overview table
in DBConsole, and the "Status" column was moved left to the second column in
the table.

The status query parameter in the /jobs endpoint now supports the values
reverting and retrying.

Jobs table:
image

Filter and hover:
https://user-images.githubusercontent.com/91907326/139694374-e11d0b4e-f9ba-4625-8aca-314786638c8c.mov

Permutations of running jobs with combination of time remaining, running message, or retrying present/absent:
image

@jocrl jocrl requested a review from a team as a code owner November 1, 2021 16:07
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jocrl jocrl requested review from ajwerner and a team November 1, 2021 16:08
@jocrl jocrl added the do-not-merge bors won't merge a PR with this label. label Nov 1, 2021
@jocrl
Copy link
Contributor Author

jocrl commented Nov 1, 2021

Made the PR with the wrong branch!

@jocrl jocrl closed this Nov 1, 2021
@jocrl jocrl removed the request for review from a team November 1, 2021 16:12
@jocrl jocrl removed request for a team and ajwerner November 1, 2021 16:12
@jocrl jocrl changed the title [do-not-merge] ui/db-console: surface more job metrics around reverting and retrying in the DBConsole Jobs Overview page [do-not-merge, wrong branch] ui/db-console: surface more job metrics around reverting and retrying in the DBConsole Jobs Overview page Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge bors won't merge a PR with this label.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui,jobs: improve jobs overview page in DBConsole
2 participants