Skip to content

update: sync philippines ingestion with demo#3

Open
Gyan-Gupta-Rtsl wants to merge 1 commit into
0.5.0from
H360-202
Open

update: sync philippines ingestion with demo#3
Gyan-Gupta-Rtsl wants to merge 1 commit into
0.5.0from
H360-202

Conversation

@Gyan-Gupta-Rtsl

@Gyan-Gupta-Rtsl Gyan-Gupta-Rtsl commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Ticket: Update Philippines Repository with Demo Repository for v0.5.0
Document: HEART360TK Export Functionality Guide

Because

h360tk leaf nodes need to ship aggregated data to a central/national node without requiring direct connectivity between instances.

This addresses

Adds an exporter container service that runs on a configurable cron schedule and exports aggregated data as a ZIP (CSVs + metadata.json). The upload destination is fully configurable — supports local file path, SFTP, and S3 via the UPLOAD_PROTOCOL env var. All settings (EXPORT_CRON, UPLOAD_PROTOCOL, UPLOAD_DEST_PATH, SOURCE_KEY) live in .env for easy per-deployment configuration.

Test instructions

  1. docker compose up -d.Wait for the next schedule trigger.
  2. Confirm a .zip appears in /export on the host (path can be configured via UPLOAD_DEST_PATH in .env for local).
  3. Unzip and verify it contains orgunit.csv, aggregate CSVs, and metadata.json
  4. Check metadata.json has correct source_key, source_version, and timestamps
  5. Set is_central_node=true and confirm no files are generated
  6. Test S3 upload by configuring credentials and confirming the ZIP lands in the s3 bucket
  7. Test SFTP upload by configuring credentials and confirming the ZIP appears on the remote server

@Gyan-Gupta-Rtsl Gyan-Gupta-Rtsl changed the base branch from main to 0.5.0 June 30, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant