Project

General

Profile

Actions

Feature #10830

open

[Workbench] Support array type input parameters to Workflows

Added by Peter Amstutz almost 8 years ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assigned To:
Tom Morris
Category:
-
Target version:
Story points:
-
Release:
Release relationship:
Auto

Description

Users cannot edit array type input parameters in Workbench:

Unable to render editing control for parameter type {:items=>"File", :type=>"array"}

Workbench needs an editing control that supports editing array inputs.


Files

CWL array input - mockup.jpg (56.2 KB) CWL array input - mockup.jpg Radhika Chippada, 01/18/2017 01:35 PM
Actions #1

Updated by Peter Amstutz almost 8 years ago

  • Description updated (diff)
Actions #2

Updated by Radhika Chippada almost 8 years ago

Does an array contain a single data type such as a string or an int or another array of type x etc? Or does one array can contain multiple types? If so how is it used (example)?

http://www.commonwl.org/draft-3/UserGuide.html#Array_inputs

http://www.commonwl.org/draft-3/CommandLineTool.html#CommandInputRecordSchema

Actions #3

Updated by Radhika Chippada almost 8 years ago

During yesterday's grooming meeting, we agreed that we will support arrays containing single item types or other arrays (which in turn will contain single item types) to start with.

Actions #4

Updated by Radhika Chippada almost 8 years ago

  • Support arrays with single item types such as string, int, array etc
    • Support item types boolean, int, long, float, double, string, File, Directory
  • Adding input items: for each array type input:
    • Present a "Add new item" button
    • When this button is pressed, add an input field of appropriate type such as text field or collection file chooser etc (see the "CWL array input - mockup")
  • When displaying a previously saved CR:
    • Add required number of items of type and pre-populate them with the data in the CR
  • Clearing previous data
    • When text in a populated input item is cleared, remove it from the array during save
  • Do we need to support any other types other than boolean, int, long, float, double, string, File, Directory?
Actions #5

Updated by Peter Amstutz almost 8 years ago

Radhika Chippada wrote:

  • Support arrays with single item types such as string, int, array etc
    • Support item types boolean, int, long, float, double, string, File, Directory
  • Adding input items: for each array type input:
    • Present a "Add new item" button
    • When this button is pressed, add an input field of appropriate type such as text field or collection file chooser etc (see the "CWL array input - mockup")
  • When displaying a previously saved CR:
    • Add required number of items of type and pre-populate them with the data in the CR
  • Clearing previous data
    • When text in a populated input item is cleared, remove it from the array during save

Maybe have a an [X] or trash button to delete array entries?

  • Do we need to support any other types other than boolean, int, long, float, double, string, File, Directory?

We're not doing complex types (nested arrays/records) for this ticket, so no.

You're looking at the wrong spec version. The right one is here: http://www.commonwl.org/v1.0/CommandLineTool.html#CWLType

Actions #6

Updated by Tom Morris over 7 years ago

  • Assigned To set to Tom Morris
  • Target version set to Arvados Future Sprints
Actions #7

Updated by Ward Vandewege over 3 years ago

  • Target version deleted (Arvados Future Sprints)
Actions #8

Updated by Peter Amstutz almost 2 years ago

  • Release set to 60
Actions #9

Updated by Peter Amstutz 9 months ago

  • Target version set to Future
Actions

Also available in: Atom PDF