#416 irc list sort order doesn't match html buglist
Closed: Fixed None Opened 10 years ago by tflink.

= bug description =

The sort order of the bugs displayed on the html buglist (milestone/XX/YY/buglist) doesn't match the sort order used when generating the irc list for meetbot. This causes some confusion and annoyance when the order of bugs discussed in the meeting is not what appears in the list that participants are looking at

= fix recommendation =

Make the sort order consistent as component,bzid for both lists


There are still discrepancies between the two sorting mechanisms as reported in #439

Both blocker list and irc list are fed with the same ordered data. The problem is that jquery table of blockers sorts the data again, although by the same key, but the result is different:

jquery table: kdelibs, kde-plasma-nm, kde-workspace

sql: kde-plasma-nm, kde-workspace, kdelibs

A solution would be to turn off default sorting in the jquery table, so the table would be fed with data sorted by a sql query:

{{{
diff --git a/blockerbugs/templates/blocker_list.html b/blockerbugs/templates/blocker_list.html
index 3a08ba5..ea79d9b 100644
--- a/blockerbugs/templates/blocker_list.html
+++ b/blockerbugs/templates/blocker_list.html
@@ -57,7 +57,7 @@ text: '
{% for buglist in ['Proposed Blockers','Accepted Blockers', 'Proposed Freeze Exceptions', 'Accepted Freeze Exceptions'] %}

{{ buglist }}


-
+




}}}

The only issue with this is that if a user sorts data manually by (component,id), jquery sorts it just like listed above, but I don't think it matters that much, we need both list to be sorted same in the default state, right? What do you think?

Yeah, just the default order matters.

Replying to [comment:3 mkrizek]:

Both blocker list and irc list are fed with the same ordered data. The problem is that jquery table of blockers sorts the data again, although by the same key, but the result is different:

jquery table: kdelibs, kde-plasma-nm, kde-workspace

sql: kde-plasma-nm, kde-workspace, kdelibs

A solution would be to turn off default sorting in the jquery table, so the table would be fed with data sorted by a sql query:

If that leaves us with a functional, sortable table with a default sort order that matches the IRC list, I'm fine with it.

Login to comment on this ticket.

Metadata