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:
- UI element showcasing list size (including when the list is filtered)
- 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 .
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
- Replicable Type API Definition
registry_type.rb. CountableConnectionTypeLimitedCountableConnectionType
Implementation plan
- Add
connection_type_class Types::LimitedCountableConnectionTypeto theRegistryType; - Don't forget tests :)
Edited by Chloe Fons