gyorilab / indra_db

A Database-based knowledge back-end built on and for INDRA. The INDRA Database is a service that can be set up by any user with their own content and knowledge access. Our implementation of the database is the back-end to many of our projects, providing a vast and detailed knowledge base derived from many resources.
GNU General Public License v3.0
16 stars 10 forks source link

Populate source groups lists from source info resource #193

Closed bgyori closed 2 years ago

bgyori commented 2 years ago

This PR fixes an issue related to the SOURCE_GROUPS variable in readonly_schema.py which is used to (1) determine has_db and has_rd status based on evidence source counts and (2) construct filter conditions in the query module. Since SOURCE_GROUPS was not up to date with the sources appearing in INDRA and INDRA DB there were cases where (1) and (2) didn't operate correctly, e.g., image

This PR populates the SOURCE_GROUPS data structure dynamically based on INDRA's source info resource, and applies appropriate mappings to cover source names as they appear in the DB.