Closed Bug 892651 Opened 12 years ago Closed 12 years ago

selecting a range while filtering the device list causes devices to be selected outside of the filter

Categories

(Testing Graveyard :: Mozpool, defect)

x86
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dividehex, Assigned: dustin)

Details

Attachments

(1 file)

I had tag a subset of devices with the comment '#badpanda' and filter for #badpanda in the lifeguard UI. Then selected the range by select the first device, holding shift and then selecting the last device in the filtered list. I then initiated a selftest and the selected subset. But when i removed the filter tag, I saw that the entire list of devices was selected from the first to the last on the previously filtered list and the devices showed to ALL be pxebooting. :-{
Summary: selecting a range while filtering the device list causes a devices to be selected outside of the filter → selecting a range while filtering the device list causes devices to be selected outside of the filter
I confirmed this in my test environment. The range selection doesn't heed whether rows are visible.
Severity: normal → major
Attached patch bug892651.patchSplinter Review
http://datatables.net/docs/DataTables/1.9.0/DataTable.models.oSettings.html aiDisplay is a list of the data indices of all visible table rows.
Assignee: nobody → dustin
Attachment #774200 - Flags: review?(mcote)
Bug 817762 closed the trees this morning, so I'd like to ship a new version of Mozpool Monday. Mark, you can r? this by then, I can squeeze it in.
Comment on attachment 774200 [details] [diff] [review] bug892651.patch Review of attachment 774200 [details] [diff] [review]: ----------------------------------------------------------------- Looks and works great. Just a tiny nit, and even that was in the original version. ::: mozpool/html/ui/js/views-tables.js @@ +142,5 @@ > + if (to_dispidx >= 0 && from_dispidx >= 0) { > + // sort the two indexes so we can iterate from one to the other > + if (from_dispidx > to_dispidx) { > + var t; > + t = from_dispidx; Might as well combine this line and the previous.
Attachment #774200 - Flags: review?(mcote) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: