Commit baa8bca
user and friend endpoints (#851)
* oidc tests
* added nestjs support with auto timetabling
* added nestjs support with auto timetabling
* removing controller test files for main app
* testing out no frozen lockfile for docker image
* Update ci.yml
* added the old endpoints: Auth user, prisma and user as well as the protobuf auto endpoints
* TLS error potentially caused by UNSW IT not renewing cert
* updating dockerignore to ignore extra bloat and gitignore to ignore migrations for prisma.
* Updated format for files
* Prisma migration removed for now
* added example env files
* Add PUT user/profile endpoint, and complete PUT user settings endpoint
* Complete POST timetable endpoint
* Edit timetable endpoint completed (not tested though lol - will do later):
* GET profile endpoint fixed and completed
* Complete GET settings endpoint
* GET timetable is working now
* Delete timetable endpoint completed
* added better mapping for sql name convention
* Add friend/unfriend endpoints
* Add friends get req
* Friend request endpoints completed
* added groups endpoints
* group post merged
* added seed script
* added seed script
* adding some minor changes with source copying
* seed file was causing crashes
* testing out types
* adding ci prisma gen
* User profile endpoint
* Completed edit timetable endpoint, simplified create timetable endpoint:
* Slowly piecing together framework for mocking prisma client and testing; also fixed inconsistencies with merge of endpoints; also this is painful
* test: Removed unit tests as they are quite useless for db testing; replaced with integration testing. Basic user tests have been written, will continue later
* minor changes to schema/dtos, and finished user tests
* test: add friends tests
* test refactored
* refactor: remove all class data and fields, and add classNo property
* Change schema and interfaces to give enough data to reconstruct. Also added helper func to call scraper public endpoint
* Inital implementation of scraper data makes my eyes want to explode
* fix: get user endpoint properly fetches timetables, and get timetables endpoint modified to accomodate multiple userids
* test: update tests to work with returned scraped class data
* style: added linting for server + linted client and server
* chore: remove comments
* chore: add class time DTO; clean up codebase
* refactor: add reconstructed timetable creation method
* schema: change terms to string, remove term enum
* style: remove unused comments
---------
Co-authored-by: ray <raiyan.ahmed@gmail.com>
Co-authored-by: Raiyan Ahmed <80839724+Rayahhhmed@users.noreply.github.com>
Co-authored-by: Shaam <shaamjevan.sj@gmail.com>1 parent 03fc031 commit baa8bca
File tree
26 files changed
+11303
-946
lines changed- client/src
- api
- components/sidebar
- utils
- server
- prisma
- src
- auth
- auto
- friend
- proto
- user
- dto
- test
26 files changed
+11303
-946
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
0 commit comments