Skip to content

Geo Replicable Details - Hookup GraphQL API

What does this MR do and why?

Closes #513131 (closed)
Behind feature flag Feature.enable(:geo_replicables_show_view)

This change hooks up the Geo GraphQL client and Apollo to the Geo Replicables Details View.

Screenshots or screen recordings

Screen_Recording_2025-02-03_at_3.46.55_PM

How to set up and validate locally

Setup Geo (optional)

Important: To properly test Geo you will need a separate GDK setup. Setup is straightforward but takes some time. Another option is to validate the code functionally and if needed schedule a call to sync and I can screen share my instance.

  1. Ensure no other GDKs are running. gdk stop/gdk kill
  2. Open an empty directory and install and run Geo with the one-line command found on the Easy installation instructions
  3. Access your primary and secondary Geo instances via 127.0.0.1:3000 and 127.0.0.1:3001.

Testing

  1. Enable feature flag Feature.enable(:geo_replicables_show_view)
  2. Access your secondary GDK Geo Page (127.0.0.1:3001/admin/geo)
  3. Scroll down to the very bottom Replication details section
  4. Click one of the blue links (ex: Project Repositories)
  5. If needed find a tab that has list items
  6. Click the link
  7. Ensure loading state is shown and after successful GraphQL request a javascript object is printed to the string and the ID matches the list item you clicked.

Related to #513131 (closed)

Edited by Zack Cuddy

Merge request reports

Loading