Hironsan
422826fdde
Improve test helper
2 years ago
Hironsan
35846a42d4
Move model related to example to example app
2 years ago
Hironsan
7b180e325a
Move code related to example to example app
2 years ago
Hironsan
5eb141e356
Move label type models to label types app
2 years ago
Hironsan
b26b0ec68c
Move code related labels to labels app
2 years ago
Hironsan
a4e57f65b6
Add data property to Example
2 years ago
Hironsan
7a3f9b616b
Move auto labeling code to auto labeling app
2 years ago
Hironsan
e2a99b1b6b
Add created_by field to Project
2 years ago
Hironsan
92b2bf813f
Rename DocType to CategoryType
2 years ago
Hironsan
7a3aed6bd4
Update measure member progress method
2 years ago
Hironsan
6861a38022
Add calc_label_distribution method
2 years ago
Hironsan
1d29c56540
Improve measure_member_progress method
2 years ago
Hironsan
45eae4e614
Add user filter to ExampleStateManager
2 years ago
Hironsan
803e239a68
Add test cases for ExampleState
2 years ago
Hironsan
16466b4804
Remove get_annotation_class method
2 years ago
Hironsan
6a1211ebe6
Turn label model to abstract model
2 years ago
Hironsan
b4d5fa34e6
Divide Label model into two separated model
2 years ago
Hironsan
80397d31b5
Update label unique constraint
3 years ago
Hironsan
5049dfc890
Update unique constraint of Span
3 years ago
Hironsan
b44b35888a
Fix unique constraint
3 years ago
Hironsan
2a325904ec
Update Span model
3 years ago
Hironsan
4a2f680c3f
Add a test case for generating color function
3 years ago
Hironsan
a44cad79f7
Update models to handle image classification
3 years ago
Hironsan
9774d301ef
Update test_models.py
3 years ago
Hironsan
544682876f
Update test cases
3 years ago
Hironsan
08524ff3a6
Remove unused code
3 years ago
Hironsan
a3a054c393
Rename app dir to backend for pip installation
3 years ago
Hironsan
87fa4368fc
Add linter to the workflow
3 years ago
Hironsan
7e4f25941e
Update test cases
3 years ago
Clemens Wolff
9401a469d3
Implement skeleton for speech2text project type
5 years ago
Clemens Wolff
6b0e32e96b
Fix integrity error on SQL Server
Currently we use the unique_together constraint to ensure that if a label has a
shortcut key combination, no other label has the same combination.
However, on SQL Server, the unique_together constraint also looks at null
values which breaks the unique_together constraint since we now can no longer
have two labels without shortcut keys. The error message is as follows:
```
Violation of UNIQUE KEY constraint 'api_label_project_id_prefix_key_suffix_key_1b3d8f77_uniq'.
Cannot insert duplicate key in object 'dbo.api_label'.
The duplicate key value is (32, <NULL>, <NULL>).
```
Moving the validation logic from the database into Django fixes the issue and
makes the constraint clearer.
5 years ago
Hironsan
8713a281d9
Create new app and move codes
5 years ago
Clemens Wolff
5cd3f31783
Speed up failed CI by delaying collectstatic
5 years ago
Clemens Wolff
2bdcada9a7
Collapse Django annotation templates
5 years ago
Hironsan
1d2dfdaa3d
Fix #140
5 years ago
Hironsan
92848809a9
Fix frontend for working with backend
5 years ago
Hironsan
880c179966
Allow document serializer to return annotations
5 years ago
Hironsan
a43738a13a
Divide project and document models into 3 models
Because of polymorphism
5 years ago
Bramble Xu
9e9c5485fc
#61 : make shortcut optional in backend and create new test case
5 years ago
Clemens Wolff
b5ec59693a
Fix all flake8 violations
5 years ago
Hironsan
43b85a6b34
Fix model test error
When testing models, mixer raises an error and assert couldn't catch IntegrityError.
5 years ago
Hironsan
006181e72a
Update ProjectViewSet
6 years ago
Hironsan
2a3e883c15
Change filename
6 years ago
Hironsan
c632fbb634
Add unique constraints to Label model
6 years ago
Hironsan
356c964327
Create tests directory
6 years ago
Hironsan
101e99a8c7
Update project model
6 years ago
Hironsan
e9314e841a
Update model tests
6 years ago
Hironsan
8af0160fdb
Add model tests
6 years ago
Hironsan
9ec31801fa
Update models
6 years ago
Hironsan
7737ab2053
Change directory structure
6 years ago