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

QTL summaryPath queries are failing #147

Open
alancleary opened this issue Mar 6, 2024 · 0 comments
Open

QTL summaryPath queries are failing #147

alancleary opened this issue Mar 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@alancleary
Copy link

alancleary commented Mar 6, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant