CSV import/export and REST API drop newer columns (og_video, event_data, recipe_data, custom_schema) #101
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The v1.3–v2.0 columns
og_video,event_data,recipe_data, andcustom_schemaexist in the schema but are absent from the CSV import/export column set (com_mokoog/src/Controller/ImportExportController.php) and from the REST API field whitelist (com_mokoog/api/src/View/Tags/JsonapiView.php:26-65). Confirmed: those four column names appear 0 times in either file.Impact
Fix
fieldsToRenderItem/fieldsToRenderListinJsonapiViewand to the API create/update whitelist.Branch created:
feature/101-csv-import-export-and-rest-api-drop-neweFixed in PR #109 (merged to
dev).og_video,event_data,recipe_data,custom_schemaare now in the CSV export/import (appended, so old CSVs still import) and the REST API field whitelist. Import validates the JSON fields as arrays/objects andog_videoas http(s), so a CSV round-trip can't re-introduce the #97 scalar crash. Closing.