Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-7156

Duplicated list repository rest api calls in organization, repository pages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • quay-v3.11.1
    • quay-ui
    • False
    • Hide

      None

      Show
      None
    • False

      Description:

       There exists duplicated list repo api calls in Organization,Repository pages which makes UI slow.

      Quay: quay-operator-bundle-container-v3.11.1-18

      Browser: Chrome & FireFox

      Steps:

      1, Create 1k+ repositories in 1 org;

      2, Switch to New UI, Check rest api calls in Organizations, Repositories page and click "Next page" icon  

      3, In Organizations page, we can see it call apis like below to list all repos

      GET https://quayregistry-quay-quay-enterprise-14737.apps.quaytest-14737.qe.devcluster.openshift.com/api/v1/repository?next_page=gAAAAABmOzqwjUrVTZu7P2C-ZrGNMrsAVrLiqt6BftDVaZ1b5b79SGeKB2cfz-IEV0NkiRwgWim6UtfqfNP7P18g8YcGAgEpnRG5hzGAlaWHF8bkATTrhRzq128d7TtipV6bXSnFIw3BbQzGTuVqyTTsKSBjz_JPtNmoGXDOuRD0d1uL5oeFlwQ=&last_modified=true&namespace=quayorg&public=true 

      click Repositories page, it calls all again,

      each time click "Next page", "previous page" etc, it calls again

       

       

      Expected Result:

      1, Can we call it only once? something like feed them to a memory model and fetch from model if it exits

      2, in old ui, at least click "Next/Previous page" doesn't call apis again

        1. image-2024-05-08-16-50-39-474.png
          893 kB
          Sean Zhao
        2. image-2024-05-08-16-48-07-507.png
          908 kB
          Sean Zhao
        3. image-2024-05-08-16-43-00-910.png
          872 kB
          Sean Zhao

              Unassigned Unassigned
              szhao@redhat.com Sean Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: