No alignment available after filtering by "display_species"
- Nov 10, 2018
-
-
Matthieu Muffato authored3344d78a
-
Matthieu Muffato authoredc3bfb7d4
-
Created by: muffato
When an alignment block doesn't match the required $display_species
, the Compara API returns undef. This causes the REST to fail over undefined values.
The alignment block will now be discarded. If all blocks are discarded, the REST API will show the usual error message (as JSON) e.g. http://rest.ensembl.org/alignment/region/mus_musculus/1:50-52:1?species_set_group=murinae;content-type=application/json;method=CACTUS_HAL
If applicable, describe any possible undesirable consequence of the changes.
Have you added/modified unit tests to test the changes?
Yes
If so, do the tests pass/fail?
Yes
Have you run the entire test suite and no regression was detected?
Yes
Are you changing the functionality of an endpoint? If so, please give a one line summary for the public facing changelog.
No