Skip to content

UI: only 500 projects are listed when add network permission #10838

Closed

Description

@weizhouapache

problem

Steps to reproduce the issue

  • create 1000 projects
  • create a network
  • add network permission
  • only the last 500 projects are listed in the dropdown

Image

this issue should exist in some other pages as well, including vm deployment wizard in 4.20.

Image

ui/src/components/header/ProjectMenu.vue:        api('listProjects', { listAll: true, page: page, pageSize: 500, details: 'min', showIcon: true }).then(json => {
ui/src/components/header/ProjectMenu.vue:      return !Object.prototype.hasOwnProperty.call(store.getters.apis, 'listProjects')
ui/src/config/section/project.js:  permission: ['listProjects'],
ui/src/views/AutogenView.vue:      api('listProjects', { id: projectId, listall: true, details: 'min' }).then(json => {
ui/src/views/AutogenView.vue:        if (this.apiName === 'listProjects' && this.items.length > 0) {
ui/src/views/compute/wizard/OwnershipSelection.vue:      api('listProjects', {
ui/src/views/dashboard/UsageDashboard.vue:      api('listProjects', { id: store.getters.project.id }).then(json => {
ui/src/views/image/UpdateTemplateIsoPermissions.vue:      api('listProjects', {
ui/src/views/infra/network/DedicatedVLANTab.vue:      api('listProjects', {
ui/src/views/network/CreateNetworkPermission.vue:      api('listProjects', params).then(json => {
ui/src/views/network/CreateNetworkPermission.vue:        const listProjects = json.listprojectsresponse.project || []
ui/src/views/network/CreateNetworkPermission.vue:        this.projects = listProjects
ui/src/views/network/CreateSharedNetworkForm.vue:      api('listProjects', params).then(json => {
ui/src/views/network/ReservePublicIP.vue:      api('listProjects', {
ui/src/views/tools/ImportUnmanagedInstance.vue:          list: 'listProjects',
ui/src/views/tools/ManageVolumes.vue:      api('listProjects', {

in the project dropdown, all projects are listed, that's fine.
ProjectMenu.vue is fine

versions

ACS 4.19/4.20
UI

The steps to reproduce the bug

...

What to do about it?

No response

Activity

  1. weizhouapache commented on May 8, 2025

    @weizhouapache
    MemberAuthor

    the same issue might happen with other resource as well
    for example Accounts, Domains

  2. yadvr commented on May 9, 2025

    @yadvr
    Member

    Thanks for the issue Wei - unfortunately this pattern & limit may not just be limited to projects but several other resources like you've mentioned and beyond.

  3. added this to the unplanned milestone on May 9, 2025
  4. added theissue type on May 9, 2025
  5. weizhouapache commented on May 13, 2025

    @weizhouapache
    MemberAuthor

    same as #9729

  6. DaanHoogland commented on May 13, 2025

    @DaanHoogland
    Contributor

    Just for reference: a similar thing was solved for domains in #7931. I think we need a more generic solution usable from all UI-pages and APIs. Not sure how such a solution would lok, though(yet)

  7. modified the milestones: unplanned, 4.19.3 on May 16, 2025
  8. DaanHoogland commented on May 16, 2025

    @DaanHoogland
    Contributor

    fixed in #10840

  9. weizhouapache commented on May 16, 2025

    @weizhouapache
    MemberAuthor

    thanks @shwstppr for the fix

    @DaanHoogland @shwstppr
    is there any other pages need to be updated ?

  10. DaanHoogland commented on May 16, 2025

    @DaanHoogland
    Contributor

    @weizhouapache , most likely yes. I think this should be a seperate effort and maybe done on a case-by-case ad-hoc basis.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions