fix: allow missing ref.toml by falling back to environment defaults#26
Merged
lewisjared merged 2 commits intomainfrom Apr 9, 2026
Merged
fix: allow missing ref.toml by falling back to environment defaults#26lewisjared merged 2 commits intomainfrom
lewisjared merged 2 commits intomainfrom
Conversation
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.
✅ Deploy Preview for climate-ref canceled.
|
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
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.
Previously
get_ref_configraisedFileNotFoundErrorwhenref.tomlwas absent. Now falls back to environment defaults usingConfig.load(allow_missing=True), matching the rest of the application.Adds tests for both missing and present
ref.tomlcases.