Closed RabiaSajjad closed 5 years ago
Actually, that question points to csv_data_batch
as a better place to remove the csv_org_extras
columns.
You could add a remove_org_extras=False
option to that function. In ckanext-canada/ckanext/canada/ati.py the org extras returned are used to populate the ATI solr index but for load-csv
we would want to always remove them.
looks like csv_data_batch
is taking care of csv_org_extras
in
https://github.com/open-data/ckanext-recombinant/blob/60cba2e7892ce3d01f444e29c1a7a2da9dfc0cd8/ckanext/recombinant/read_csv.py#L29
No that just prevents an asssert failure when strict=True
Hi Ian, I think strict
is True
by default
Moreover, to test I started over again, delete ati, load the csv as-is, update the fields, migrate the csv and load it back. All completed with no issues. Let me know if you think further changes are required.
Thanks!
The lenient flag can be removed now too