Project

General

Custom queries

Profile

Actions

Bug #22554

closed

Support launching workflows with optional inputs

Added by Brett Smith 2 months ago. Updated 4 days ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench2
Target version:
Story points:
-

Description

source:tools/cluster-activity/cluster-activity.cwl has the following inputs:

inputs:
  reporting_days: int?
  reporting_start: string?
  reporting_end: string?

These are optional because you can provide some subset of them, but it's an error to specify all of them.

You cannot launch this workflow from Workbench with a specified date range:

  • If you leave reporting_days empty, the workflow will fail to start with the error:
    ../../lib/cwl/cwl.input.json:1:227: the 'reporting_days' field is not valid because
    tried int but
    "''" is not int
  • If you specify reporting_days=0, our own cluster activity script will complain that this is mutually exclusive with reporting_start or reporting_end.

It should be possible to completely omit inputs just like it is in YAML.

Solution

If a field is marked as optional (this looks like "type": ["null", "string"]) then an empty text input field in the interface should be emitted as "null" and not empty string.


Subtasks 1 (0 open1 closed)

Task #22638: Review 2554-wf-optional-inputsResolvedStephen Smith04/03/2025Actions
#1

Updated by Peter Amstutz 2 months ago

  • Target version set to Development 2025-03-19
#2

Updated by Peter Amstutz about 2 months ago

  • Target version changed from Development 2025-03-19 to Development 2025-02-26
#3

Updated by Peter Amstutz about 2 months ago

  • Tracker changed from Feature to Bug
#5

Updated by Peter Amstutz about 2 months ago

  • Description updated (diff)
#6

Updated by Peter Amstutz about 2 months ago

  • Target version changed from Development 2025-02-26 to Development 2025-03-19
#7

Updated by Brett Smith about 1 month ago

  • Target version changed from Development 2025-03-19 to Development 2025-02-26
#8

Updated by Brett Smith about 1 month ago

  • Target version changed from Development 2025-02-26 to Development 2025-03-19
#9

Updated by Brett Smith about 1 month ago

  • Subtask #22638 added
#10

Updated by Peter Amstutz 27 days ago

  • Target version changed from Development 2025-03-19 to Development 2025-04-02
#11

Updated by Peter Amstutz 20 days ago

  • Assigned To set to Lisa Knox
#12

Updated by Lisa Knox 11 days ago

  • Status changed from New to In Progress
#13

Updated by Lisa Knox 11 days ago

  • Status changed from In Progress to New
#16

Updated by Lisa Knox 8 days ago

  • Status changed from New to In Progress
#18

Updated by Peter Amstutz 7 days ago

  • Target version changed from Development 2025-04-02 to Development 2025-04-16
#20

Updated by Lisa Knox 5 days ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF