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

"GAF" download button on search annotation pages no longer works #293

Closed
kltm opened this issue Jan 22, 2016 · 7 comments
Closed

"GAF" download button on search annotation pages no longer works #293

kltm opened this issue Jan 22, 2016 · 7 comments

Comments

@kltm
Copy link
Member

kltm commented Jan 22, 2016

There seems to be two issues with the GAF download button on /seach/annotations.

  1. after clicking and clicking on "Download", nothing happens
  2. do we really want the "?" there as the symbol--that's weird

As reported by @elserj.

@kltm kltm added this to the hotfix milestone Jan 22, 2016
@kltm
Copy link
Member Author

kltm commented Jan 22, 2016

For "1" there, it reports as

TypeError: results_table is undefined

in bbop.widget.display.button_templates.field_download .
I'm guessing a change in the button API at some point has caught up with us.

@kltm kltm modified the milestones: 2.4, hotfix Mar 2, 2016
@kltm
Copy link
Member Author

kltm commented Mar 3, 2016

This may all be mooted by #104 if things work on that side of the fence.

@kltm
Copy link
Member Author

kltm commented Mar 22, 2016

Nope, not mooted, but a slightly more heartening error:

TypeError: results_table.get_selected_items is not a function

kltm added a commit that referenced this issue Mar 23, 2016
@kltm
Copy link
Member Author

kltm commented Mar 23, 2016

The selection error only occurs with the annotation downloads. I'm guessing this is due to annotation IDs being stored like:

"MGI\tMGI:1917253\t1700028I16Rik\t\tGO:0005575\tMGI:MGI:2156816|GO_REF:0000015\tND\t\tC\tRIKEN cDNA 1700028I16 gene\t\tprotein\ttaxon:10090\t20120430\tMGI\t\t\t",

but called like:

%28%22MGI%09MGI:1917253%091700028I16Rik%09%09GO:0005575%09MGI:MGI:2156816|GO_REF:0000015%09ND%09%09C%09RIKEN%20cDNA%201700028I16%20gene%09%09protein%09taxon:10090%0920120430%09MGI%09%09%09%22%29

Is it storing as tabs, or as literal \t? I'm pretty sure it has something to do with a mismatch in there.

@kltm
Copy link
Member Author

kltm commented Mar 23, 2016

Both of these work in the ontology_class download, so unlikely to be something with the parens or quotes:

http://localhost:8080/solr/select?defType=edismax&qt=standard&wt=csv&rows=10000&start=0&fl=id&csv.encapsulator=&csv.separator=%09&csv.header=false&csv.mv.separator=|&fq=document_category:%22ontology_class%22&q=id:GO:0003674
http://localhost:8080/solr/select?defType=edismax&qt=standard&wt=csv&rows=10000&start=0&fl=id&csv.encapsulator=&csv.separator=%09&csv.header=false&csv.mv.separator=|&fq=document_category:%22ontology_class%22&q=id:%28%22GO:0045999%22%29

@kltm
Copy link
Member Author

kltm commented Mar 23, 2016

Well, using luke, the solr index itself has it as tabs, with:

<id:MGI MGI:1922735 1700010B08Rik       GO:0005575  MGI:MGI:2156816|GO_REF:0000015  ND      C   RIKEN cDNA 1700010B08 gene      protein taxon:10090 20100202    MGI         >

So maybe there is a way to figure out how to get these IDs to match (http request into Solr and document id in Solr), but this is such a nasty way to generate IDs I feel like we should just give up here and generate less nasty IDs for annotation documents from the get-go.

@hdietze, do you have any opinion here? While having the IDs "mean" something has been nice, I think I'm good without this in particular (encoding tabs? ugh). Either hashing, UUID, or incremental. Given that we do this in the nasty loader and we already have no self-respect there, another nice unique ID could be:

<time hash (a la noctua)> + <input gaf name> + <input line number>

Simple unique ID, that could still give some interesting info if things went south.

hdietze pushed a commit to owlcollab/owltools that referenced this issue Mar 23, 2016
* deal with problematic tabs, by converting the GAF line to hex
@kltm

* related to issue geneontology/amigo#293
@kltm
Copy link
Member Author

kltm commented Mar 24, 2016

Have finally gotten around to testing. After a refresh of the index (with more sensible IDs), it is working again as expected.

@kltm kltm closed this as completed Mar 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant