feat(esm_catalog): PR-B2 — queryables endpoints (OGC CQL2 filter schema)#1491
Open
siligam wants to merge 1 commit into
Open
feat(esm_catalog): PR-B2 — queryables endpoints (OGC CQL2 filter schema)#1491siligam wants to merge 1 commit into
siligam wants to merge 1 commit into
Conversation
siligam
force-pushed
the
esm-catalog/pr-b1-serve-core
branch
from
June 17, 2026 12:13
7cf3c66 to
646d914
Compare
siligam
force-pushed
the
esm-catalog/pr-b2-queryables
branch
from
June 17, 2026 12:13
e061a3b to
4a672c8
Compare
siligam
force-pushed
the
esm-catalog/pr-b1-serve-core
branch
from
June 17, 2026 15:59
646d914 to
75ce248
Compare
siligam
force-pushed
the
esm-catalog/pr-b2-queryables
branch
from
June 17, 2026 15:59
4a672c8 to
57699a2
Compare
siligam
force-pushed
the
esm-catalog/pr-b1-serve-core
branch
from
June 17, 2026 16:34
75ce248 to
f01c336
Compare
siligam
force-pushed
the
esm-catalog/pr-b2-queryables
branch
from
June 17, 2026 16:34
57699a2 to
ad0c766
Compare
…ctions/{id}/queryables)
Adds OGC CQL2 queryables support required for STAC Browser's "Additional
filters" builder:
- api/queryables.py: fully dynamic property discovery via DuckDB DISTINCT queries;
handles nml:parameters, collection-level props, GHG unit info, paleo display sort
- api/validation.py: is_safe_property_name() SQL-injection guard used by queryables
- api/app.py: wires /queryables + /collections/{id}/queryables with QueryablesCache
- 11 new tests (101 total); no new dependencies
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
siligam
force-pushed
the
esm-catalog/pr-b2-queryables
branch
from
June 17, 2026 17:03
ad0c766 to
aa0bcc5
Compare
Contributor
Author
|
Rebased onto the corrected PR-0 base (#1483) — test relocation to |
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.
Summary
api/queryables.py: fully dynamic property discovery from live DuckDB data — no hardcoded property lists; works for NetCDF global attrs, namelist params, HPC info, and future extensions automaticallyapi/validation.py:is_safe_property_name()SQL injection guard used before any property name is interpolated into SQL/queryablesand/collections/{id}/queryablesintoapp.pywithQueryablesCache(5-minute TTL)What's deferred
/experimentshierarchy routes + paleo time presets/catalogsfederation API + auth middlewareTest plan
GET /queryables→ 200, has$schema,type: object,propertieswithdatetimeGET /collections/{id}/queryables→ 200, scoped to collectionGET /collections/no-such/queryables→ 404🤖 Generated with Claude Code