#416: irc list sort order doesn't match html buglist
---------------------------------------+-----------------------
  Reporter:  tflink                    |      Owner:  tflink
      Type:  defect                    |     Status:  reopened
  Priority:  major                     |  Milestone:  Fedora 20
 Component:  Blocker bug tracker page  |    Version:
Resolution:                            |   Keywords:
Blocked By:                            |   Blocking:
---------------------------------------+-----------------------

Comment (by 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:

 {{{
 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: '<a href="' +
 $(this).contents().filter('a').attr('href') + '" title="More
      <div class="twelve columns" id="blockertables">
          {% for buglist in ['Proposed Blockers','Accepted Blockers',
 'Proposed Freeze Exceptions', 'Accepted Freeze Exceptions'] %}
          <h2>{{ buglist }}</h2>
 -        <table id="{{ buglist | tagify }}" cellspacing="1"
 class="tablesorter {sortlist: [[2,0],[1,0]]}">
 +        <table id="{{ buglist | tagify }}" cellspacing="1"
 class="tablesorter">
              <thead>
                  <tr>
                      <th></th>
 }}}

 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?

-- 
Ticket URL: <https://fedorahosted.org/fedora-qa/ticket/416#comment:3>
Fedora QA <http://fedorahosted.org/fedora-qa>
Fedora Quality Assurance
_______________________________________________
qa-devel mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/qa-devel

Reply via email to