thechiselgroup / biomixer

BioMixer
http://bio-mixer.appspot.com/
16 stars 13 forks source link

Filter Out Private Ontologies in Ont Overview #456

Open everbeek opened 9 years ago

everbeek commented 9 years ago

I believe I tried to deal with private ontologies showing up in the ontology overview before, and could not. I want to look at that again, because it is unsightly to have 'fetching' nodes sticking around.

everbeek commented 9 years ago

I changed some of the parsing, but I cannot filter more of them out. The browser catches 404 and 403 errors, even though the REST gives back json formatted data that I would use if I could (see http://data.bioontology.org/ontologies/GPI/metrics?apikey=efcfb6e1-bcf8-4a5d-a46a-3ae8867241a1 for an example).

Other than using a timer, which I am hesitant to use, there isn't a way to do this as long as I am using jsonp. Which leads me again to wonder if CORS would allow me to get this json formatted 403, and 404s, so that I may know when they occur... (#355)

everbeek commented 9 years ago

325 seems like a duplicate. I am going to look at the API docs to see if I can indeed figure out in advance what ontologies would give us 403 errors.

Note that SCTSPA ontology shows up in RCD mappings, gets its name and metrics, but doesn't show up in the /ontologies query. This is how I currently predict 403, which means it gives me false positives. Not good. Be sure to remove that approach when I have a better way.