Maria-Liakata-NLP-Group / annotations-interface

New iteration of the Annotations Interface tool
MIT License
0 stars 0 forks source link

Create an admin interface #7

Closed dsj976 closed 1 year ago

dsj976 commented 1 year ago

Both annotators and admins should be able to upload datasets. In a local deployment, the annotator might want to add their dataset to the local database. If running on Azure, with the database hosted on Azure, only admins should have access to the database and they should upload the datasets to be annotated by the annotators.

Check out this tutorial.

dsj976 commented 1 year ago

Finally followed this tutorial, as it did not require changing from Flask-Login to Flask-Security, which would have required significant code change. The admins are identified automatically by their email address when they register. The email addresses of people who should be assigned the admin role are stored as environment variables - that's how they are automatically identified upon registration.

dsj976 commented 1 year ago

With commit f54e81f, the upload dataset form now lets admins choose who the annotator of the dataset will be. Regular users, simply referred to as "annotators", can only select themselves as annotators for the datasets they upload.

dsj976 commented 1 year ago

The admin can now assign multiple annotators to the same dataset