Clemens Wolff
33f3f17c39
Remove Google Analytics from Azure deployment
5 years ago
Guillim
72a0e04742
We fix the test for the authentification: reusing the setenv function defined in the api package in order to set the proper environment for the test
5 years ago
Federica Nocera
48c7ec5441
Now referencing same class for random-color-button.
5 years ago
Federica Nocera
194863532d
Fixed bug with color randomizer button in edit.
5 years ago
Clemens Wolff
b2848b089d
Fix pug
5 years ago
Federica Nocera
ca88194c36
Added color dropdown to help choose contrasting colors for the labels.
5 years ago
Clemens Wolff
7e30a1e756
Create admin if it doesn't exist
5 years ago
Clemens Wolff
ddef7de35e
Switch to Python 3 superclass method calling
5 years ago
Clemens Wolff
34028ded09
Add viewer pane for source document
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
Clemens Wolff
47bbb741d2
Add support for SQL Server database
5 years ago
Federica Nocera
286ea9e04c
Refactored label_per_data using managers.
5 years ago
Federica Nocera
6455754bfa
Fix progress bar so that it shows number of labelled documents for seq2seq and added field to allow for seq2seq export.
5 years ago
Guillim
a713dd136a
Following Hironsan review, did some change.
5 years ago
Clemens Wolff
4515228f82
Use production labeling canvas for demo pages
5 years ago
Clemens Wolff
61fd6771e7
Make null checks work with undefined variables
5 years ago
Clemens Wolff
8886438f33
Remove rootUrl
5 years ago
Clemens Wolff
b9d6fc95e5
Use same http client for all non-standard calls
5 years ago
Guillaume Claret
b3c6397b04
Add page counter
5 years ago
Guillaume Claret
2df32639fe
Add highlight of the search results
5 years ago
Clemens Wolff
ed3a6f1078
Fix display of label shortkey preview
5 years ago
Clemens Wolff
7bb343ad7d
Simplify queryset handling in list APIs
5 years ago
Guillim
e6702f23f4
test new assertEqual instead of assertRedirect which cause travis CI to fail for some webpack obscur reason.
5 years ago
Guillim
a52d13252e
Small fix in order to follow Circle CI instruction
5 years ago
Guillim
d59a512b83
codacy fix (unused import)
5 years ago
Guillim
8e6d16e6cf
we set up all tests required to reach almost 100% of code coverage for the authentification part
5 years ago
Guillim
0df433fd1e
changing the wording, and making sure we add specific simple SPAN tags to better test our code
5 years ago
Guillim
aa9466a592
missing import
5 years ago
Guillim
736417fb04
typo fix
5 years ago
Guillim
de1ec07b09
typo fixing:
The TestSite Team -> The Doccano Team
5 years ago
Guillim
9ba9321f63
small typo about the filter:
before it was printing a class "[] input"
instead of "input"
5 years ago
Guillim
6c248bfd58
PEP8 fixes
5 years ago
Guillim
924068c5dd
we set up the first test for authentification
5 years ago
Clemens Wolff
d0c566c5ab
Add admin button to approve/reject labels
5 years ago
Clemens Wolff
c2fbe77447
Move rootUrl constant to http utils
5 years ago
Guillim
0c3e5f535a
small typo modif or -> and
5 years ago
Guillim
d8a132d3c0
we add a verification that the email is already configured to avoid an error while creating a user and sending a confirmation email
5 years ago
Guillim
04ee45aeff
typo modif
5 years ago
Hironsan
cb1dce916a
Remove unused variables
5 years ago
Hironsan
8713a281d9
Create new app and move codes
5 years ago
Guillim
7f28808f66
We try another way to specify the backend to the login function. Even though the original code mentions it is possible : https://docs.djangoproject.com/en/2.2/_modules/django/contrib/auth/#login
5 years ago
Guillaume Claret
3cfa22f5f3
Add a tooltip under each annotation to name them
5 years ago
Guillim
57f8097b80
it's a small fix: when there was an error in the signup form, the redirection to signup was without allow_signup, wich triggered a weird "you can't singup" message.
5 years ago
Guillaume Claret
a1565a212f
Use map to get the document annotations
5 years ago
Guillaume Claret
5bc61192ff
Use find to get the annotation of a label
5 years ago
Guillim
a6ea2a772a
coding style fixes
5 years ago
Guillim
80d041236f
coding style
fixing the coding style issues as reported by reviewer
5 years ago
Guillim
b68f11525f
we fix some coding style issues following the PR
5 years ago
Guillim
3038639092
we add some lines for emailing possibilities
5 years ago
Guillim
01ba541ce9
fixing trailing spaces (PEP8 requirement)
5 years ago