Skip to content

The /admin view should also show the total number of products and repositories #6089

Description

@sschuberth

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.

Activity

  1. added
    apiIssues related to the API.
    backendIssues related to the backend.
    on Oct 20, 2026
  2. Etsija commented on Oct 20, 2026

    @Etsija
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiIssues related to the API.backendIssues related to the backend.uiIssues related to the UI.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions