1
0
mirror of https://github.com/quay/quay.git synced 2025-07-14 05:01:08 +03:00

Optimize repository lookup queries to meet the expected maximums (#246)

* Optimize repository lookup queries to meet the expected maximums

We were accidentally looking up more data that strictly allowed

Adds some additional assertions and testing as well

Fixes https://issues.redhat.com/browse/PROJQUAY-439

* Change loading of repositories in the repo view to be paginated

We drop the "card" view and switch to a table-only view, but still
load the full set of repositories

A followup change will begin to change the UI to only load additional
repos when requested
This commit is contained in:
Joseph Schorr
2020-05-12 12:12:54 -04:00
committed by GitHub
parent 3f8221f74d
commit f2eaba7ef2
16 changed files with 129 additions and 98 deletions

View File

@ -117,12 +117,10 @@ from endpoints.api.organization import (
OrganizationApplicationResetClientSecret,
Organization,
)
from endpoints.api.repository import (
RepositoryList,
RepositoryVisibility,
Repository,
REPOS_PER_PAGE,
)
from endpoints.api.repository import RepositoryList, RepositoryVisibility, Repository
from endpoints.api.repository_models_pre_oci import REPOS_PER_PAGE
from endpoints.api.permission import (
RepositoryUserPermission,
RepositoryTeamPermission,