Repository navigation
Bump APP_VERSION to v43 to rebuild with the district map changes - #236
Merged
Merged
Conversation
#235 changed the front end but not APP_VERSION, so the deploy reused the cached v42 app build and the live site still has the old district map. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PavelMakarchuk
approved these changes
Dec 3, 2026
PavelMakarchuk
left a comment
Contributor
There was a problem hiding this comment.
Review at fb0fc7e
This PR changes APP_VERSION in modal_app.py from v42 to v43. The Modal image caches its app-build layer on that value. #235 changed the front end but did not change the value, so the deploy after its merge reused the old v42 build. The bump makes the next deploy clone main and build the app again.
Verdict: APPROVE
SUGGESTION
- modal_app.py:22: tie the cache key to the commit instead of a manual counter. Since #235, #240 also changed the front end (
src/lib/datasetLabel.jsand others) without a bump, so the live site misses two PRs now. Each front-end PR needs a bump that is easy to forget. One follow-up option: set the key from the commit SHA that the deploy workflow checks out, and clone that exact SHA. That also removes the race that the comment above line 22 describes. This is follow-up work, not a change for this PR.
What I checked
- The change is still needed. Main (
cdaec13) still hasAPP_VERSION = "v42". No commit on main changed it after #235. - The live site is stale. I fetched the live tracker and all its JavaScript chunks, which include the lazy-loaded chunks. The district map chunk is there, but it does not contain the "Congress districts" label that #235 added. A local build of main with this PR contains that label in the same chunk. So the live site still serves the build from before #235.
- The deploys ran. The Modal deploy workflow succeeded for the #235 merge (2026-11-25, 11:20am EST) and for the #240 merge (2026-12-02, 3:28pm EST). Both reused the cached v42 build.
- Conflicts. The PR branch is one commit behind main (#240). It merges onto main without conflicts. It also merges cleanly with the other open PR that changes
modal_app.py(#231). - Build.
bun run buildon main plus this PR: passes. - No CI checks run on this branch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#235 changed the front end but not
APP_VERSION, so the Modal deploy that ran on its merge reused the cached v42 app build. The live tracker still serves the old district map.This bumps
APP_VERSIONto v43 so the next deploy rebuilds the app layer from main.After it merges, I'll check that the live Districts tab shows the new header ("119th Congress districts"). If it doesn't, the clone may have raced the push, as
modal_app.pywarns, and I'll bump again on a fresh commit.🤖 Generated with Claude Code