Skip to content

[PULL REQUEST] Update DOF Sources#235

Merged
GregorSchroeder merged 1 commit into
mainfrom
234-feature-update-dof
May 15, 2026
Merged

[PULL REQUEST] Update DOF Sources#235
GregorSchroeder merged 1 commit into
mainfrom
234-feature-update-dof

Conversation

@GregorSchroeder
Copy link
Copy Markdown
Contributor

Describe this pull request. What changes are being made?

As we prepare to run and release the 2025 Annual Population and Housing Estimates we need to ensure all Estimates and Projections we use from the California Department of Finance (CA DOF) have been updated to the most recently released versions.

What issues does this pull request address?

closes #234

Additional context

https://dof.ca.gov/forecasting/demographics/estimates/
https://dof.ca.gov/forecasting/demographics/projections/
https://github.com/SANDAG/CA-DOF

The most recently released products are as follows:

  • Vintage 2026 (2026.03.13) projections stored as [projections_id]=16
  • Vintage 2026 (2026.5.1) Estimates E-5 stored as [estimates_id]=29
  • May 2025 Estimates E-8 stored as [estimates_id] = 27

@GregorSchroeder GregorSchroeder requested a review from Copilot May 15, 2026 18:02
@GregorSchroeder GregorSchroeder self-assigned this May 15, 2026
@GregorSchroeder GregorSchroeder added the enhancement New feature or request label May 15, 2026
@GregorSchroeder GregorSchroeder linked an issue May 15, 2026 that may be closed by this pull request
Copy link
Copy Markdown
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

Updates the CA Department of Finance source identifiers used across the SQL queries so the 2025 Annual Population and Housing Estimates run uses the most recently released DOF products (E-8 May 2025, E-5 Vintage 2026, and P3 Vintage 2026). Also extends the "Unincorporated" area-name mapping to accommodate the new estimates' labeling.

Changes:

  • Bumped estimates_id from 24→27 (E-8) and 25→29 (E-5) in the three jurisdiction control SQL files, with updated comments reflecting the new vintage.
  • Expanded the area_name CASE to also match 'Unincorporated' (in addition to 'Balance of County') when mapping to "Unincorporated San Diego County".
  • Bumped projections_id from 11→16 (P3 Vintage 2026) in the regional ASE total query.

Reviewed changes

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

File Description
sql/pop_type/get_jurisdiction_controls_hhp.sql Updates E-8/E-5 IDs and adds 'Unincorporated' area_name mapping for household population controls.
sql/pop_type/get_jurisdiction_controls_gq.sql Updates E-8/E-5 IDs and adds 'Unincorporated' area_name mapping for group quarters controls.
sql/hs_hh/get_jurisdiction_controls_hh.sql Updates E-8/E-5 IDs and adds 'Unincorporated' area_name mapping for vacancy rate controls.
sql/ase/get_region_ase_total.sql Updates P3 projections ID to the Vintage 2026 release for region ASE totals.

Note: reporting/check_controls_jurisdiction.sql still references the prior IDs (24 and 25). This file is outside this PR's diff, but you may want to verify whether it should also be updated as part of this DOF source refresh.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Eric-Liu-SANDAG
Copy link
Copy Markdown
Contributor

Are we 100% certain that these are the actual final versions? I know DOF sometimes releases fixes or revisions of previously released data. Why don't we wait until we are actually running 2025 Estimates to update these values?

@GregorSchroeder
Copy link
Copy Markdown
Contributor Author

If there's a newer release we will load and update. I highly doubt there will be, but we can always update later.

@GregorSchroeder GregorSchroeder merged commit 4a09bfc into main May 15, 2026
2 checks passed
@GregorSchroeder GregorSchroeder deleted the 234-feature-update-dof branch May 15, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Update DOF Estimates and Projections

3 participants