Skip to content

Geo Replicables - Add Resync All and Reverify All button for entire Replicable Types in UI

What / Why?

This is related to the Geo Replicables Functionality True Up: &8212 (closed)
This is blocked by the backend change of adding new mutations to the GraphQL endpoint: #364728 (closed)

Currently for Self Service Replicables we are unable to fire Resync All or Reverify All actions against an entire Replicable Type. Our legacy replicables support this behavior and thus we should in theory be able to provide this functionality to our SSF ones as well. Once these mutations are added to the GraphQL API we can then add the buttons for each Replicable Type to request said mutation.

Screenshot of affected UI

Expected All Actions (Legacy) Current All Actions (SSF)
Action_All Screen_Shot_2022-06-08_at_3.31.06_PM

Proposal

Following that the mutations are created in the GraphQL endpoint

  1. Add mutations to: https://gitlab.com/gitlab-org/gitlab/-/tree/master/ee/app/assets/javascripts/geo_replicable/graphql
  2. Add actions to Vuex Actions: https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/geo_replicable/store/actions.js
    • Possibly leveraging existing logic used for the RESTful actions on legacy repliable Designs. Being sure to preserve existing functionality.
  3. Add buttons to Vue component: https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/geo_replicable/components/geo_replicable_filter_bar.vue
    • Again being sure to preserve any existing functionality for legacy replicable Designs that uses the RESTful endpont.