Skip to content

Large number of forks causes long page load times #442

@riley-kohler

Description

@riley-kohler

Describe the bug

When using the private mirrors UI to view the list of forks for an organization that contains a large number of forks the page can take a long time to initially load despite the use of pagination.

To Reproduce

  1. Open the private-mirrors UI
  2. Open the browser developer console to ensure that network logs are being captured
  3. Navigate to an organization that contains a lot of mirrors (in testing 150 repositories cause the load to take about 30 seconds)
  4. Look through the network logs and add up the time that it takes for all of the "getReposInOrgGQL" queries to run

Expected behavior

The private-mirrors UI should effectively paginate and lazy load the fork list to avoid making the user wait for all fork details to load before displaying any of them. The "getReposInOrgGQL" query and useForksData function should also be investigated to determine if other optimizations can and should be made.

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions