Geo Replicables API: Add count field

Why are we doing this work

We are working to enhance the functionality available in the Geo Replicables List View &16585 (closed)

Currently with our GraphQL API we do not have a way to share the number of records returned via an API request. It would be nice to have this information for:

  1. UI element showcasing list size (including when the list is filtered)
  2. Add number of "to be impacted" records by our Bulk Actions

It appears we have two existing connection_type_class that potentially could be added to our registry_type.rb .

  1. CountableConnectionType
  2. LimitedCountableConnectionType

Performance

We need to be sure this doesn't cause a major performance impact before we implement it. Based on some incoming proposed changes in !181027 (closed) we would only be fetching counts for the current tab.

Relevant links

Implementation plan

  • Add connection_type_class Types::LimitedCountableConnectionType to the RegistryType;
  • Don't forget tests :)
Edited by Chloe Fons