Project

General

Profile

Bug #20778

Scheduling remote job from hosts table with select all targets only the current page of hosts

Added by Adam Ruzicka about 5 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman
Target version:
-
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1477550

Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Have more than one page of hosts
2. Go to hosts index
3. Enter search query to match more than one page of hosts
4. Click the select all checkbox
5. Click "Select all X hosts"
6. Select action > schedule remote job

Actual results:
Only the hosts from the viewed page are selected as targets for REX.

Expected results:
All selected hosts are selected as targets for REX

Additional info:
See attachment


Related issues

Related to Foreman - Bug #23629: Fix redirect parameters on hosts pageClosed2018-05-17

Associated revisions

Revision 6c11475d (diff)
Added by Dmitri Dolguikh over 4 years ago

Fixes #20778 - handle selection of all hosts on all pages.

History

#1 Updated by Adam Ruzicka about 5 years ago

  • Category set to Foreman
  • Target version set to 113

#2 Updated by Dmitri Dolguikh over 4 years ago

Only the hosts from the viewed page are selected as targets for REX.

This is the normal, and I would argue expected behaviour of "select all" checkbox -- it applies to currently displayed items only (pls. take a look at gmail and/or other web-based UIs to verify this). I would also argue that selecting items not present on the screen is bad UI -- we'd be mixing UI-based and bulk actions.

One way to resolve the issue would be to have "show all items" option on the that screen. Another alternative would be to have a dedicated bulk execution UI which would apply to all hosts only, without ability to pick hosts individually.

#3 Updated by Ivan Necas over 4 years ago

Actually, there is similar option as in GMail (see the screenshot), to select all hosts: in this case, the search should be used for targeting.

#4 Updated by The Foreman Bot over 4 years ago

  • Assignee set to Dmitri Dolguikh
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/350 added

#5 Updated by Dmitri Dolguikh over 4 years ago

  • Related to Bug #23629: Fix redirect parameters on hosts page added

#6 Updated by Anonymous over 4 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF