Admin-only DwC-A export (taxa + localities + occurrences)#1152
Admin-only DwC-A export (taxa + localities + occurrences)#1152karilint wants to merge 23 commits into
Conversation
|
Pushed follow-up commit
Validation run locally:
|
|
Pushed commit Summary:
Validation:
|
|
Follow-up for the occurrence export OOM: added commit What changed:
Validation:
|
|
Follow-up: added commit What changed:
Validation:
|
|
Follow-up: added commit This fixes the dev backend crash where Validation:
|
|
Follow-up: added commit This fixes the occurrence detail crash where Validation:
|
|
Follow-up: added commit I swept for the remaining places that could hit the same Prisma zero-date failure from Found and addressed:
Also checked remaining Validation:
|
Implements the first, admin-only Darwin Core Archive (DwC-A) exports for taxa, localities, and occurrences (v1).
Taxa export
GET /species/export/dwc-archive(Role.Admin only) returns a ZIP withtaxon.csv,measurementorfact.csv,meta.xml,eml.xml./speciesfor admins only.Locality export
GET /locality/export/dwc-archive(Role.Admin only) returns a ZIP withlocation.csv,geologicalcontext.csv,measurementorfact.csv,meta.xml,eml.xml./localitiesfor admins only.Occurrence export
GET /occurrence/export/dwc-archive(Role.Admin only) returns a ZIP withoccurrence.csv,measurementorfact.csv,location.csv,geologicalcontext.csv,taxon.csv,meta.xml,eml.xml./occurrencefor admins only.now_lsMeasurementOrFact rows prefixverbatimMeasurementTypevalues withnow_ls.so fields such asbody_mass,mesowear,mw_value, andmicroweardo not collide withcom_speciesmeasurements.Tests
Docs
documentation/functionality/dwc_export.mddocumentation/functionality/dwc_export_localities.mddocumentation/functionality/dwc_export_occurrences.mdFixes #1150.