Open cesarvarela opened 10 months ago
Per offline (online?) discussion, the need for dynamic graphQL queries results from:
value_json
) in the classifications
documents don't come with a "type" sibling.taxa
document the classification derives from, using either the mongto_type
or display_type
fields on the field_list
of the taxa.The questions are:
Option 1
Option 2
Option 3
Code lives in Atlas App Services, not GitHub. This makes it more difficult to test and maintain.
Although code is run there, it is being version controlled: https://github.com/responsible-ai-collaborative/aiid/tree/master/site/realm and deployed via https://github.com/responsible-ai-collaborative/aiid/blob/master/.github/workflows/realm-production.yml
We also have some unit tests for them: https://github.com/responsible-ai-collaborative/aiid/tree/master/site/gatsby-site/cypress/e2e/unit/functions
@kepae
Good point, thanks for the definitive correction on that -- we already maintain, test, and push code to realm/app services here in the repo.
From yesterday's discussion:
JSON.stringify
valuevalue
field to classification attributes by creating a migration that stores the JSON.parse
d value from the value_json
attributevalue
field up to datecollection.find
), and returns the resultsOnce this is done, we can go back to #2047
With the advent of #2047, we must perform complex queries on the
classifications
collection and support dynamic graphQL schemas built from the definitions found in thetaxas
collection.Current Architecture
Classifications collection schema
Update Option 1
Update Option 2