cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

UI sorting of elements not working on some views

Open yadvr opened this issue 1 year ago • 1 comments

As a root admin, I cannot change sort order of some views such as:

  • Compute offering
  • System offering
  • Disk offering
  • Network offering
  • VPC offering
Screenshot 2024-08-27 at 4 45 53 PM

In addition, I think the following resources should also allow sorting/ordering by the root admin:

  • Guest Networks (I think very useful to list shared networks in some preferred order, for example)
ISSUE TYPE
  • Bug Report
COMPONENT NAME
UI, API
CLOUDSTACK VERSION
4.19.1.1
CONFIGURATION

Adv zone + KVM

yadvr avatar Aug 27 '24 11:08 yadvr

@rohityadavcloud , unless you think this is a regression it seems like an enhancement to me, I marked it for 4.21 for now, please let me know if you disagree.

DaanHoogland avatar Aug 28 '24 07:08 DaanHoogland

this is indeed a regression in comparison to 4.18. It also seems like redundant functionality as (in the UI) sort can be done on several columns. I can see in the simplest , two-row case the columns are being updated in the DB and will look into what happens in more complex situations.

DaanHoogland avatar Aug 30 '24 13:08 DaanHoogland

gotten too the reason in code, need to think of a solution. The fetching is a two step process, first grab the IDs (ordering applied), than use the IDs to fetch the records (ordering totally forgotten about) /me thinking about a way to preserve the ordering.

DaanHoogland avatar Aug 30 '24 15:08 DaanHoogland

@rohityadavcloud #9624 solves the backwards compatibility for service and disk offering, can you test please? I did not reproduce it for network and vpc offerings. It also fixes an extra issue to contain the sorting to the current page in the UI (thanks @vishesh92 )

DaanHoogland avatar Sep 04 '24 13:09 DaanHoogland

fixed in #9624

DaanHoogland avatar Sep 05 '24 09:09 DaanHoogland