Updating condition category mapping work in database-services #112
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PULL REQUEST
Summary
Per conversation in 11/4 call, we do not want to use an API call for conditions data. To do this instead, I have opted ot try to use one call in the database-services.ts to ensure we have the main JSONs we should need:
We could plausibly do this one with just the first JSON if we want to have additional transformation work, but because each of these should be negligible in size, it seems better to just do the work here?
Related Issue
Fixes https://linear.app/skylight-cdc/issue/QUE-26/expose-category-information-to-the-frontend.
Additional Information
Checklist