Commit graph

267 commits

Author SHA1 Message Date
Peter KW
218b0b3ab7 Merge branch 'frontend' into gruppPP 2024-03-28 12:41:43 +01:00
Peter KW
50042ded41 Fix in handler 2024-03-28 12:37:04 +01:00
al8763be
6a7bb9ab26 fix ifPM igen 2024-03-28 12:19:11 +01:00
Peter KW
36c158b54b Insert user "admin" to site_admin in sample_data 2024-03-28 00:27:07 +01:00
Alexander Ek
d4cc556366 Co-authored-by: al8763be <al8763be@users.noreply.github.com> 2024-03-27 21:18:44 +01:00
Imbus
e1b410c850 Merge branch 'dev' 2024-03-26 04:19:27 +01:00
Alexander Ek
42a2ad02e4 Description comment in main.go file 2024-03-23 15:22:58 +01:00
Melker
ec362cfa3a GetProjectTimesHandler 2024-03-21 10:51:47 +01:00
dDogge
2d4ff7e087 Fully implemented UpdateWeeklyReport for database, handler and corresponding tests 2024-03-21 02:48:55 +01:00
Imbus
b484346031 Better integration test target 2024-03-21 02:26:30 +01:00
al8763be
dea802bd91 bummed handler 2024-03-21 01:37:39 +01:00
Imbus
89ba0415f7 Merge branch 'melle' into dev 2024-03-21 00:44:07 +01:00
Melker
6bc09c656a GetProjectTimes och tester till det 2024-03-21 00:32:38 +01:00
dDogge
44f6b31056 Handler for ChangeUserName changed and corresponding test added 2024-03-21 00:17:08 +01:00
borean
28935f285b fixed typo 2024-03-20 23:25:50 +01:00
al8763be
afa445a426 Merge remote-tracking branch 'origin/imbs' into BumBranch 2024-03-20 23:04:17 +01:00
Imbus
740289decc Merge branch 'dev' into imbs 2024-03-20 22:52:13 +01:00
Imbus
fdaba36d57 Log database error in SubmitWeeklyReport 2024-03-20 22:43:03 +01:00
al8763be
c4b8bef7f8 fix database 2024-03-20 22:37:15 +01:00
Imbus
ec138163c6 Very large changes related to database and its interface 2024-03-20 22:04:36 +01:00
Imbus
0dc7e3bf99 Deleted sqlite3-journal 2024-03-20 21:56:03 +01:00
al8763be
4288b064f3 fixade dålig stämmning igen 2024-03-20 21:53:08 +01:00
al8763be
49ca043157 ingen dålig stämmning 2024-03-20 21:51:02 +01:00
al8763be
91c9f50491 sampledata now has weeklyReports for user & user2 2024-03-20 20:08:00 +01:00
al8763be
e8c660705f sampledata now has weeklyReports for user & user2 2024-03-20 20:05:04 +01:00
Imbus
9bf00e8dce Merge branch 'dev' of github.com:imbus64/TTime into dev 2024-03-20 18:47:47 +01:00
Imbus
3525598df2 Tests for AddProject to ensure creator is Manager 2024-03-20 18:47:37 +01:00
Melker
bef8a6af85 GetTotalTimePerActivity och ett halvt test för den 2024-03-20 18:20:14 +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
dDogge
9ad89d6063 Handler for SignReport added and corresponding test in testing.pu added 2024-03-18 16:01:51 +01:00
dDogge
4979378779 Handler for AddUserToProject and promoteToAdmin, successfully tested 2024-03-18 14:47:15 +01:00
dDogge
76fefd2b24 Added function to check if someone is admin 2024-03-18 13:32:55 +01:00
Imbus
741ad50ccf Merge branch 'dev' of github.com:imbus64/TTime into dev 2024-03-17 23:51:52 +01:00
dDogge
f6e4603603 Added handler for SignWeeklyReport named SignReport in handlers_report_related 2024-03-17 23:31:52 +01:00
Imbus
9070846b0b Fixing getWeeklyReport tests 2024-03-17 23:17:06 +01:00
al8763be
9f20d46fa6 Test for getWeeklyReport 2024-03-17 22:57:19 +01:00
dDogge
40caa2d158 Changed name to a test in db_test.go 2024-03-17 20:35:48 +01:00
dDogge
37bbbb6098 Added SignWeeklyReport function and 2 corresponding test, also small change to WeeklyReport.go 2024-03-17 20:33:53 +01:00
Imbus
e03727613d Extremely important formatting 2024-03-17 20:04:29 +01:00
dDogge
8a34fc07fa Weekly_report fixed for real this time 2024-03-17 19:58:44 +01:00
dDogge
b93df693d2 Fixed weekly_report 2024-03-17 19:56:16 +01:00
Imbus
3683552af8 Verbose debug printing in register endpoint 2024-03-17 19:33:13 +01:00
Imbus
9240d5e052 Verbose debug printing in login endpoint 2024-03-17 19:24:13 +01:00
dDogge
3e00a532cf Added handler for GetWeeklyReport 2024-03-17 18:05:54 +01:00
dDogge
a77e57e496 Added GetWeeklyReport function and corresponding test 2024-03-17 17:58:02 +01:00
dDogge
c90d495636 Added new types and changed SQL since apperently sqlite does use autoincrement 2024-03-17 17:47:31 +01:00
Imbus
ec46d29423 Merge branch 'imbs' into dev 2024-03-17 16:56:00 +01:00
Imbus
d6fc0594a9 Splitting backend endpoints into smaller bits 2024-03-17 16:55:40 +01:00
Imbus
1be3ee89c2 Merge branch 'dev' of github.com:imbus64/TTime into dev 2024-03-17 16:42:02 +01:00
Imbus
ec36054bd9 Merge branch 'imbs' into dev 2024-03-17 16:41:51 +01:00
Imbus
670ed46d51 WeeklyReport type as represented in the db 2024-03-17 16:41:29 +01:00
dDogge
21cc7ff8a3 Added signed_by attribute to weekly_report SQL table 2024-03-17 15:34:48 +01:00