You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add shapefile version and error count to upload metadata (C-15) #12
Both dsm.upload_data() calls in _save() carry metadata but lack enrichment provenance. An enrichment timestamp was added, but the following are still missing:
Shapefile version/hash (which GAUL/Natural Earth version produced the assignments)
Enrichment error count (how many GIDs had geometry errors or were unmapped)
Unmapped cell count
Without this, the FAO cannot audit the quality of received data or detect when a shapefile update changed assignments between deliveries.
Requirements
Add shapefile version identifier to upload metadata (at minimum, a hash or modification date of the loaded shapefiles)
Add enrichment error count if batch failures occurred
Determine whether upload_data() API supports additional metadata fields, or if description is the only free-text field
If ADR-011 is implemented (precomputed lookup table), the provenance becomes the lookup table's version/hash instead of shapefile metadata. The requirement for provenance remains regardless of enrichment method.
Closing as superseded by #56 (2026-06-24). This issue (C-15) predates ADR-011 and asks for a shapefile version + error count in upload metadata — but the shapefile mapper was deleted (C-39, PR #42), so 'shapefile version' no longer exists. The lookup-based equivalent — structured provenance in the upload metadata (lookup_version, region, expected/actual cell count, unmapped count) — is now #56 (S5 of the FAO input-integrity epic #51). Superseded; tracking moves there.
Activity
Polichinel commentedon Jun 24, 2026
Closing as superseded by #56 (2026-06-24). This issue (C-15) predates ADR-011 and asks for a shapefile version + error count in upload metadata — but the shapefile mapper was deleted (C-39, PR #42), so 'shapefile version' no longer exists. The lookup-based equivalent — structured provenance in the upload metadata (
lookup_version, region, expected/actual cell count, unmapped count) — is now #56 (S5 of the FAO input-integrity epic #51). Superseded; tracking moves there.