You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Clemens Wolff
e56699fe1f
Correctly display dataset upload errors
When importing an invalid CSV file that fails data validation, the API
returns the errors wrapped in an array. The current frontend code does
not handle this case and does not display the errors which can be
confusing for users as for example seen in https://github.com/chakki-works/doccano/issues/150.
This change modifies the frontend code to handle error responses wrapped
in an array. The code was tested by uploading the following CSV file:
```
text,label
"","label1"
```
After applying the change, we now correctly render the upload error as
shown in the screenshot below:
[![Screenshot showing dataset upload error response](https://user-images.githubusercontent.com/1086421/56042132-504f3300-5d08-11e9-8ddf-04c8deb2f60b.png)](https://user-images.githubusercontent.com/1086421/56042132-504f3300-5d08-11e9-8ddf-04c8deb2f60b.png)
|
5 years ago |
.. |
classification.jsonl
|
Support meta data import/export
|
5 years ago |
example.csv
|
Add test case(jsonl without label) to file handler
|
5 years ago |
example.invalid.1.csv
|
Add PlainText, CSV, JSONL uploader
|
5 years ago |
example.invalid.2.csv
|
Add PlainText, CSV, JSONL uploader
|
5 years ago |
example.jsonl
|
Add test case(jsonl without label) to file handler
|
5 years ago |
example.txt
|
Add PlainText, CSV, JSONL uploader
|
5 years ago |
labeling.conll
|
Add test case(jsonl without label) to file handler
|
5 years ago |
labeling.invalid.conll
|
Add test case(jsonl without label) to file handler
|
5 years ago |
labeling.jsonl
|
Support meta data import/export
|
5 years ago |
seq2seq.jsonl
|
Support meta data import/export
|
5 years ago |