apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2.09k stars 1.11k forks source link

UI: Dropdown doesn't list all the entries #9729

Open vishesh92 opened 1 month ago

vishesh92 commented 1 month ago
ISSUE TYPE
COMPONENT NAME
UI
CLOUDSTACK VERSION
All versions which have the new UI
CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

The dropdown in the UI fetches all domains at once with the default page size. If the actual count of resources is higher, the keyword search doesn't work and the domains after the default page size can't be selected in the UI.

STEPS TO REPRODUCE
  1. Create 10 domains with different names.
  2. Set the default page size to 5.
  3. The domain list while launching or importing a VM, doesn't show all the records.
EXPECTED RESULTS
I should be able to see all records or search by keyword and select. Or allow entering a UUID manually.
ACTUAL RESULTS
All entries in the drop down are not listed.
DaanHoogland commented 1 month ago

Hey @vishesh92 have you verified that this problem is not in the API? It sounds like it could have to do with the pagesize and page parameters.

vishesh92 commented 1 month ago

Hey @vishesh92 have you verified that this problem is not in the API? It sounds like it could have to do with the pagesize and page parameters.

The problem could be fixed by increasing the pagesize parameter but that would also slow down the UI. And if the number of entries are let's say 10000, it can also increase the load on the database.

DaanHoogland commented 1 month ago

Hey @vishesh92 have you verified that this problem is not in the API? It sounds like it could have to do with the pagesize and page parameters.

The problem could be fixed by increasing the pagesize parameter but that would also slow down the UI. And if the number of entries are let's say 10000, it can also increase the load on the database.

What you are saying is that the problem is not in the UI, right?

vishesh92 commented 1 month ago

Hey @vishesh92 have you verified that this problem is not in the API? It sounds like it could have to do with the pagesize and page parameters.

The problem could be fixed by increasing the pagesize parameter but that would also slow down the UI. And if the number of entries are let's say 10000, it can also increase the load on the database.

What you are saying is that the problem is not in the UI, right?

This is an enhancement request. As of now, the end user will have to use the API instead of the UI.

UI should be making search queries with keyword when text is entered in the drop down to ensure that the user can search and select the desired resource irrespective of how many entries are present.

Another possible fix is to allow the user to enter the UUID even if it's not present in the drop down.

DaanHoogland commented 1 month ago

This is an enhancement request. As of now, the end user will have to use the API instead of the UI.

UI should be making search queries with keyword when text is entered in the drop down to ensure that the user can search and select the desired resource irrespective of how many entries are present.

Another possible fix is to allow the user to enter the UUID even if it's not present in the drop down.

Yes, but still it is the API that must be fixed, unless you say that giving the page and pagesize parameters on the CLI will yield the requested results.