Skip to content

Commit

Permalink
Merge pull request #163 from bento-platform/feat/workflows/help-text
Browse files Browse the repository at this point in the history
feat(workflows): add help text field to workflow input base model
  • Loading branch information
davidlougheed authored Dec 6, 2023
2 parents 4f44782 + 2b61e34 commit 8b51054
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bento_lib/package.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = bento_lib
version = 11.0.0a2
version = 11.0.0a3
authors = David Lougheed, Paul Pillot
author_emails = [email protected], [email protected]
1 change: 1 addition & 0 deletions bento_lib/workflows/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class WorkflowBaseInput(FrozenBaseModel):
id: str
required: bool = True
type: str
help: str = "" # Help text to render alongside fields in GUI forms.


class WorkflowInjectedInput(WorkflowBaseInput):
Expand Down
2 changes: 1 addition & 1 deletion tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
description="A test workflow",
file="test.wdl",
inputs=[
workflows.models.WorkflowStringInput(id="input1", type="string"),
workflows.models.WorkflowStringInput(id="input1", type="string", help="Some string input"),
]
)

0 comments on commit 8b51054

Please sign in to comment.