Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 840911 Details for
Bug 1020191
cumin - wrong sorting according to job id
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Overload sort_rows method to JobSummariesAdapter
1020191.patch (text/plain), 835 bytes, created by
Trevor McKay
on 2013-12-23 17:26:00 UTC
(
hide
)
Description:
Overload sort_rows method to JobSummariesAdapter
Filename:
MIME Type:
Creator:
Trevor McKay
Created:
2013-12-23 17:26:00 UTC
Size:
835 bytes
patch
obsolete
>Index: cumin/python/cumin/grid/job.py >=================================================================== >--- cumin/python/cumin/grid/job.py (revision 5792) >+++ cumin/python/cumin/grid/job.py (working copy) >@@ -249,6 +249,16 @@ > data = self.do_get_data(values) > return len(data) > >+ def sort_rows(self, rows, options): >+ if len(rows) > self.max_sortable_records: >+ return rows >+ >+ sort_field = options.sort_field >+ rev = options.sort_ascending == False >+ >+ # For the submissions table, row[0] is a non-visible numerical job id >+ return sorted(rows, key=lambda row: float(row[0]), reverse=rev) >+ > class NonSortableObjectTableColumn(ObjectTableColumn): > def __init__(self, app, name, attr): > super(NonSortableObjectTableColumn, self).__init__(app, name, attr)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1020191
:
840911
|
840913