Skip to content

Commit e605f6d

Browse files
add predecessor run id to transcriptic launch command (#213)
* add predecessor run id to transcriptic launch command, update version and changelog * lint * lint * remove print to standard out and update submit_run_request with predecessor id arg * changelog * lint * whitespace * add predecessor id to payload directly * lint
1 parent 3151016 commit e605f6d

4 files changed

Lines changed: 13 additions & 1 deletion

File tree

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Changelog
22
=========
33

4+
v9.4.1
5+
------
6+
7+
Added
8+
~~~~~
9+
- optional predecessor_id argument in commands.launch. and config.submit_launch_request
10+
If passed, will populate on web.
11+
412
v9.4.0
513
------
614

transcriptic/commands.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ def launch(
857857
pm=None,
858858
test=None,
859859
pkg=None,
860+
predecessor_id=None,
860861
):
861862
"""Configure and launch a protocol either using the local manifest file or remotely.
862863
If no parameters are specified, uses the webapp to select the inputs."""
@@ -987,6 +988,7 @@ def launch(
987988
title=run_title,
988989
test_mode=test,
989990
payment_method_id=pm,
991+
predecessor_id=predecessor_id,
990992
)
991993
run_id = req_json["id"]
992994
click.echo("\nRun created: %s" % api.url("%s/runs/%s" % (project, run_id)))

transcriptic/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ def submit_launch_request(
713713
title=None,
714714
test_mode=False,
715715
payment_method_id=None,
716+
predecessor_id=None,
716717
):
717718
"""Submit specified launch request"""
718719
payload = {
@@ -721,6 +722,7 @@ def submit_launch_request(
721722
"protocol_id": protocol_id,
722723
"test_mode": test_mode,
723724
"payment_method_id": payment_method_id,
725+
"predecessor_id": predecessor_id,
724726
}
725727
data = {k: v for k, v in payload.items() if v is not None}
726728
return self.post(

transcriptic/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "9.4.0"
1+
__version__ = "9.4.1"

0 commit comments

Comments
 (0)