aboutsummaryrefslogtreecommitdiff
path: root/scripts/search_phenotypes.py
AgeCommit message (Expand)Author
2023-04-19oauth2: Link the phenotype traits to user groups.Frederick Muriuki Muriithi
2023-04-19Fix minor linting and typing issuesFrederick Muriuki Muriithi
2023-04-19auth: Setup selected traits correctly...Fix bugs with setting up of the selected traits for use while filtering the search results. Frederick Muriuki Muriithi
2023-04-18auth: Consistently JSON encode values....Consistently encode all values for the top-level keys stored in redis to avoid issues with json encode/decode Frederick Muriuki Muriithi
2023-04-17Hook up code to use external search script for phenotypesFrederick Muriuki Muriithi
2023-04-14auth: Add external script to search for phenotypes...We need a search through the available phenotype traits in the database when linking the traits to user groups. Unfortunately, the Xapian Search indexes do not (and should not) include the internal identifiers we use to disambiguate the traits. On the other hand, we do not want to present the user with traits that have already been linked to any user group within the search results. The script in this commit, together with the modified queries for fetching the phenotype data form a "hack" of sorts to wrap around the way the search works while ensuring we do not present the user with "non-actionable" (linked) traits in the search results. Frederick Muriuki Muriithi