Skip to content

Conversation

@rhunwicks
Copy link
Contributor

No description provided.

Francophone BSS have `à` in row 4 in the WB worksheet in the summary columns
(`synthèse | de | à`). And `a` is an alias for the B/O Wealth Group Category (from
Aisé). So the previous code was matching that and thinking the data was for B/O
instead of part of the WB summary.
@rhunwicks rhunwicks requested a review from Copilot October 2, 2025 18:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds ensure_ascii=False parameter to all json.dumps() calls throughout the codebase to properly handle non-ASCII characters in JSON serialization. It also includes a minor refactoring to replace a try-except block with a conditional check in the baseline.py file.

  • Adds ensure_ascii=False to all JSON serialization calls to preserve Unicode characters
  • Refactors exception handling in wealth group data processing to use conditional logic
  • Updates JSON formatting in temporary file writing for Django fixture imports

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pipelines/resources.py Adds ensure_ascii=False to JSON output resource serialization
pipelines/assets/wild_foods.py Updates JSON metadata preview to preserve Unicode characters
pipelines/assets/wealth_characteristic.py Updates JSON previews in two functions to handle Unicode properly
pipelines/assets/other_cash_income.py Adds Unicode support to JSON metadata preview
pipelines/assets/livelihood_activity.py Updates JSON previews in two functions for Unicode handling
pipelines/assets/fixtures.py Adds Unicode support to multiple JSON operations including fixture generation
pipelines/assets/baseline.py Updates JSON previews and refactors try-except to conditional check

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@rhunwicks rhunwicks merged commit b08eed7 into main Oct 2, 2025
9 checks passed
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