ckan / ideas

[DEPRECATED] Use the main CKAN repo Discussions instead:
https://github.com/ckan/ckan/discussions
40 stars 2 forks source link

DataStore column name mapping #210

Open davidread opened 6 years ago

davidread commented 6 years ago

When importing a CSV into DataStore, the column names are set (by DataPusher/Express Loader) to be the same in the database as they are in the CSV.

This is problematic:

How about we get DataPusher/Express Loader to make some sensible changes to column names before it goes into the database, and then the mapping is saved for:

wardi commented 6 years ago

+1

We could also have datapusher and xloader populate the data dictionaries 'labels' with the original column names.

As for taking a bunch of column names and transforming them into cleaner versions how about adding an action that will "preview" the transformation. That lets sites potentially override it if they have different naming preferences or even revert to the old behaviour if they depend on it.

KatiRG commented 1 year ago

+1 on overriding unidecode(). It is removing French accents from the column headers of our French datasets, which is not what we want. Any plans to allow this? (I left a comment here https://github.com/ckan/ckanext-xloader/issues/145).