distributeaid / aggregated-public-information

https://aggregated-public-information.vercel.app
1 stars 4 forks source link

feat(data-ingestion): Upload regions and subregions from needs data to the collections in Strapi #112

Closed ll-zerr closed 1 week ago

ll-zerr commented 2 months ago

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 and Geo.Subregion collections in Strapi.

Still to do:

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 the src/scripts/.env file, then run the dev server in one terminal and yarn script:import-needs-assessment-data in another. The logs should show you that 5 regions and 9 subregions were either created or already exist.

jtfairbank commented 2 weeks 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 :)