Skip to content

fix: allow missing ref.toml by falling back to environment defaults#26

Merged
lewisjared merged 2 commits intomainfrom
fix/missing-ref
Apr 9, 2026
Merged

fix: allow missing ref.toml by falling back to environment defaults#26
lewisjared merged 2 commits intomainfrom
fix/missing-ref

Conversation

@lewisjared
Copy link
Copy Markdown
Contributor

Previously get_ref_config raised FileNotFoundError when ref.toml was absent. Now falls back to environment defaults using Config.load(allow_missing=True), matching the rest of the application.

Adds tests for both missing and present ref.toml cases.

Instead of raising FileNotFoundError when ref.toml is absent, delegate
to Config.load with allow_missing=True so the app uses default
configuration values, matching the behavior of the rest of the system.
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 9, 2026

Deploy Preview for climate-ref canceled.

Name Link
🔨 Latest commit c977076
🔍 Latest deploy log https://app.netlify.com/projects/climate-ref/deploys/69d766bd6efdb50008ffba7a

@lewisjared lewisjared merged commit c76605b into main Apr 9, 2026
8 checks passed
lewisjared added a commit that referenced this pull request Apr 10, 2026
* origin/main: (27 commits)
  Bump version: 0.2.2 → 0.2.3
  docs: add changelog entry for PR #28
  fix(security): address high-priority vulnerabilities from security audit
  chore: Cleanup some files
  fix: Use non-root user in Docker runtime image
  Bump version: 0.2.1 → 0.2.2
  fix: Pin astral-sh/setup-uv to v8.0.0
  fix: Use astral-sh/setup-uv@v7 (v8 major tag not yet available)
  chore: Add changelog entry for PR #27
  chore: Update GitHub Actions to Node.js 24 compatible versions
  Bump version: 0.2.0 → 0.2.1
  docs: add changelog entry for #26
  fix: allow missing ref.toml by falling back to environment defaults
  Bump version: 0.1.0 → 0.2.0
  fix: Update the fire chart
  chore: cleanups
  fix: auto-select first available filter value when no default matches
  feat: add region filter dropdown to annual cycle explorer cards
  fix: resolve infinite re-render loop and broken include_unverified toggle
  fix: width of pagination control
  ...

# Conflicts:
#	frontend/src/client/@tanstack/react-query.gen.ts
#	frontend/src/client/schemas.gen.ts
#	frontend/src/client/types.gen.ts
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.

1 participant