Skip to content

Convert Rwanda Census import to semi-automatic - #2182

Open
rohitkumarbhagat wants to merge 2 commits into
datacommonsorg:masterfrom
rohitkumarbhagat:rwanda_census
Open

Convert Rwanda Census import to semi-automatic#2182
rohitkumarbhagat wants to merge 2 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
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