Closed Bug 1217283 Opened 9 years ago Closed 8 years ago

TryChooser should support using shift key to select a range of tests

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: xidorn, Assigned: xidorn)

Details

(Keywords: trychooser)

Attachments

(1 file, 2 obsolete files)

I sometimes want to choose only part of tests in one column, e.g. mochitest-[1-5] or mochitest-e10s-[1-5]. They are continuous, but I have to select them one by one. It is even worse if I want to choose only the "Android-Only Unittest Suites" or "B2G-Only Unittest Suites".

I suggest if an item is clicked when the shift key is pressed, all items between the last checked box and the current box should be set to the new state of the current box.

For example, given the list below:
[ ] mochitest-1
[ ] mochitest-2
[ ] mochitest-3
[ ] mochitest-4
[ ] mochitest-5

If I click "mochitest-1", and then shift-click "mochitest-5", the result should be:
[X] mochitest-1
[X] mochitest-2
[X] mochitest-3
[X] mochitest-4
[X] mochitest-5

Then if I click "mochitest-2" and shift-click "mochitest-4", the result should be:
[X] mochitest-1
[ ] mochitest-2
[ ] mochitest-3
[ ] mochitest-4
[X] mochitest-5

It would be useful.
Attached patch patch (obsolete) — Splinter Review
Attachment #8691239 - Flags: review?(bugspam.Callek)
Ping on this patch?
Comment on attachment 8691239 [details] [diff] [review]
patch

Review of attachment 8691239 [details] [diff] [review]:
-----------------------------------------------------------------

(stealing this review on Callek's request)

This doesn't work much of the time for me.

Failure case:

Select "Linux" on platforms. Then click "None". Then click "Linux" again. Then shift click down 5 spots.

Expected:

All 5 platforms are selected

Actual: 

Nothing happens

In general the feature seems to work only intermittently for me on MacOS X, both Firefox and Chrome. But the above steps fail every time for me, so it seems like a place to start.

::: trychooser/trychooser.css
@@ +53,5 @@
>      cursor: pointer;
> +    -webkit-user-select: none;
> +    -moz-user-select: none;
> +    -ms-user-select: none;
> +    user-select: none;

This is somewhat non-standard, I guess there's no alternative?
Attachment #8691239 - Flags: review?(bugspam.Callek) → review-
I don't understand why that doesn't work for you. It works perfectly for me every time including your steps, on both Windows and OS X, both Firefox and Chrome.
Attached patch patch (obsolete) — Splinter Review
OK, I guess you were trying to click on the checkboxs instead of the labels. This new patch should work on both cases.
Attachment #8691239 - Attachment is obsolete: true
Attachment #8700833 - Flags: review?(wlachance)
(In reply to William Lachance (:wlach) from comment #3)
> Comment on attachment 8691239 [details] [diff] [review]
> patch
> 
> Review of attachment 8691239 [details] [diff] [review]:
> -----------------------------------------------------------------
> ::: trychooser/trychooser.css
> @@ +53,5 @@
> >      cursor: pointer;
> > +    -webkit-user-select: none;
> > +    -moz-user-select: none;
> > +    -ms-user-select: none;
> > +    user-select: none;
> 
> This is somewhat non-standard, I guess there's no alternative?

This is on a standards track anyway, in CSS UI 4 draft.
Attached patch patchSplinter Review
Fix some typos.
Attachment #8700833 - Attachment is obsolete: true
Attachment #8700833 - Flags: review?(wlachance)
Attachment #8700837 - Flags: review?(wlachance)
Comment on attachment 8700837 [details] [diff] [review]
patch

Review of attachment 8700837 [details] [diff] [review]:
-----------------------------------------------------------------

Oh sorry, I missed the part about having to click on the names. But I think being able to click on the names or the checkbox is better in any case! I'm sure this feature will be useful to many people.

Feel free to land this. I don't know the details of what we have to do to get the changes deployed, maybe Callek can chime in on that.
Attachment #8700837 - Flags: review?(wlachance) → review+
I wonder whether I should close it now or close it until this change gets deployed.
Assignee: nobody → quanxunzhen
Flags: needinfo?(bugspam.Callek)
[2015-12-28 06:51:05] Finished push_www (9.454s)
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(bugspam.Callek)
Resolution: --- → FIXED
Keywords: trychooser
Component: Tools → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: