Skip to content

Convert Rwanda Census import to semi-automatic - #2182

Merged
rohitkumarbhagat merged 4 commits into
datacommonsorg:masterfrom
rohitkumarbhagat:rwanda_census
Aug 28, 2026
Merged

Convert Rwanda Census import to semi-automatic#2182
rohitkumarbhagat merged 4 commits into
datacommonsorg:masterfrom
rohitkumarbhagat:rwanda_census

Conversation

@rohitkumarbhagat

Copy link
Copy Markdown
Contributor

Description

  • Convert Rwanda_Census import to semi-automatic by updating manifest.json and adding GCS-based download.sh.
  • Update documentation in README.md.
  • Refactor util/xml_to_json.py to use absl.app and add unit tests in util/xml_to_json_test.py.

Switch Rwanda census download to GCS and update manifest/README.
Refactor xml_to_json to use absl.app and add unit tests for error handling.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Rwanda Census ingestion workflow by introducing a local GCS download script, updating the README documentation, and refining the manifest. It also refactors the xml_to_json.py utility to use absl.app and improves its test coverage. The review feedback recommends explicitly specifying UTF-8 encoding when opening files, using .strip() to robustly handle whitespace-only XML files, avoiding noisy logging on CLI usage errors, and adding a unit test for empty inputs.

Comment thread util/xml_to_json.py Outdated
Comment thread util/xml_to_json.py Outdated
Comment thread util/xml_to_json_test.py
Comment thread statvar_imports/opendataforafrica/rwanda_census/manifest.json
@rohitkumarbhagat
rohitkumarbhagat merged commit 7b0ec34 into datacommonsorg:master Aug 28, 2026
14 checks passed
@rohitkumarbhagat
rohitkumarbhagat deleted the rwanda_census branch August 28, 2026 09:26
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.

2 participants