Conversation
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
This PR strengthens the DHIS2 org-unit collection integration by pushing query work down to DHIS2 while keeping an OGC-facing API shape. It also hardens field projection behavior, adds mapping docs/examples, and reduces local dev noise from Prefect during reload.
What changed
query_organisation_units) with configurable params.dhis2-org-unitsprovider behavior:eq,in,like/ilike,and).page,pageSize) when possible.all=trueextension mapped topaging=false.propertiesdrives standard projection.dhis2_fieldsenables dynamic DHIS2-native projection.idin projected fields to keep valid GeoJSON features.parent[id,name]).include_extra_query_parameters: truefor DHIS2 providers.EO_API_ENABLE_PREFECTtoggle to disable Prefect app/lifespan in local reload workflows.docs/dhis2-ogc-mapping-spec.mdsample_data/ADM1.geojsonscripts/run_chirps3_pipeline_with_geojson.pytests/test_dhis2_common.pyfor query options,all=true, ID enforcement, nested field parsing, projection behavior, and CQL translation.Why
path, nestedparent[...]).--reload.Example requests
/ogcapi/collections/dhis2-org-units/items?filter=level=2&properties=name,code,level/ogcapi/collections/dhis2-org-units/items?filter=level=2&dhis2_fields=name,code,level,path,parent[id,name]/ogcapi/collections/dhis2-org-units/items?filter=level=2&all=true&dhis2_fields=id,name,path,geometryNotes
propertiesremains validated by pygeoapi (strict/OGC-safe).dhis2_fieldsis the intended dynamic projection path for DHIS2-specific fields.