Geo Frontend - Add "selective sync by organization" option
Problem
Geo supports selective synchronization by namespace. We should add the ability for a .com sysadmin to specify a set of organizations to replicate to a secondary site.
Proposal
This follows Geo Backend - Add "selective sync by organizati... (#514251 - closed) (MR: Geo backend: Add selective sync by org settings (!201213 - merged))
-
On the
Edit Geo sitepage in the Geo admin page, update theSelective synchronizationdropdown to show theProjects in certain organizationsoption. -
When the
Projects in certain organizationsoption is selected, theOrganizations to synchronizedropdown appears to specify a set of organizations to include. It should behave exactly like theGroups to synchronizedropdown. -
When clicking 'Save changes', these changes should be persisted in the
geo_node_organization_linkstable. -
Ensure that everything is behind the
geo_selective_sync_by_organizationsfeature flag.
Yep this looks solid to cover configuring a site for this form of selective sync @dbalexandre. Some places we will need code changes:
- Add new supported type to the
geo_helper.rb#selective_sync_types_json- Add a new Vue file for
geo-site-form-organizationsthis will likely be similar to the file for Groupsgeo_site_form_namespaces.vue
- Depending on the overlap there may be an opportunity to generalize
geo_site_form_namespaces.vueto be data-driven and handle namespace or organization lookups based on the selected dropdown item.- Expose the new type in the parent vue component
geo_site_form_selective_sync.vue
Additionally, we will want to ensure the selective sync organizations is represented on the Geo Admin Dashboard. I believe the code is built to handle any new sync types based on the code
geo_site_sync_settings.vuebut we will want to verify when it is implemented.

