Repository navigation
Fix: deployed portal showed no orgs (data-path resolution) - #12
Merged
Merged
Conversation
The Docker image installs the package into site-packages, but the test orgs and the demo proposals live at the repo root (/app/orgs, /app/results). The lookups walked up from the package file, which in a non-editable install points into site-packages, so available_fixtures() came back empty and the deployed portal showed no orgs. Set FIRSTSYNC_ORGS_DIR and FIRSTSYNC_DEMO_RESULTS_DIR in the Dockerfile so both resolve regardless of where the package sits. Added a regression test that the index lists every org when the data dirs are given only via those env vars (the deploy scenario). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ggB2HHn8zjybwfaJG1g3R
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.
The live portal rendered but the org list was empty.
Cause: the Docker image installs the package into site-packages, but
orgs/(test fixtures) andresults/(demo proposals) live at the repo root (/app/orgs,/app/results). The lookups walked up from the package file — which in a non-editable install points into site-packages, not/app— soavailable_fixtures()returned nothing.Fix: set
FIRSTSYNC_ORGS_DIR=/app/orgsandFIRSTSYNC_DEMO_RESULTS_DIR=/app/resultsin theDockerfile, so both resolve regardless of where the package sits. (config.pyalready honored these env vars; nothing else changed.)Added a regression test: the index lists every org when the data dirs are provided only via those env vars — the deploy scenario the unit tests didn't previously cover.
On the live app the same fix was applied immediately via
fly secrets set(durable across deploys); this bakes it into the image so a fresh deploy works with no manual step.Generated by Claude Code