openQA icon indicating copy to clipboard operation
openQA copied to clipboard

Sorting for /admin/productlog not working

Open rclobus opened this issue 10 months ago • 3 comments

Sorting by 'Flavor' did not result in an ordered view.

To reproduce:

  • Go to https://openqa.opensuse.org/admin/productlog
  • Click on the 'Flavor' column header

See the image at https://pioneers.game-host.org/adminlog_sorting.png

rclobus avatar Feb 28 '25 16:02 rclobus

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 27 '25 01:06 stale[bot]

A similar view with the same issue (admin/needles) was shown during oSC25. I don't have sufficient rights for the openSUSE instance, but I assume that the needle view uses similar code as productlog.

For the Debian instance, we worked around it by setting serverSide: false in assets/javascripts/admin_needle.js. That means that the initial load of the page takes longer, but at least the sorting works properly.

Image

rclobus avatar Aug 04 '25 11:08 rclobus

  • This change fixes one aspect of the sorting on all server-side data tables: https://github.com/os-autoinst/openQA/pull/6553
  • The changes https://github.com/os-autoinst/openQA/pull/6555, https://github.com/os-autoinst/openQA/pull/6556 and https://github.com/os-autoinst/openQA/pull/6561 fix the sorting on the needles table which was "extra broken". So the needles table should be covered now and the workaround mentioned in the previous comment should no longer be necessary.

This leaves only the product log itself which I haven't investigated yet at all.

Martchus avatar Aug 12 '25 10:08 Martchus