Skip to content

Add offline, stale count to runner admins section

What does this MR do and why?

Fix for #346061 (closed) and #346919 (closed)

Depends on !77752 (merged)

This change adds a offline, stale runners count to the admin page, in order to help admins get more information about their system at a glance.

Changelog: changed

Other technical changes

  • Moved our single stat to a wrapper with 3 single stats
  • Added GraphQL fixtures and updated tests to use them

Screenshots or screen recordings

before after
image Screen_Shot_2022-01-11_at_10.39.37_AM

Group runners view (behind feature flag: #336405 (closed))

before after
image Screen_Shot_2022-01-11_at_10.42.33_AM

Loading state is represented by a hyphen (-)

2022-01-11_10.43.15

How to set up and validate locally

  1. With some runners registered and logged in as admin
  2. Visit the runners admin http://gdk.test:3000/admin/runners
  3. Verify the total counts above the search bar are correct

For groups (Rollout #336405 (closed))

  1. Enable feature flag runner_list_group_view_vue_ui, with some runners registered to a group and logged in as a group owner admin
  2. Visit the Group -> Runners e.g. http://gdk.test:3000/groups/h5bp/-/runners
  3. Verify the total counts above the search bar are correct

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #346061 (closed)

Edited by Miguel Rincon

Merge request reports