legumeinfo / mine-issues

Report ALL issues on LIS mines here! Regardless of which mine you found it on!
2 stars 0 forks source link

QTL summaryPath queries are failing #147

Open alancleary opened 6 months ago

alancleary commented 6 months ago

Using the GraphQL Server on GlycineMine, I found that the pathQuery that gets the data succeeds, but the pathQuery that gets summary info that we use for pagination fails. The queries are identical except the data query asks for a specific page of data whereas the summary query ask for a summary of all the data.

Data query (has &start=0&size=10 as the end):

https://mines.legumeinfo.org/glycinemine/service/query/results?query=%3Cquery+model%3D%27genomic%27+view%3D%27QTL.id+QTL.primaryIdentifier+QTL.name+QTL.lod+QTL.likelihoodRatio+QTL.end+QTL.markerNames+QTL.markerR2+QTL.start+QTL.peak+QTL.trait.primaryIdentifier+QTL.qtlStudy.primaryIdentifier+QTL.linkageGroup.primaryIdentifier+QTL.dataSet.name%27+sortOrder%3D%27QTL.trait.name+ASC+QTL.primaryIdentifier+ASC%27+%3E%3Cconstraint+path%3D%27QTL.trait.name%27++op%3D%27CONTAINS%27+value%3D%27flower%27%2F%3E%3C%2Fquery%3E&start=0&size=10&format=json

Summary query (has &summaryPath=QTL.id at the end):

https://mines.legumeinfo.org/glycinemine/service/query/results?query=%3Cquery+model%3D%27genomic%27+view%3D%27QTL.id+QTL.primaryIdentifier+QTL.name+QTL.lod+QTL.likelihoodRatio+QTL.end+QTL.markerNames+QTL.markerR2+QTL.start+QTL.peak+QTL.trait.primaryIdentifier+QTL.qtlStudy.primaryIdentifier+QTL.linkageGroup.primaryIdentifier+QTL.dataSet.name%27+sortOrder%3D%27QTL.trait.name+ASC+QTL.primaryIdentifier+ASC%27+%3E%3Cconstraint+path%3D%27QTL.trait.name%27++op%3D%27CONTAINS%27+value%3D%27flower%27%2F%3E%3C%2Fquery%3E&summaryPath=QTL.id&format=json

This is the same strategy used for all other queries so I'm not sure why this one would break. I also tried using a different trait for the summaryPath, i.e. &summaryPath=QTL.primaryIdentifier, and got the same result, so I have no idea what the issue might be.

Edit: This appears to be an issue with Trait queries as well:

https://mines.legumeinfo.org/legumemine/service/query/results?query=%3Cquery+model%3D%27genomic%27+view%3D%27Trait.id+Trait.primaryIdentifier+Trait.description+Trait.name+Trait.dataSet.name%27+sortOrder%3D%27Trait.name%27+%3E%3C%2Fquery%3E&summaryPath=Trait.id&format=json