galaxyproject / blend4j

blend4j is a JVM partial reimplementation of the Python library bioblend for interacting with Galaxy, CloudMan, and BioCloudCentral.
Eclipse Public License 1.0
16 stars 22 forks source link

Handle datatype changes in forthcoming Galaxy release. #21

Closed jmchilton closed 9 years ago

jmchilton commented 9 years ago

The forthcoming release of Galaxy makes breaking change to history contents API - data_type will no longer represent the short format/file extension of the history dataset - it will now represent the Python module and class.

This commit modifies getDataType() to work the same either way - but since for the newer version it isn't literally returning 'data_type' attribute - I have deprecated this method. The new method getDataTypeExt() should be used instead.

This commit also adds getDataTypeClass() that always returns this 'data_type' attribute (but the actual method name only makes sense when taretting a newer verion of Galaxy).

For more information on the Galaxy API changes see https://bitbucket.org/galaxy/galaxy-central/commits/9d152ed#chg-lib/galaxy/model/__init__.py.