-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Currently mapping Species ID to name/link (for things like reports on 'modeled species' or 'observed species') requires editing the file ./mp/settings_lookup.py, then restarting the app server.
Instead of querying this lookup, the logic should first query a DB lookup table for this information, only referencing this file if no matching records are found (or not at all).
The table should likely look something like this:
- lookupType: ['ecoregion', 'species', 'coa']
- lookupID: <a number - this should NOT be the record ID - leave those detached. Also this should only be unique for their lookupType>
- name:
- hasLink: <bool, default=False>
- link: <str - optional, either a full URL with protocol, or name, deriving the rest of the URL from lookupType:
Reactions are currently unavailable