Alexey Matveev
4c194289e4
#FIX Lambda may not be necessary
5 years ago
Alexey Matveev
a07dd1863b
Use library conllu
5 years ago
rbinrais
00d1f5ea3a
Adds middlware that enables automatic login based on HTTP headers
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
Guillim
3e7234e2a6
We go on with authentification:
- we set up python restriction related to the environment variable
"allow_signup"
- we clean a bit html code in base_auth.html
- we allow switch between signin and signup
5 years ago
Guillim
d7ccf5789a
Env variables:
We want to allow the admin to choose wether the users can signin in by
themselves, or if only the admin can do it. We will later implement it
in the python code
Here we have to modify
- docker-compose.yml : add the env ALLOW_SIGNUP
Note: I am not sure if it's True or "True"
Note: we could have put it inside the Dockerfile instead of
docker-compose, it doesn't matter.
- settings.py : Here we make the env variable available to the python
app
- app.json : that's for the heroku deployment. we simply describe to
heroku that we have an env variable
5 years ago
Guillim
e1e82a06ad
We finally make URLs available to the whole application
5 years ago