A system for managing a helpdesk.
In general, the Django deployment guidelines should be followed.
If SRComp is live, you can sync teams and pit locations using a management command:
./manage.py import_from_srcomp --srcomp_url "https://srcomp.studentrobotics.org/comp-api"
This is a Django application.
- Clone the repository
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements-dev.txt
cd helpdesk
cp helpdesk/configuration.dev.py helpdesk/configuration.py
./manage.py migrate
./manage.py createsuperuser
./manage.py runserver
The Makefile
contains commands that can be used to run tests and linting:
make lint
- Lintmake test
- Run unit testsmake type
- Type checking
This system is deployed using our Ansible configuration.
Credentials are configured through the Django admin. OAuth credentials need to be configured as below:
- User type: Internal (this ensures it's only SR accounts which can be used)
- Scopes:
.../auth/userinfo.email
,.../auth/userinfo.profile
,openid
- Redirect URIs:
https://studentrobotics.org/helpdesk/auth/google/login/callback/
- Authorised JavaScript origins:
https://studentrobotics.org
A project exists for this in our Google Cloud account.