[Bug 439088] New: yast2 sw_single (ncurses) sorts patterns differently from Qt version and not meaningfully
https://bugzilla.novell.com/show_bug.cgi?id=439088 Summary: yast2 sw_single (ncurses) sorts patterns differently from Qt version and not meaningfully Product: openSUSE 11.1 Version: Beta 3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gp@novell.com QAContact: jsrain@novell.com Found By: Product Management Created an attachment (id=248024) --> (https://bugzilla.novell.com/attachment.cgi?id=248024) Screenshot (ncurses version) Looking at the attached screenshot we see that the KDE3 and KDE4 patterns (four overall) seem randomly sorted. In comparision, the Qt frontend has a sensible sorting order. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=439088 Michal Seben <mseben@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mseben@novell.com, sh@suse.de AssignedTo|bnc-team-screening@forge.provo.novell.com |kmachalkova@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=439088 User sh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=439088#c1 Stefan Hundhammer <sh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sh@novell.com --- Comment #1 from Stefan Hundhammer <sh@novell.com> 2008-10-28 07:59:16 MDT --- Patterns are to be sorted by a special sort key that is returned by zypp:Pattern::order(). See also YQPkgPatternListItem::operator<() in http://svn.opensuse.org/svn/yast/trunk/qt-pkg/src/YQPkgPatternList.cc . -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=439088 User kmachalkova@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=439088#c2 Katarina Machalkova <kmachalkova@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Priority|P5 - None |P3 - Medium --- Comment #2 from Katarina Machalkova <kmachalkova@novell.com> 2008-10-29 06:11:20 MDT --- Weird. Sorting function in ncurses-pkg already *does* use order() key. I wonder why it does not work in this particular case then -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=439088 User kmachalkova@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=439088#c3 Katarina Machalkova <kmachalkova@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX --- Comment #3 from Katarina Machalkova <kmachalkova@novell.com> 2008-10-29 06:56:37 MDT --- Actually, ncurses packagemanager works as expected and sorts patterns according to order sort key, see this debug output: Name: kde3 order: 1460 Name: kde4 order: 1480 Name: kde3_basis order: 1520 Name: multimedia order: 1580 Name: kde4_basis order: 1600 So multimedia pattern falls in between kde3_basis and kde4_basis simply because it has lower order number than kde4_basis. This is not visible in Qt UI, because it (unlike ncurses) displays patterns in categories (e.g. base technologies, desktop functions etc.) and sorts them according to order number within those categories. Multimedia and kde3/4 patterns are in different category, thus they never appear close to each other. Unfortunately, ncurses packagemanager knows nothing about pattern categories as ncurses UI lacks support for tables with subsections (categories), thus it has no means to visualize it. So I see two possible solutions here: 1. File a feature request so that ncurses packagemanager supports sorting patterns not only by order but also by category, just like Qt UI does 2. Reopen the bug and reassign it to whomever is responsible for pattern definition in the repository (for oS 11.1 I guess it's Coolo) so that the order numbers of patterns are changed into something more meaningful I'm sorry, wontfix for me now ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=439088 User gp@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=439088#c4 Gerald Pfeifer <gp@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX | --- Comment #4 from Gerald Pfeifer <gp@novell.com> 2008-10-31 21:41:57 MDT --- I understand it's wontfix for you, Katarina, but clearly the order numbers in this specific case should be adjusted. Not sure who would need to do that -- Coolo? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=439088 User kmachalkova@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=439088#c5 Katarina Machalkova <kmachalkova@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #5 from Katarina Machalkova <kmachalkova@novell.com> 2008-11-07 09:15:29 MST --- So I was bored (sort of) and implemented the sorting of patterns according to their order AND category, withouth really visualizing the categories as headlines. It is a good approximation of what Qt UI does, but as curses must use different data structures, still only an approximation. So the sorting might come out the same, or it might not. But I hope it is more meaningful now -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com