bcgov / workbc-ssot

WorkBC single source of truth
Apache License 2.0
1 stars 1 forks source link

SSoT

This is the WorkBC Single Source of Truth (SSoT) API service.

Lifecycle:Experimental

Architecture

Development

Data ingestion

Please refer to migration/README.md.

Updating SSoT for WorkBC

Triggering a data sheet rebuild

Using GitHub Repository Dispatch API call, a data sheet rebuild can be triggered. At the moment, only dataset monthly_labour_market_update is supported.

The following steps are carried out by the rebuild:

curl -L \
  -X POST \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/repos/OWNER/REPO/dispatches \
  -d '{"event_type":"monthly_labour_market_update","client_payload":{
    "branch": "Branch where rebuild should happen",
    "filename": "Filename of the existing data sheet in migration/data",
    "year": "Numeric value of the period year of the target dataset",
    "month": "Numeric value of the period month of the target dataset",
    "date": "Full date of production/reception of the data sheet in YYYY/MM/DD hh:mm format (UTC timezone)",
    "notes": "Commit message to update files into GitHub"
  }}'