Closed ll-zerr closed 1 week ago
@ll-zerr this seems like it's almost ready to get merged in! There are a few refactoring opportunities that @veryeli highlighted, which we should document as follow-up issues, and we might want to make some quick changes before merging this in.
Maybe we can all join a tech hang this week to discuss / make the issues & quick changes / get this merged in? I'll be at both :)
What changed?
Breaking tasks from PR #66 into smaller pieces to populate Strapi collections. This particular pull request partially resolves Issue #48, populating the
Geo.Region
andGeo.Subregion
collections in Strapi.Still to do:
NeedsAssessment.Need
collection:NeedsAssessment.Survey
Product.Item
NeedsAssessment.Need
collection with the required data.Thought: We may want to create seperate issues for each of the above noted tasks allowing multiple contributors to work on the final objective.
How can you test this?
Add the attached needs-data.json file to the
src/scripts/import-needs-assessment-data
folder, setup thesrc/scripts/.env
file, then run the dev server in one terminal andyarn script:import-needs-assessment-data
in another. The logs should show you that 5 regions and 9 subregions were either created or already exist.