-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Milestone
Description
Context
The source-manager communities table is empty. Minoo's backfill script needs communities with inac_id populated to match against local community records and store NC UUIDs.
The seed-communities CLI tool exists (source-manager/cmd/seed-communities/main.go) but:
- It's not built into the Docker image (only the main
source-managerbinary is included) - No CIRNAC CSV file is on the server
Steps
- Download CIRNAC First Nations data CSV from the government open data portal
- Either:
- Option A: Build
seed-communitiesinto the Docker image and exec inside the container - Option B: Run
seed-communitiesfrom outside Docker with DB credentials pointing at the exposed Postgres port
- Option A: Build
- Run
seed-communities --csv=<path>to populate the communities table - Optionally run
seed-municipalitiesfor municipal data
Acceptance Criteria
-
GET /api/v1/communities?limit=5returns community data - Communities have
inac_idpopulated (needed for Minoo sync) - At least 600+ First Nation communities seeded
Reactions are currently unavailable