ispras / lingvodoc-react

Apache License 2.0
7 stars 11 forks source link

Import dictionaries: changing field older #776

Closed myrix closed 2 years ago

myrix commented 2 years ago

User reports that when importing CSV dictionary, order of the CSV columns change between the 1st and the 2nd import steps: image image

It would be better if it would stay as it is in the CSV file.

myrix commented 2 years ago

Implemented.

Testing:

Open /import (Dashboard -> Import Excel and Starling dictionaries) signed in as admin, choose 'Таблица 2 Языки мира практики -2 гав.csv', keep first 9 fields: image

Next step, CSV fields are in the same order: image

Choose any Lingvodoc fields in alphabetical order, e.g.: image

Next step, choose any parent language, any name, submit, wait for the conversion to finish, open resulting dictionary, the fields are in the same order: image

nadezhday commented 2 years ago

The order is covered in tests\test_import_starling_dict_02.py