Skip to content

Commit

Permalink
Rename get_metadata_file route to just metadata_file. Thanks @carlfeb…
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Aug 5, 2016
1 parent f87b08e commit ce04973
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/managers/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def serialize_meta_files( self, dataset_assoc, key, **context ):
if isinstance( dataset_assoc.metadata.spec[ meta_type ].param, galaxy.datatypes.metadata.FileParameter ):
meta_files.append(
dict( file_type=meta_type,
download_url=self.url_for( 'history_contents_get_metadata_file',
download_url=self.url_for( 'history_contents_metadata_file',
history_id=self.app.security.encode_id(dataset_assoc.history_id),
history_content_id=self.app.security.encode_id(dataset_assoc.id),
metadata_file=meta_type) ) )
Expand Down
4 changes: 2 additions & 2 deletions lib/galaxy/webapps/galaxy/buildapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ def populate_api_routes( webapp, app ):
controller="datasets",
action="display",
conditions=dict(method=["GET"]))
webapp.mapper.connect( "history_contents_get_metadata_file",
"/api/histories/{history_id}/contents/{history_content_id}/get_metadata_file",
webapp.mapper.connect( "history_contents_metadata_file",
"/api/histories/{history_id}/contents/{history_content_id}/metadata_file",
controller="datasets",
action="get_metadata_file",
conditions=dict(method=["GET"]))
Expand Down

0 comments on commit ce04973

Please sign in to comment.