[request] API Calls for specific repo groups
See original GitHub issueIs your feature request related to a problem? If so, please describe the problem:
When I click on a repo group on the current dev
version of augur, I can watch the backend and see that all of /api/unstable/repos
is called to load a single repo group. This is okay on osshealth.io because the database is quickly queried, but it takes several seconds on my machine. This is where it could be almost instantaneous.
Describe the solution you’d like: I would like to help split up the query into several queries specific to repo-groups.
Describe alternatives you’ve considered: We could leave it as it is, but it makes the page-loading much less efficient than it could be.
Additional context: This is the result of looking around at repo-groups Add any other context or screenshots about the feature request here.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (8 by maintainers)
Top GitHub Comments
Done! Thanks for taking this on.
If I’m understanding the request correctly, this functionality already exists at the
/api/unstable/repo-groups/<repo_group_id>/repos
endpoint. For example:http://localhost:5000/api/unstable/repo-groups/10/repos
will return all the repos for only the givenrepo_group_id
, which is 10 in this case.It would be nice if the frontend took advantage of this, but I think that’s outside the scope of this issue since this is about the endpoint request. As such I’m going to close the issue, but if anyone disagrees please feel free to reopen 😄