Skip to content

Conversation

@jclarkin
Copy link
Contributor

@jclarkin jclarkin commented Nov 18, 2025

Closes #99

Adds Gatineau's 2024 municipal financial actuals to Canada Spends ($900M total spending, $164M surplus).

What's Included

  • 2024 Gatineau Financial Actuals: Complete revenue and expense breakdown with full hierarchy
  • Sankey Diagram: Fully functional visualization
  • Extraction Script: data/gatineau/scripts/processor.py for automated PDF processing
  • Documentation: README with setup and usage instructions

Testing

  • ✅ Linter passes
  • ✅ Script executed successfully
  • ✅ All values verified against PDF source
  • ✅ Negative values handled correctly
  • ✅ Single-child categories collapsed appropriately
  • ✅ Sankey diagram renders correctly
localhost screenshot of gatineau page

Notes

  • Both French (llm_extracted.md) and English (llm_extracted_en.md) versions included
  • Processor defaults to English version but supports both

@build-canada-deploy-bot
Copy link

🚨 Preview Deployment Blocked - Security Protection

Your pull request was blocked from triggering preview deployments

Why was this blocked?

  • User: jclarkin
  • Repository: CanadaSpends
  • Permission Level: read
  • Required Level: write, maintain, or admin

How to resolve this:

Option 1: Get Collaborator Access (Recommended)
Ask a repository maintainer to invite you as a collaborator with write permissions or higher.

Option 2: Request Permission Override
Ask a repository administrator to disable security validation for this specific application if appropriate.

For Repository Administrators:

To disable this security check (⚠️ not recommended for public repositories):
Enter to preview settings and disable the security check.


This security measure protects against malicious code execution in preview deployments. Only trusted collaborators should have the ability to trigger deployments.

🛡️ Learn more about this security feature

This protection prevents unauthorized users from:

  • Executing malicious code on the deployment server
  • Accessing environment variables and secrets
  • Potentially compromising the infrastructure

Preview deployments are powerful but require trust. Only users with repository write access can trigger them.

@melkuo
Copy link
Contributor

melkuo commented Nov 18, 2025

Hey @jclarkin, awesome to see your leadership in putting this together!

This seems like budgeted/forecasted data? Our sankeys are made based on actual expenditures. We want to know how the government actually made and spent their money.

I will also say, without diving too deep into the data, I think this could be more granular to make it more interesting/insightful. As a small litmus test, Toronto Spends and Vancouver Spends go "three layers deep" on the expenses side. This involved mashing together granular unaudited data with audited totals.

Check out the wiki here if you haven't already: https://github.com/BuildCanada/CanadaSpends/wiki

@jclarkin
Copy link
Contributor Author

Thanks @melkuo! I will take another stab at this, to try and track down the actuals.

Hopefully (unlike my town) the numbers are online, and not only viewable at a physical office 🥲

@jclarkin jclarkin marked this pull request as draft November 18, 2025 22:29
@jclarkin jclarkin marked this pull request as ready for review November 26, 2025 02:43
@jclarkin jclarkin changed the title Add 2025 Gatineau budget Add Gatineau 2024 Actuals Nov 26, 2025
@jclarkin jclarkin force-pushed the clarkin/gatineau branch 4 times, most recently from bd60675 to 94d70fb Compare November 26, 2025 03:08
@melkuo melkuo requested a review from xrendan November 26, 2025 16:28
@melkuo
Copy link
Contributor

melkuo commented Nov 26, 2025

Awesome!

I get a Page non trouvée when I click on the source in Methodology section.

Nit: the revenue side is so granular such that the layers are all squishy and you have to hover to see the categories. It's not immediately obvious to me how to consolidate, so I'll leave it as a nit.

Otherwise adding in @xrendan for eng review!

@jclarkin
Copy link
Contributor Author

Thanks @melkuo 🖖

I fixed the hyperlink in the methodology section to point to the high-level Gatineau portal that lists all the public financial documents.

As for the granularity, we could just truncate the depth at a max 4 or 5 deep. I was leaning on the "more precision is better" philosophy, but agree that the UI gets a bit spidery when stretched that deep...

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.

Gatineau Spends

2 participants