Commit Graph
100 Commits
Author SHA1 Message Date
robin 47a6ad6cbf feat: removed default handler 2026-08-31 21:18:05 +02:00
robin 2ae4dbdc11 feat: POST /users is now no longer a protected route 2026-08-31 21:15:24 +02:00
robin 8b0d82ac24 fix: sql column access for invites 2026-08-31 21:03:10 +02:00
robin 755ebefd30 fix: too many arguments for sql query 2026-08-31 20:58:22 +02:00
robin 8ab2f3f1bf fix: GET /user/invites now calls correct handler 2026-08-31 20:35:39 +02:00
robin e52b7d4fad fix: invite paths in doc comments 2026-08-31 20:22:23 +02:00
robin 5cfeb0bf96 feat: added invite system 2026-08-31 20:06:51 +02:00
robin 2e16eefaba fix: improved logging 2026-08-31 19:19:08 +02:00
robin 491b8da1ac fix: changed invite code length to 64 (sha256 hash) 2026-08-31 18:51:13 +02:00
robin eaf676f8b4 fix: moved to encoding/json/v2 2026-08-31 18:44:22 +02:00
robin 73df97548b fix: added go.sum 2026-08-31 18:41:58 +02:00
robin a5fba4183b Merge pull request 'Change password now requires old/current password' (#31) from dev into main 2026-08-29 17:41:04 +02:00
robin da3b2a5a6e feat: change password now requires old/current password 2026-08-29 17:39:58 +02:00
robin 68d45db8cd Merge pull request 'Allow users to change their password' (#30) from dev into main 2026-08-29 17:24:01 +02:00
robin dc71ff4332 feat: change user password 2026-08-29 17:23:25 +02:00
robin 67f5d43a58 Merge pull request 'Added invite table' (#29) from dev into main 2026-08-29 16:59:55 +02:00
robin ac527e1928 feat: added invite table 2026-08-29 16:59:20 +02:00
robin ac00c791af Merge pull request 'Workouts sql improvements' (#28) from dev into main 2026-08-29 16:17:13 +02:00
robin c468dac5e1 fix: workouts sql improvements 2026-08-29 16:16:44 +02:00
robin c466eb59bc Merge pull request 'Improvements to workouts sql' (#27) from dev into main 2026-08-29 16:09:07 +02:00
robin 3360687a00 fix: workouts sql improvements 2026-08-29 16:08:37 +02:00
robin 655f99f166 Merge pull request 'Improved workouts sql schema' (#26) from dev into main 2026-08-29 15:28:15 +02:00
robin ce73cb451a feat: added group_no to template_exercises, to allow grouping exercises to supersets 2026-08-29 15:27:04 +02:00
robin 06846c611d fix: moved rpe to sets rather than workouts 2026-08-29 15:21:17 +02:00
robin 62b3863257 fix: added deleted_at to workouts and workout_sets 2026-08-29 15:15:55 +02:00
robin 95da21a84f fix: added modified_at to template_exercises 2026-08-29 15:14:44 +02:00
robin 7f98fedaa6 fix: added optional user_id to exercises table 2026-08-29 15:13:28 +02:00
robin d0de5b2982 fix: column name in constraint 2026-08-29 15:12:11 +02:00
robin ac2e66b731 fix: added missing commas in sql file 2026-08-29 15:04:32 +02:00
robin 78bc7341fc fix: spelling in index name 2026-08-29 14:53:05 +02:00
robin cf10fda69b fix: added bodyweight_logs as own table and target is now explicity defined as target_sets, target_reps and target_seconds 2026-08-29 14:48:45 +02:00
robin 9f79a5d73b fix: added type column to workout_sets (warm-up, working, drop) 2026-08-29 14:40:49 +02:00
robin 667811a88a fix: added modified_at to workout tables 2026-08-29 14:39:09 +02:00
robin efc3523579 fix: added user_id column to workouts and templates 2026-08-29 14:32:17 +02:00
robin a405816386 Merge pull request 'Added workouts database schema' (#25) from dev into main 2026-08-28 14:47:13 +02:00
robin dac38bd0a1 fix: syntax errors in migration sql 2026-08-28 14:44:41 +02:00
robin d68231c4c1 fix: update go version to 1.27 in Dockerfile 2026-08-28 14:31:42 +02:00
robin 817c845e3b fix: adding some exercises in migration 2026-08-28 14:18:04 +02:00
robin a4a84bed68 feat: added workouts and workout_sets db tables 2026-08-28 11:00:30 +02:00
robin e8405e31a8 feat: db migration for workouts. still in progress 2026-08-27 20:17:06 +02:00
robin 8eb70a9a63 fix: migrate to go 1.27 2026-08-27 19:41:00 +02:00
robin a7d3d6c378 feat: added some example http rqeuests (api.http) 2026-08-27 12:01:48 +02:00
robin 7fdf1ed925 fix: migrations path in iofs 2026-08-25 11:06:45 +02:00
robin 2732038a1f fix: moved embed.FS to own package, so the api binary has no sql files embedded 2026-08-25 11:05:23 +02:00
robin f031f7c15a Merge pull request 'make() lists and items, so having no lists and no items returns [] instead of nil' (#24) from dev into main 2026-08-22 21:47:19 +02:00
robin c677b71a7a fix: make() lists and items, so having no lists and no items returns [] instead of nil 2026-08-22 21:45:52 +02:00
robin 2b0f2acb96 Merge pull request 'Injecting UserService into ListHandler' (#23) from dev into main 2026-08-21 22:06:17 +02:00
robin deee3e0d4f fix: correctly injecting UserService into ListHandler 2026-08-21 22:05:43 +02:00
robin ff0fe5ff13 Merge pull request 'Delete lists and add users via email' (#22) from dev into main 2026-08-21 21:51:52 +02:00
robin b777e00d94 fix: sql identifier in get lists query 2026-08-21 21:44:00 +02:00
robin f1ea27092f fix: fixed log message 2026-08-21 21:40:25 +02:00
robin c2912d8d79 feat: added delete endpoints for lists and list items 2026-08-21 21:28:58 +02:00
robin a1ec7cc24a fix: list_users now cascades delete when user is deleted 2026-08-21 21:16:16 +02:00
robin be588dd405 feat: GET /lists now returns total items and completed items of that list 2026-08-21 21:10:17 +02:00
robin d2f0f1a4cf fix: list items are now ordered by is_completed and modified_at 2026-08-21 21:00:05 +02:00
robin 3c13e13c2e fix: list items are now ordered by modified_at 2026-08-21 20:56:53 +02:00
robin 3c5c8a7fe7 feat: adding/removing users from list now works by email 2026-08-21 20:51:23 +02:00
robin eb45deda18 Merge pull request 'GetListItems now populates list_id field' (#21) from dev into main 2026-08-21 17:01:52 +02:00
robin da7b6a7e78 fix: GetListItems now populates list_id field 2026-08-21 17:01:02 +02:00
robin 619f613052 Merge pull request 'Improved logging' (#20) from dev into main 2026-08-21 16:34:30 +02:00
robin 6419f14b7d feat: more verbose logging on data manipulation endpoints 2026-08-21 16:28:17 +02:00
robin 76f6b06bbd Merge pull request 'Fixes after first integration test' (#19) from dev into main 2026-08-21 16:22:13 +02:00
robin e91e80e725 fix: minor improvements, wrong argument order, ambigious columns in sql, log messages, etc 2026-08-21 16:21:33 +02:00
robin 441c47163c fix: removed /api/v1 prefix from each route, since it's in the basePath 2026-08-21 15:31:29 +02:00
robin 017ee61c99 fix: added unique index to list_users table 2026-08-21 15:26:12 +02:00
robin bc87f656c8 Merge pull request 'Fixed route inconsistencies' (#18) from dev into main 2026-08-21 15:12:24 +02:00
robin d462e798f9 fix: aligned router paths with documentation 2026-08-21 15:09:25 +02:00
robin c029fc3951 Merge pull request 'Fix namespace issue and small name refactoring' (#17) from dev into main 2026-08-21 14:52:06 +02:00
robin 27883408a5 fix: rename GetListsByUserID to GetLists for consistency 2026-08-21 14:51:35 +02:00
robin 024f67bb20 fix: namespace error 2026-08-21 14:51:04 +02:00
robin 5ec973748f Merge pull request 'Added GET /lists, POST /list/items/{id} and GET /list/{id}' (#16) from dev into main 2026-08-21 14:49:20 +02:00
robin 51b2b74f0d feat: added GET /lists, POST /list/items/{id} and GET /list/{id} 2026-08-21 14:48:38 +02:00
robin ea5dd431e5 fix: can now create a list without any additional user IDs 2026-08-21 14:20:40 +02:00
robin 5e23d9cc9f feat: added logout handler 2026-08-21 13:49:47 +02:00
robin a5860c5079 fix: added metrics service to otel-config.yaml 2026-08-21 13:22:25 +02:00
robin acdee12006 Merge pull request 'Added bootstrap cli and compose.yaml' (#15) from dev into main 2026-08-21 11:41:47 +02:00
robin 8e6e8fa951 feat: added compose.yaml 2026-08-21 11:39:28 +02:00
robin 99c2988070 fix: removed copying .docker.env to docker image 2026-08-21 11:13:15 +02:00
robin 7ab6876005 feat: added bootstrap cli (removed db migration from service) 2026-08-21 11:09:08 +02:00
robin 82bbccd817 Merge pull request 'Updated README.md' (#14) from dev into main 2026-08-21 09:32:46 +02:00
robin 976b275128 fix: updated readme 2026-08-21 09:32:16 +02:00
robin afaa8fc4ee Merge pull request 'Updated dependencies' (#13) from dev into main 2026-08-21 09:26:46 +02:00
robin e73aba9930 chore: updated dependencies 2026-08-21 09:26:09 +02:00
robin 659ff88af6 Merge pull request 'Added Makefile' (#12) from dev into main 2026-08-21 09:25:05 +02:00
robin 4660daa405 fix: removed docs.go file from swaggo output 2026-08-21 09:21:39 +02:00
robin 53f1e2c642 fix: added swag command to makefile 2026-08-21 09:18:42 +02:00
robin a8386b741b fix: added makefile, along with dynamic version, commit hash and buildtime 2026-08-21 09:09:43 +02:00
robin a056906ab3 Merge pull request 'Enable adding/removing users to list as well as add/update list items' (#11) from dev into main 2026-08-20 15:55:37 +02:00
robin cba2507893 fix: update modified_at when updatig list item 2026-08-20 15:48:45 +02:00
robin 8c0b46f8e4 feat: list functions now validate user has access to list 2026-08-20 15:43:59 +02:00
robin 36b3f1a483 refactor: renamed "IsUserInListByListItem" to "IsUserInListByItemID" 2026-08-20 15:43:33 +02:00
robin d026fa4d7c feat: added "IsUserInListByListItem" to list repository 2026-08-20 15:42:25 +02:00
robin 8caa218e0d fix: added error vars to list service 2026-08-20 15:37:02 +02:00
robin abb3d154f8 fix: in "CreateList", the authenticated userid is now added in the service layer, rather than the handler layer 2026-08-20 15:32:54 +02:00
robin a5d649dbf5 refactor: renamed "ownerID" => "authUserID" for clarity 2026-08-20 15:32:12 +02:00
robin d80a17f16a feat: added "IsUserInList" to list repository 2026-08-20 15:28:51 +02:00
robin 41425bc709 feat: added WIP list modification routes 2026-08-14 17:35:49 +02:00
robin 93fd79560c fix: updated handlers to use new DecodeJSON generic function 2026-08-14 16:58:52 +02:00
robin e0ab3bb51a feat: added generic json payload decoder function 2026-08-14 16:56:43 +02:00
robin d6b913a763 feat: ListService now supports user management and creating/updating list items 2026-08-14 16:56:17 +02:00