greenelab / word-lapse

Explore how a word changes over time
https://greenelab.github.io/word-lapse/
Other
6 stars 3 forks source link

Hot fix for subtle mesh id error #45

Closed danich1 closed 2 years ago

danich1 commented 2 years ago

This follows up on #42 where the backend enable the search by tag name feature. Every non mesh id works, while every mesh id doesn't. Reason for this problem is that mesh ids cover two distinct entity types: chemicals and diseases. To disambiguate the entity type I appended the type to the corresponding ID and this fix attempts to remedy this issue by testing to see which type the mesh id belongs to/see if it is present in the vocab.

Example of the problem: front end sends:mesh_d010051 to backend. Backed checks that specific token; however, it be using this token disease_mesh_d010051 to check the word models.

netlify[bot] commented 2 years ago

Deploy Preview for word-lapse canceled.

Name Link
Latest commit 08277a278b5d3589ad1b865c7af7bbc420ed8543
Latest deploy log https://app.netlify.com/sites/word-lapse/deploys/624efc00cafe2900083582ce