You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The /admin view should also show the total number of products and repositories #6089
Besides "Organizations", "Runs" and "Active runs", there should also be cards for the total number of "Products" and "Repositories" on the instance for statistics reasons.
UI-only solution is possible, but we did this earlier (with a custom query hook) with terrible performance results: for "all products", the hook would have to loop through all organizations and run the "get all products of an organization" query for each. For repositories, it would be even worse, as it goes one level deeper in looping.
The bad performance of such a UI query hook was the exact reason for the "statistics" endpoints, so this could be done by introducing a new one that counts everything needed for the admin view in the back-end, then shows the data in the UI.
Activity
Etsija commentedon Oct 20, 2026
UI-only solution is possible, but we did this earlier (with a custom query hook) with terrible performance results: for "all products", the hook would have to loop through all organizations and run the "get all products of an organization" query for each. For repositories, it would be even worse, as it goes one level deeper in looping.
The bad performance of such a UI query hook was the exact reason for the "statistics" endpoints, so this could be done by introducing a new one that counts everything needed for the admin view in the back-end, then shows the data in the UI.