Bug 1216093 - [libyui-qt-pkg] Software Pattern Categories in Wrong Sort Order
Summary: [libyui-qt-pkg] Software Pattern Categories in Wrong Sort Order
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Current
Hardware: All Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: YaST Team
QA Contact: Jiri Srain
URL: https://trello.com/c/AKKngvcq
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-10 12:33 UTC by Stefan Hundhammer
Modified: 2023-10-11 11:37 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Screenshot: Patterns with visible 'order' field; wrong sort order (223.07 KB, image/png)
2023-10-10 12:33 UTC, Stefan Hundhammer
Details
Screenshot: Collapsed pattern categories; wrong sort order (73.36 KB, image/png)
2023-10-10 12:34 UTC, Stefan Hundhammer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Hundhammer 2023-10-10 12:33:56 UTC
Created attachment 870044 [details]
Screenshot: Patterns with visible 'order' field; wrong sort order

(see also https://github.com/libyui/libyui/pull/107 for more details and inline screenshots)

In the YaST Qt pattern selector, the pattern categories have the wrong sort order. They should take the first of their patterns (the one with the lowest 'order' field as their own sort order, but they are actually take their last one which in some cases leads to the wrong sort order.
Comment 1 Stefan Hundhammer 2023-10-10 12:34:56 UTC
Created attachment 870045 [details]
Screenshot: Collapsed pattern categories; wrong sort order
Comment 2 Stefan Hundhammer 2023-10-10 12:35:53 UTC
PR with a fix and more detailed explanations and more screenshots:

https://github.com/libyui/libyui/pull/107
Comment 3 Stefan Hundhammer 2023-10-10 12:42:23 UTC
Affected code streams:

This almost certainly goes back a long time; all Leap 15.x / SLE-15 GA/SPx, probably also all Leap 42.x / SLE-12 GA/SPx, maybe even SLE-11 GA/SPx.

But it would be pretty pointless to backport this fix since once the installation is done, the pattern categories order and patterns in general lose most of their usefulness.

So it makes a lot more sense to fix this for Factory / TW only where the release managers can, if desired, change the 'order' field in the patterns .spec files if they are unhappy with the new (fixed) sort order.
Comment 4 Stefan Hundhammer 2023-10-10 13:27:07 UTC
This will arrive in Factory / TW as libyui-qt-pkg16-4.6.1.
Comment 5 Stefan Hundhammer 2023-10-11 11:37:35 UTC
SR to Factory / TW:

  https://build.opensuse.org/request/show/1116919