Commit graph

191 commits

Author SHA1 Message Date
0e41c30347 Fixed statement for study group moving 2023-10-28 00:17:07 +08:00
7b5e84c400 Also update study group radius calculation for nearby study groups view 2023-10-27 23:49:06 +08:00
f6e0483706 Reworked study group radius calculation to be based on the number of students with a set limit rather than by largest distance 2023-10-27 23:46:26 +08:00
0007f84b47 Also delete empty study groups when students move between groups 2023-10-27 23:32:41 +08:00
c140e7fc6a Prune groups and statuses older than 4 hours from 8 hours and improved student status filtering for pruning 2023-10-17 21:39:47 +08:00
a58142030d Commit migrations and fixed pruning crontab command not setting student status to False. Also fixed Student Status subject field in admin 2023-10-13 12:34:20 +08:00
87d1bcb04f Fixed study group timestamp field 2023-10-13 11:53:52 +08:00
ac7360cafa Added records and record handling for Computer Science course 2023-10-02 15:47:57 +08:00
9515b25a7b Added cronjob to Dockerfile 2023-10-02 01:32:03 +08:00
a970c4c925 Switch debug flag off 2023-10-02 00:58:49 +08:00
d7f88e1770 Hotfix for registration crashing due to non-unique StudentStatus instance creation 2023-10-02 00:46:44 +08:00
1eb1f71232 Improved pruning command logging 2023-10-01 16:50:01 +08:00
13ba0cb12a Added pruning command 2023-10-01 16:44:21 +08:00
c8fca412b8 Added endpoint for querying avatars of users in a study group and for individual study group details 2023-10-01 01:24:58 +08:00
0ecfb2223a Also return distance in study group serializers 2023-09-30 17:06:35 +08:00
2e4a52eded Shorten student status url endpoints 2023-09-29 12:24:03 +08:00
c0992267b4 Delete study group if no students are left 2023-09-29 11:33:48 +08:00
c5f04328e5 Made group name unique and improved group creation functionality 2023-09-28 21:03:34 +08:00
032ed36af6 Fixed incorrect users field in study group viewset 2023-09-28 20:09:24 +08:00
a006aa25f4 Remove active field on study group 2023-09-26 20:30:36 +08:00
a30e2ea4c5 Added endpoint for studygroup creation and auto generate swagger yml on docker build/run 2023-09-26 20:28:59 +08:00
e6d85203b0 Fixed student status serializer 2023-09-26 18:59:33 +08:00
7dc80caee7 Removed associative entity and fixed relationship between student status and study group 2023-09-25 21:09:31 +08:00
771300f933 Added drf spectacular documentation generation to Dockerfile 2023-09-25 21:04:27 +08:00
b059c5f1cd Added no-cache to pip install in Dockerfile 2023-09-25 20:46:33 +08:00
f9a3e7a440 Added initial study group creation, joining, and deletion functionality 2023-09-24 21:54:14 +08:00
268069eeb4 Restrict access to StudyGroupListNearView if student status is inactive to prevent errors 2023-09-24 21:33:16 +08:00
3124c3b6be Removed duplicate codeblock in views and return error if Student Status is active in StudyGroupListNearView 2023-09-24 21:17:25 +08:00
05d12073d4 Also include radius calculation in study group list all view 2023-09-24 21:09:38 +08:00
50fdebf222 Offloaded study group radius calculation to backend and fixed study groups serializer 2023-09-24 21:03:32 +08:00
018475b92c Remove cache middlewares 2023-09-24 19:25:49 +08:00
5af961c941 Added missing landmarks field in study group model and fixed serializer for users 2023-09-24 19:06:50 +08:00
bf683b08f2 Increase filter threshhold for student statuses to 100m 2023-09-22 23:11:24 +08:00
46fe8d9397 Remove redis cache for django rest api for now as it returns stale data and improved dockerfile and study group viewsets 2023-09-20 21:11:53 +08:00
3aacf66aaf Added --noinput to collectstatic to prevent crash 2023-09-20 04:34:41 +08:00
1cc6b0a724 Revert to the old dockerfile arch as the new one still seems to cause issues 2023-09-20 02:38:05 +08:00
8632707e28 Added collectstatic to docker-compose 2023-09-20 02:33:10 +08:00
18679541be Fixed student status websocket 2023-09-18 19:18:44 +08:00
295798b965 Added JWT middleware for websockets 2023-09-17 20:09:10 +08:00
532460e1ba Quick fix for subject selection in student status admin 2023-09-17 19:40:27 +08:00
7672f487c8 Removed avatar form in student status 2023-09-17 19:26:52 +08:00
5ac9f32bde Improved admin panel for student status subject selection and removed redundant wait for redis py function 2023-09-17 19:25:44 +08:00
4161e3f89c Improved Docker compose files for multi-arch configuration 2023-09-17 19:24:39 +08:00
557c78d4fc Removed Redis gui because it has no native image for arm64 2023-09-14 20:57:48 +08:00
8316d48a2f Fixed linux requirements syntax 2023-09-14 20:52:59 +08:00
ada871a6d8 Code cleanup and increased JWT lifetime 2023-09-12 22:52:10 +08:00
f63f78f26d Added redis-commander webui and fixed some missing dependencies 2023-09-12 22:37:36 +08:00
e5ec1c9c56 Improved docker-compose file commandset 2023-09-12 22:06:27 +08:00
lemeow125
2a4123cc75
Merge pull request #3 from lemeow125/feature/docker
Feature/docker
2023-09-12 21:46:02 +08:00
8d5a316d54 Improved websocket consumer 2023-09-12 21:36:28 +08:00