GitHub import: count of repos on each relation_type tab
Description
This is the part of Provide a better way to filter GitHub repositories by organization / collaborators / etc..
This particular one is about providing repositories count of each tab on this page.
Proposed solution
So, it's possible to do via GraphQL repositoryCount field fetch:
Probably we should execute 3 queries for each tab and put this count into cache. So, most likely that we should create separated endpoint to fetch this counters. Also keep in mind that for organization tab there should be an option to fetch counter for specific organization instead of all orgs.
@xanf noted "GitHub has totalCount
which can expose total numbers".
Edited by Magdalena Frankiewicz