Skip to content

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

@weizhouapache

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions