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
Hironsan
92f7c5a75c
Implement me API
5 years ago
Clemens Wolff
e7d34efeae
Reduce scope of Swiper include
Currently the Swiper library is referenced in the base template which
means that its CSS and JS get included and loaded on every page.
However, the Swiper functionality is only used on the landing page. This
leads to redundant requests to load the CSS and JS and may even lead to
hard to debug potential issues with clashing JS or CSS.
This change moves the Swiper JS and CSS to only be included on the
landing page.
5 years ago
Clemens Wolff
06b4a32c01
Move from script tags to Javascript imports
Previously some of the Vue code relied on script tags being present in
the host application, to include dependencies such as lodash or marked.
This is not ideal for encapsulation since it means the Vue components
are not self-contained, makes testing harder, etc.
As such, this change replaces the script tag includes with ES6 imports.
Additionally, the lodash dependency (which was used only for debouncing)
is replaced in this change with the vue-debounce library which offers a
debouncing directive. This simplifies the code and avoids potential
gotchas with the this context in the debounced function.
5 years ago
Hironsan
1d2dfdaa3d
Fix #140
5 years ago
sudodoki
4bfa60185d
Fix issue with text import yielding internal server error on StopIteration
5 years ago
Clemens Wolff
45f6fc10f1
Fix all eslint warnings
5 years ago
Clemens Wolff
07d5172b6c
Integrate webpack and django
5 years ago
Hironsan
49d41416e4
Support batch import
5 years ago
Hironsan
bf54c6c5f2
Divide download/upload template
5 years ago
Hironsan
92848809a9
Fix frontend for working with backend
5 years ago
Hironsan
d77ab70bff
Move file handlers from api to utils
5 years ago
Hironsan
2a02881edd
Change method name
5 years ago
Hironsan
c3b0c30355
Delete EntityList and EntityDetail api
Because AnnotationList and AnnotationDetail api can do the same thing.
5 years ago
Hironsan
eb09eb97d2
Support meta data import/export
5 years ago
Hironsan
541af14d13
Add test case(jsonl without label) to file handler
5 years ago
Hironsan
141d1717d6
Delete unnecessary models
5 years ago
Hironsan
b93578d2b7
Implement statistics api
5 years ago
Hironsan
7a95aa9705
Implement document filter for filtering with/without annotation
filter_fields=('seq_annotations__isnull',) is desirable but it can't.
See more detail:
https://github.com/carltongibson/django-filter/issues/743
5 years ago
Bramble Xu
f37fbe4f87
#99 : correct emoji length calculation
5 years ago
Hironsan
14bcb0a703
Add downloader to support csv and json format
5 years ago
Hironsan
739b1b68c7
Add annotation api
5 years ago
Hironsan
fa388ac6ec
Update project serializer mapping
5 years ago
Hironsan
880c179966
Allow document serializer to return annotations
5 years ago
Hironsan
61a4becc0a
Make project model polymorphic
5 years ago
Clemens Wolff
ac5bbb612e
Remove direct import of os module
This makes it more explicit that the environs module should be used to
access environment variables instead of `os.environ` or `os.getenv`
5 years ago
Clemens Wolff
617db50c8c
Add support for dotenv configuration file
5 years ago
Hironsan
5af45811ed
Add file uploader to support plain, csv, json and CoNLL format
Corresponding to issue #11
5 years ago
Hironsan
f4f55b4b03
Add PlainText, CSV, JSONL uploader
5 years ago
Hironsan
04e2e55693
Add file uploader for CoNLL format
Corresponding to issue #11
5 years ago
Hironsan
463129c7e6
Add ordering documents by most/least recently updated annotation
Corresponding issue: #20
5 years ago
Hironsan
2bc95ceecc
Add filter document by label
5 years ago
Hironsan
910e628d9f
Add document filtering and ordering
Corresponding issue: #20
5 years ago
Hironsan
6b8f2a7627
Add updated_at and created_at fields to models
For managing data life cycle
5 years ago
Hironsan
81ff62a6c2
Update url
5 years ago
Hironsan
0e3597130d
Support multiple formats
5 years ago
Hironsan
1c0411a3ce
Add path based versioning
5 years ago
Hironsan
ef8f02dc2b
Add permission to EntityDetailAPI
To disallow project member to update/delete entities labeled by another member
5 years ago
Hironsan
0e3f97154e
Add entity api
5 years ago
Hironsan
a47b853c7c
Add project API
5 years ago
Hironsan
1807b87892
Refactor api and add test cases
5 years ago
Hironsan
654e0c619a
Aggregate API tests
5 years ago
Hironsan
accbaa83b1
WIP
5 years ago
Hironsan
a43738a13a
Divide project and document models into 3 models
Because of polymorphism
5 years ago
Bramble Xu
14e3437722
#61 : make shortcut optional in front and show simplified shortcut
5 years ago
Bramble Xu
9e9c5485fc
#61 : make shortcut optional in backend and create new test case
5 years ago
Bramble Xu
0b11e60ef1
#61 : fix typo
5 years ago
Hironsan
977291e059
Fix #83
5 years ago
Clemens Wolff
5e73682366
Remove auto-generated bundle files
5 years ago
Clemens Wolff
821ec0ec87
Automate bundle creation
5 years ago