Feature #4467

[Workbench] Add "select all" button to project content panes

Added by Bryan Cosca almost 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
Workbench
Target version:
Start date:
05/06/2015
Due date:
% Done:

0%

Estimated time:
(Total: 0.00 h)
Story points:
0.5

Description

("If we can do it inside of a data collection, can we do it inside of a project?")


Subtasks

Task #5916: Review branch: 4467-project-contents-select-allResolvedRadhika Chippada

Associated revisions

Revision dc0237c2
Added by Radhika Chippada over 6 years ago

closes #4467
Merge branch '4467-project-contents-select-all'

History

#1 Updated by Bryan Cosca almost 7 years ago

for example, what if we want to merge x collections within a project. If regex search functionality also worked, that would be great.

#2 Updated by Tom Clegg almost 7 years ago

  • Subject changed from Select all data collections within a project to [Workbench] Add "select all" button to project content panes
  • Description updated (diff)
  • Category set to Workbench
  • Target version set to Arvados Future Sprints

#3 Updated by Tom Clegg over 6 years ago

  • Target version changed from Arvados Future Sprints to 2015-05-20 sprint

#4 Updated by Tom Clegg over 6 years ago

  • Story points set to 0.5

#5 Updated by Radhika Chippada over 6 years ago

  • Assigned To set to Radhika Chippada

#6 Updated by Radhika Chippada over 6 years ago

  • Status changed from New to In Progress

#7 Updated by Peter Amstutz over 6 years ago

The onclick methods are named select_all_files() and unselect_all_files(), however they are not selecting files. Please rename.

Could we make the select_all and unselect_all methods generic, move them into assets/javascript, and use the same method for both the collections and projects page? For example:

function select_all_items(selector) {
  $(selector).find(":checkbox").filter(":visible").prop("checked", true).trigger("change");
}
<button id="select-all" type="button" class="btn btn-default" onClick="select_all_files('.arv-project-contents')">Select all</button>

#8 Updated by Radhika Chippada over 6 years ago

Peter: yes, moving into js and reusing this code is a good idea. Updated accordingly. Thanks.

#9 Updated by Peter Amstutz over 6 years ago

58997b4 LGTM

#10 Updated by Radhika Chippada over 6 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset arvados|commit:dc0237c289882a058a0d5c91b720a4b37917bc9d.

Also available in: Atom PDF