Skip to content

Geo Replicables - SSF Bulk Actions UI

Zack Cuddy requested to merge 364729-resync-reverify-all-ui into master

What does this MR do and why?

Closes #364729 (closed)
Implements !123758 (merged)

Modeled after similar implementations !122251 (merged) and !123067 (merged)

This change adds the Resync All and Reverify All Mutations to the Geo Replication views for SSF Replicables. SSF Replicables are served via GraphQL while legacy Replicables are still using REST or HAML/Rails.

This change is behind a feature flag :geo_registries_update_mutation

Important Context

This vue app currently has dual support for RESTful and GraphQL implementations. This can be seen by the usage of state.useGraphQl throughout the directory.

All the RESTful code are artifacts of a fully removed API that is no longer accessible. This RESTful code is going to be fully removed and state.useGraphql will be peeled back in the following issue: #219417 (closed). To try and keep this MR readable in the context of the current component structure the no longer usable RESTful code is being preserved for this change.

Screenshots or screen recordings

Resync All

Before Action After
Resync_Before Resync Resync_After

Reverify All

Before Action After
Reverify_Before Reverify Reverify_After

How to set up and validate locally

  1. Fetch and checkout this branch
  2. Setup Geo by following the 1-line installation in the Easy Installation section (How to setup Geo)
  3. Enable Feature Flag Feature.enable(:geo_registries_update_mutation)
  4. Access your Secondary GDK UI
  5. Navigate to the Geo Replication View for Package Files (ex. http://127.0.0.1:3001/admin/geo/sites/2/replication/package_files)
  6. Click either Resync all or Reverify all (and confirm modal)
  7. Wait a few minutes, refresh and ensure the appropriate timestamp is updated

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 #364729 (closed)

Edited by Zack Cuddy

Merge request reports