Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.07] Backport #4224 #4230

Merged

Conversation

nsoranzo
Copy link
Member

Fix Registry.get_datatype_by_extension() to return None if ext is unknown.

Bugfix-only backport of #4224.

Without this fix, the Cheetah expression:

$dataset.is_of_type('unknown_ext')

in a tool command would be equivalent to:

$dataset.is_of_type('txt')

meaning that if the dataset datatype is a subclass of Text, the expression would evaluate to True without any warning.

Fix galaxyproject/tools-iuc#1373.

Also add missing bed and xml datatypes to test/functional/tools/sample_datatypes_conf.xml which are needed by 4 test tools.

…nown

Without this fix, the Cheetah expression:

$dataset.is_of_type('unknown_ext')

in a tool command would be equivalent to:

$dataset.is_of_type('txt')

meaning that if the dataset datatype is a subclass of Text, the expression
would evaluate to True without any warning.

xref. galaxyproject/tools-iuc#1373

Also add missing `xml` datatype to
`test/functional/tools/sample_datatypes_conf.xml` which is needed by 3 test
tools.
@nsoranzo nsoranzo added this to the 16.07 milestone Jun 26, 2017
@nsoranzo nsoranzo changed the title Backport #4224 [16.07] Backport #4224 Jun 26, 2017
@nsoranzo
Copy link
Member Author

I think that integration test failure is to be expected on 16.07.

@@ -14,5 +14,8 @@
<datatype extension="bam" type="galaxy.datatypes.binary:Bam" mimetype="application/octet-stream" display_in_upload="true" description="A binary file compressed in the BGZF format with a '.bam' file extension." description_url="https://wiki.galaxyproject.org/Learn/Datatypes#BAM" />
<datatype extension="bcf" type="galaxy.datatypes.binary:Bcf" mimetype="application/octet-stream" display_in_upload="true" description="A binary file compressed in the BGZF format with a '.bcf' file extension." description_url="https://wiki.galaxyproject.org/Learn/Datatypes#BCF" />
<datatype extension="biom1" type="galaxy.datatypes.text:Biom1" display_in_upload="True" subclass="True" mimetype="application/json"/>
<datatype extension="bed" type="galaxy.datatypes.interval:Bed" display_in_upload="true" description="BED format provides a flexible way to define the data lines that are displayed in an annotation track. BED lines have three required columns and nine additional optional columns. The three required columns are chrom, chromStart and chromEnd." description_url="https://galaxyproject.org/learn/datatypes/#bed">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the indentation is off here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's a tab. I copy-pasted it from the dev version of this file (was originally added in another commit) and decided to keep it like this to hopefully minimise conflicts when merging forward. But I can fix it here if you want.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that's fine.

Copy link
Member

@mvdbeek mvdbeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @nsoranzo

@jmchilton jmchilton merged commit 5a39d47 into galaxyproject:release_16.07 Jul 5, 2017
@jmchilton
Copy link
Member

Awesome - thanks for the diligence.

@nsoranzo nsoranzo deleted the release_16.07_backport_4224 branch July 5, 2017 14:02
@nsoranzo
Copy link
Member Author

nsoranzo commented Jul 5, 2017

Merged forward all the way to the dev branch.

peterjc added a commit to peterjc/galaxy_blast that referenced this pull request Oct 19, 2018
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
peterjc added a commit to peterjc/galaxy_blast that referenced this pull request Oct 19, 2018
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
peterjc added a commit to peterjc/galaxy_blast that referenced this pull request Oct 22, 2018
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
peterjc added a commit to peterjc/galaxy_blast that referenced this pull request Oct 22, 2018
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
peterjc added a commit to peterjc/galaxy_blast that referenced this pull request Oct 23, 2018
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
peterjc added a commit to peterjc/galaxy_blast that referenced this pull request Oct 23, 2018
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants