Skip to content

Commit

Permalink
Merge pull request #133 from bento-platform/feat/workflows/data-type-tmp
Browse files Browse the repository at this point in the history
chore(workflows): add back data type property for workflows for authz (for now)
  • Loading branch information
davidlougheed authored Oct 23, 2023
2 parents 2242101 + 5d9b70f commit 278dc34
Show file tree
Hide file tree
Showing 3 changed files with 6 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 = 9.0.0a4
version = 9.0.0a5
authors = David Lougheed, Paul Pillot
author_emails = [email protected], [email protected]
5 changes: 4 additions & 1 deletion bento_lib/workflows/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ class WorkflowDefinition(BaseModel):
type: WorkflowType # One of a few pre-defined values for categorizing workflow type/purpose
description: str # Human-readable workflow description
file: str # WDL file name
tags: frozenset[str] = frozenset(()) # Should include data type(s) if relevant
data_type: str | None = None # Data type; temporary for authz until we have proper token exchange for WES TODO
# - If data_type is None, the permissions should be *more* severe, not less
# (check if they have whole project/dataset access)
tags: frozenset[str] = frozenset() # Should include data type(s) if relevant
# Here, inputs defines UI / injected inputs for this workflow. These get transformed into a JSON parameters file
# which is fed to the WDL workflow description / Cromwell.
# As such, many of these workflow input types end up mapping to the same WDL type:
Expand Down
1 change: 1 addition & 0 deletions tests/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def test_workflow_set():
name="Test Workflow 2",
type="analysis",
description="A test workflow",
data_type="experiment",
tags=["experiment", "cbioportal"],
file="test.wdl",
inputs=[
Expand Down

0 comments on commit 278dc34

Please sign in to comment.