Commit graph

190 commits

Author SHA1 Message Date
Imbus
3525598df2 Tests for AddProject to ensure creator is Manager 2024-03-20 18:47:37 +01:00
Imbus
45761dadcb Fix for checkProjectManager endpoint and test_check_if_project_manager 2024-03-20 17:50:51 +01:00
borean
1147a216ce typo 2024-03-20 16:55:55 +01:00
dDogge
88f232e21b ChangeUserName function in db.go fixed, corresponding test added 2024-03-20 16:46:48 +01:00
Johanna
ef6c3951fd Merge branch 'johanna-testing' into dev 2024-03-20 16:28:10 +01:00
Johanna
67680e2616 Added comments to db_test.go test functions 2024-03-20 16:13:53 +01:00
Imbus
0f4c3ac5ec Reworking endpoint getWeeklyReportsUser 2024-03-20 16:05:50 +01:00
Imbus
7799eb09e9 Delete unused handler prototype 2024-03-20 15:11:25 +01:00
borean
c6969b9503 updated api path for DeleteProject 2024-03-20 14:16:47 +01:00
Johanna
00f72df65f Added comments 2024-03-20 14:06:15 +01:00
borean
a18ce465de Added a handler for getting all users for a specific project, WIP and untested 2024-03-20 13:03:43 +01:00
borean
3515a86bbb Added ChangeUserName handler, untested and WIP, 2024-03-20 12:50:04 +01:00
borean
1919b7cb99 Added ChangeUserName in db 2024-03-20 12:11:05 +01:00
borean
bb93cef1d3 New deleteproject handler, WIP 2024-03-20 11:43:47 +01:00
borean
c01dd21b0a uncommented 2024-03-20 11:23:24 +01:00
borean
dce91943b3 Added DeleteProject handler, untested 2024-03-20 11:22:33 +01:00
borean
cd74758b2f DeleteProject added in db.go, untested 2024-03-20 11:09:48 +01:00
borean
a468b896db WIP for funcs that need to be implemented 2024-03-20 10:41:16 +01:00
dDogge
b13a8b5432 Merge 2024-03-20 00:35:37 +01:00
Melker
b7b831d869 Lagt till om Admin=True/false 2024-03-19 23:54:54 +01:00
Samuel Högbom Aronson
cb44954477 -added auth for rolechange, endpoint and test 2024-03-19 23:08:14 +01:00
Imbus
88c53ae4b6 Golds automatic documentation generator 2024-03-19 20:21:38 +01:00
dDogge
ce4cf788ae Added handler and corresponding test for the IsProjectManager function 2024-03-19 19:30:01 +01:00
dDogge
5778d6e892 Added isProjectManager function to db.go and corresponding test to db_test.go 2024-03-19 19:14:55 +01:00
dDogge
2b41085865 Added GetWeeklyReportsUser function and handler, also corresponding tests to both GetWeeklyReportsUser and handler added 2024-03-19 19:04:45 +01:00
Imbus
4dbbee3249 Checking errors from transactions in go 2024-03-19 02:14:09 +01:00
borean
3125b511bb correcting AddProject 2024-03-19 01:38:40 +01:00
borean
58d9001be3 AddProject changed so that user is promoted to projectmanager 2024-03-19 01:23:07 +01:00
Imbus
b174ec8922 Rename for clarity and consistensy with TS api 2024-03-19 00:41:30 +01:00
Samuel Högbom Aronson
9ce70e74e9 tyding up and tryinng to get tokens in docs to work 2024-03-19 00:33:38 +01:00
Samuel Högbom Aronson
3e35586bbe finished docs for user reletaded stucts and added endpoint for listallusers 2024-03-19 00:33:38 +01:00
Imbus
2ffbc2f9fd Merge docs -> dev 2024-03-19 00:10:42 +01:00
Imbus
fe08d01e15 Insanely verbose logging 2024-03-19 00:00:18 +01:00
Imbus
108850c20c Merge imbs -> dev 2024-03-18 23:40:56 +01:00
Imbus
0fa7558d64 Proper logging, all endpoint debug printing replaced with suitable log level 2024-03-18 23:38:50 +01:00
al8763be
2cff1d55f9 Fixed migration data 2024-03-18 23:08:38 +01:00
Imbus
7932350980 Exit with non-zero if migration fails 2024-03-18 23:04:08 +01:00
al8763be
bed9381509 Merge branch 'BumBranch' into dev 2024-03-18 22:48:23 +01:00
al8763be
95b09a8ce7 Fixed getProjectForUsers 2024-03-18 22:46:53 +01:00
Samuel Högbom Aronson
f3c5abf4f3 added docs for loginrenew, login, regsiter 2024-03-18 22:40:51 +01:00
al8763be
a5399c9335 Samle data without query 2024-03-18 22:39:43 +01:00
al8763be
7ae6cce6b4 Sample data 2024-03-18 22:39:02 +01:00
Imbus
472940cedc Remove index from userId 2024-03-18 22:20:25 +01:00
Imbus
f5a914330f Removed userId identifier from user table, introducing numerous errors 2024-03-18 22:10:19 +01:00
Imbus
c31f145c35 Database sample data, make target and go code 2024-03-18 22:07:02 +01:00
Imbus
4683dd459a Remove code related to demo button in backend 2024-03-18 20:56:00 +01:00
Imbus
2be4afd0e0 Correct ish swagger docstring 2024-03-18 20:05:47 +01:00
Imbus
2aade5d2fe Docs example 2024-03-18 19:59:14 +01:00
Imbus
fe6942aa81 Merge imbs -> dev 2024-03-18 17:30:50 +01:00
Imbus
0c2617d0cb Full fix for getProject route, testing, integration testing and frontend-API code 2024-03-18 16:42:35 +01:00