opentargets / issues

Issue tracker for Open Targets Platform and Open Targets Genetics Portal
https://platform.opentargets.org https://genetics.opentargets.org
Apache License 2.0
12 stars 2 forks source link

API playground target annotation query crashing in production due to obsoleted endpoint #2985

Closed d0choa closed 1 year ago

d0choa commented 1 year ago

The target annotation example query from the Platform API playground crashes. I have identified the reasons (typos in the query):

Crashing query ``` query targetAnnotation { target(ensemblId: "ENSG00000169083") { id approvedSymbol tractability { modality id value } safetyLiabilities { event eventId biosample { cellFormat cellLabel tissueLabel tissueId } effects { dosing direction } study { name type description } datasource literature } } } ```
Working query ``` query targetAnnotation { target(ensemblId: "ENSG00000169083") { id approvedSymbol tractability { modality id value } safetyLiabilities { event eventId biosamples { cellFormat cellLabel tissueLabel tissueId } effects { dosing direction } studies { name type description } datasource literature } } } ```

@chinmehta could you please replace the "crashing query" with the "working query" in the API Platform playground?

prashantuniyal02 commented 1 year ago

It might be a good excuse to update all the example queries with the latest endpoints.

prashantuniyal02 commented 1 year ago

The disease annotation is also not working for the default selected disease as it does not have clinical signs and symptoms.

image

Solution: Replace the disease in the input query: EFO_0000222

Query that works ```query diseaseAnnotation { disease(efoId: "EFO_0000222") { id name phenotypes { rows { phenotypeHPO { id name description namespace } phenotypeEFO { id name } evidence { aspect bioCuration diseaseFromSourceId diseaseFromSource evidenceType frequency frequencyHPO { name id } qualifierNot onset { name id } modifiers { name id } references sex resource } } } } } ```
buniello commented 1 year ago

tagging @chinmehta for this quick change