Skip to content

Commit

Permalink
Merge pull request #592 from afgane/dev
Browse files Browse the repository at this point in the history
Include valid_tools as part of metadata returned with the repository …
  • Loading branch information
dannon committed Aug 12, 2015
2 parents 1d325e2 + bb6a784 commit 01b69e3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion lib/galaxy/webapps/tool_shed/api/repositories.py
Expand Up @@ -155,7 +155,21 @@ def get_repository_revision_install_info( self, trans, name, owner, changeset_re
"includes_workflows": false,
"malicious": false,
"repository_id": "f9cad7b01a472135",
"url": "/api/repository_revisions/f9cad7b01a472135"
"url": "/api/repository_revisions/f9cad7b01a472135",
"valid_tools": [{u'add_to_tool_panel': True,
u'description': u'data on any column using simple expressions',
u'guid': u'localhost:9009/repos/enis/sample_repo_1/Filter1/2.2.0',
u'id': u'Filter1',
u'name': u'Filter',
u'requirements': [],
u'tests': [{u'inputs': [[u'input', u'1.bed'], [u'cond', u"c1=='chr22'"]],
u'name': u'Test-1',
u'outputs': [[u'out_file1', u'filter1_test1.bed']],
u'required_files': [u'1.bed', u'filter1_test1.bed']}],
u'tool_config': u'database/community_files/000/repo_1/filtering.xml',
u'tool_type': u'default',
u'version': u'2.2.0',
u'version_string_cmd': None}]
}
- a dictionary including the additional information required to install the repository. For example:
{
Expand Down Expand Up @@ -204,6 +218,7 @@ def get_repository_revision_install_info( self, trans, name, owner, changeset_re
repository_metadata_dict[ 'url' ] = web.url_for( controller='repository_revisions',
action='show',
id=encoded_repository_metadata_id )
repository_metadata_dict[ 'valid_tools' ] = repository_metadata.metadata[ 'tools' ]
# Get the repo_info_dict for installing the repository.
repo_info_dict, \
includes_tools, \
Expand Down

0 comments on commit 01b69e3

Please sign in to comment.