Skip to content

Fix: deployed portal showed no orgs (data-path resolution) - #12

Merged
TAM-DS merged 1 commit into
mainfrom
portal-fix-data-paths
Nov 14, 2026
Merged

TAM-DS merged 1 commit into
mainfrom
portal-fix-data-paths

Conversation

@TAM-DS

@TAM-DS TAM-DS commented Nov 14, 2026

Copy link
Copy Markdown
Owner

The live portal rendered but the org list was empty.

Cause: the Docker image installs the package into site-packages, but orgs/ (test fixtures) and results/ (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 — so available_fixtures() returned nothing.

Fix: set FIRSTSYNC_ORGS_DIR=/app/orgs and FIRSTSYNC_DEMO_RESULTS_DIR=/app/results in the Dockerfile, so both resolve regardless of where the package sits. (config.py already 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

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
@TAM-DS
TAM-DS merged commit ca24a85 into main Nov 14, 2026
1 check 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