beat.web merge requestshttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests2020-09-28T12:54:09Zhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/395Pin djangorestframework version2020-09-28T12:54:09ZSamuel GAISTPin djangorestframework versionDjango REST framework 3.12 was released but the drf-yasg does not yet support it thus pin the package version to keep things running properly.Django REST framework 3.12 was released but the drf-yasg does not yet support it thus pin the package version to keep things running properly.Django 3 migrationFlavio TARSETTIFlavio TARSETTIhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/394Migrate urls files2020-09-28T12:40:19ZSamuel GAISTMigrate urls filesThis merge request migrates all the URLs to the new Django style using either path or re_path.
It also simplify the setup of the API URLs.This merge request migrates all the URLs to the new Django style using either path or re_path.
It also simplify the setup of the API URLs.Django 3 migrationFlavio TARSETTIFlavio TARSETTIhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/393Proper cleanup account supervision check migration2020-09-28T06:58:15ZFlavio TARSETTIProper cleanup account supervision check migrationThis MR proposes a better cleanup of the migration that was used to shift users to the new supervision ecosystem.
It also avoids the issue encountered with https://gitlab.idiap.ch/beat/beat.web/-/merge_requests/388 and https://gitlab.id...This MR proposes a better cleanup of the migration that was used to shift users to the new supervision ecosystem.
It also avoids the issue encountered with https://gitlab.idiap.ch/beat/beat.web/-/merge_requests/388 and https://gitlab.idiap.ch/beat/beat.web/-/merge_requests/391
Fixes #569Django 3 migrationSamuel GAISTSamuel GAISThttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/392Fix url prefix usage yearly account revalidation2020-09-28T07:56:14ZFlavio TARSETTIFix url prefix usage yearly account revalidationThis MR fixes the url prefix usage for the yearly account revalidation command
Fixes #570
Part of #558This MR fixes the url prefix usage for the yearly account revalidation command
Fixes #570
Part of #558Django 3 migrationSamuel GAISTSamuel GAISThttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/390Fix name handling in broker callbacks2020-09-25T15:23:41ZSamuel GAISTFix name handling in broker callbacksWith the evolution of the bytes/string handling in Python and Django, filtering the database on a CharField with a byte does not work as before.
This patch thus ensure that the name of the worker passed to the callback is converted to...With the evolution of the bytes/string handling in Python and Django, filtering the database on a CharField with a byte does not work as before.
This patch thus ensure that the name of the worker passed to the callback is converted to a string before doing any database query.
Part of #561Django 3 migrationFlavio TARSETTIFlavio TARSETTIhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/389Cleanup url prefix use in accounts api2020-09-25T12:59:27ZFlavio TARSETTICleanup url prefix use in accounts apiThis merge request fixes the URL generation in the emails sent through accounts api.
It also refactors the information sent to a supervisor on a new supervision request.
Part of #558This merge request fixes the URL generation in the emails sent through accounts api.
It also refactors the information sent to a supervisor on a new supervision request.
Part of #558Django 3 migrationSamuel GAISTSamuel GAISThttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/388Cleanup account supervision check migration2020-09-25T23:46:44ZFlavio TARSETTICleanup account supervision check migrationThis MR removes the migration patch used to warn current users of the move to a supervision system, and re-orders the following migrations that need to be adjusted to accommodate with this.
The email generated for this are removed as ...This MR removes the migration patch used to warn current users of the move to a supervision system, and re-orders the following migrations that need to be adjusted to accommodate with this.
The email generated for this are removed as well.Django 3 migrationSamuel GAISTSamuel GAISThttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/384Refactor email test in ui to avoid hard coded URL2020-09-24T09:17:52ZSamuel GAISTRefactor email test in ui to avoid hard coded URLThis merge request improves the checks of generated URLs in emails by removing the hard code part.
Part of #558This merge request improves the checks of generated URLs in emails by removing the hard code part.
Part of #558Django 3 migrationFlavio TARSETTIFlavio TARSETTIhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/383Fix url prefix usage in accounts/registration2020-09-24T15:09:03ZFlavio TARSETTIFix url prefix usage in accounts/registrationThis merge request fixes the URL generation in the emails sent to users about registration/activation/re-activation/rejection/yearly re-validation and possible rejection after yearly re-validation.
Part of #558This merge request fixes the URL generation in the emails sent to users about registration/activation/re-activation/rejection/yearly re-validation and possible rejection after yearly re-validation.
Part of #558Django 3 migrationSamuel GAISTSamuel GAISThttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/382Cleanup url prefix use in search2020-09-23T20:28:24ZSamuel GAISTCleanup url prefix use in searchThis merge request fixes the URL generation in the emails sent when a leadboard changes or is deleted.
It also fixes the sending of email on leadboard deletion and add tests for the email related functionality.
Part of #558This merge request fixes the URL generation in the emails sent when a leadboard changes or is deleted.
It also fixes the sending of email on leadboard deletion and add tests for the email related functionality.
Part of #558Django 3 migrationFlavio TARSETTIFlavio TARSETTIhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/380Fix url prefix usage in experiments2020-09-23T13:03:53ZSamuel GAISTFix url prefix usage in experimentsThis merge request fixes the URL generation in the emails sent when an experiment ends, successfully or not.
It also update the testing part and add tests for the email related functionnallity.
Part of #558This merge request fixes the URL generation in the emails sent when an experiment ends, successfully or not.
It also update the testing part and add tests for the email related functionnallity.
Part of #558Django 3 migrationFlavio TARSETTIFlavio TARSETTIhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/379Fix reports url prefix usage2020-09-23T12:05:31ZSamuel GAISTFix reports url prefix usageThis merge request fixes the URL generation in the emails sent to warn users about future deletion of their reports.
Part of #558This merge request fixes the URL generation in the emails sent to warn users about future deletion of their reports.
Part of #558Django 3 migrationFlavio TARSETTIFlavio TARSETTIhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/378Fix url prefix usage in attestations2020-09-23T12:26:22ZSamuel GAISTFix url prefix usage in attestationsThis merge request fixes the URL generation in the emails sent to warn users about future deletion of their attestations.
It also fixes an execution issue where the command sending the email would also to the cleanup.
Both command are ...This merge request fixes the URL generation in the emails sent to warn users about future deletion of their attestations.
It also fixes an execution issue where the command sending the email would also to the cleanup.
Both command are now independent so their actions are clearer. The daily cron tasks to be executed have been updated and now both of them are called in sequence.
Part of #558Django 3 migrationFlavio TARSETTIFlavio TARSETTIhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/376Update installed apps2020-09-22T08:49:36ZSamuel GAISTUpdate installed appsThis merge request updates the way installed apps are declared following Django 3 new recommendations.
See [Django's application documentation](https://docs.djangoproject.com/en/3.1/ref/applications/)
It also updates test dependencies ...This merge request updates the way installed apps are declared following Django 3 new recommendations.
See [Django's application documentation](https://docs.djangoproject.com/en/3.1/ref/applications/)
It also updates test dependencies adding nose as it was missing for beat/beat.web> but pulled in because of other packages using it. However, not being part of the buildout configuration made it ignored when generating the django scripts therefore
the "statistics" module tests could not run properly.
Part of #561Django 3 migrationFlavio TARSETTIFlavio TARSETTIhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/373Update python version to 3.7 for tests2020-09-17T13:21:34ZSamuel GAISTUpdate python version to 3.7 for testsBuster providing Python 3.7, make the current test run use that version as well.Buster providing Python 3.7, make the current test run use that version as well.Django 3 migrationFlavio TARSETTIFlavio TARSETTIhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/372Fix supervisor crash on sign-up2020-09-17T06:51:40ZFlavio TARSETTIFix supervisor crash on sign-upThis merge request fixes the crash on supervisor sign-up that has appeared after migration to Django 3.
The issue is related to a faulty request to the user database with a `get` that should have been replaced with a `filter` instead ...This merge request fixes the crash on supervisor sign-up that has appeared after migration to Django 3.
The issue is related to a faulty request to the user database with a `get` that should have been replaced with a `filter` instead as done for the other classes present in the same file.
Fixes #568Django 3 migrationSamuel GAISTSamuel GAISThttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/358File field reading2020-09-10T15:50:23ZSamuel GAISTFile field readingThis merge request fixes an issue with how files content were read.
The returned content was bytes but by default it should have been text.
This is now fixed with adding support for CXX algorithm which are in fact binary.This merge request fixes an issue with how files content were read.
The returned content was bytes but by default it should have been text.
This is now fixed with adding support for CXX algorithm which are in fact binary.Django 3 migrationFlavio TARSETTIFlavio TARSETTIhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/351Fix forms2020-09-11T09:09:36ZSamuel GAISTFix formsThis merge request fixes the Widgets used in the admin pages.
There was an incompatible change done in Django 2.1
See [Django 2.1 release notes](https://docs.djangoproject.com/en/2.1/releases/2.1/#features-removed-in-2-1)
Fixes #564This merge request fixes the Widgets used in the admin pages.
There was an incompatible change done in Django 2.1
See [Django 2.1 release notes](https://docs.djangoproject.com/en/2.1/releases/2.1/#features-removed-in-2-1)
Fixes #564Django 3 migrationFlavio TARSETTIFlavio TARSETTIhttps://gitlab.idiap.ch/beat/beat.web/-/merge_requests/342Django 3 migration2020-09-28T13:36:44ZSamuel GAISTDjango 3 migrationThis merge request is the base of the migration of beat/beat.web> to Django 3.
Preliminary work includes:
- Fix all applications with regard to the namespace handling
- Fix all missing on_delete parameter in both models and migratio...This merge request is the base of the migration of beat/beat.web> to Django 3.
Preliminary work includes:
- Fix all applications with regard to the namespace handling
- Fix all missing on_delete parameter in both models and migration
- Removal of obvious Python 2 code path
- Example fix of URL_PREFIX abuse
- Port of login handling to new view system
- Update call to function that have become properties
- Update to imports
Related issues:
Fixes #561
Fixes #559
Part of #558Django 3 migrationFlavio TARSETTIFlavio TARSETTI