1
0
Fork 0
Commit graph

56 commits

Author SHA1 Message Date
8fd2dffcb9
ci: run tagging and releasing only on 'release' branch 2024-05-12 15:07:20 +02:00
c3cc6749a5
ci: fixing wrong job name in needs 2024-05-12 12:09:05 +02:00
d634a376bb
ci: add find next semver tag and use to to create gitlab release and tag too 2024-05-12 12:06:27 +02:00
38812ec489
ci: add docker manifest inspect after build is done 2024-05-12 11:25:33 +02:00
4ff2563fa7
ci: add --provenance=false to docker buildx build 2024-05-12 11:21:40 +02:00
2208f60f21
ci: use docker buildx for multiarch 2024-05-12 08:14:42 +02:00
9013cd548c
build(Dockerfile): build multiarch image 2024-05-12 08:14:15 +02:00
65bd079691
feat(server): return TrainingDateAttendee data on GET, POST and PUT 2024-05-11 20:30:50 +02:00
67f015ec97
feat(api): TrainingDateAttendee: bill, hasPaid, hasAttended are not present when creating attendee 2024-05-11 20:30:21 +02:00
2650d412fb
chore(deps): bump deps 2024-05-11 20:28:28 +02:00
040609b80d
fix(server): use errors.Is() for error comparison 2024-05-11 20:25:04 +02:00
4a58dc3a81
feat(server): implement new api handlers for TrainingDateAttendees 2024-05-07 22:07:30 +02:00
ab4c27739e
chore(api): bump generated api code 2024-05-07 22:06:50 +02:00
c9c47fbcbf
feat(api): add routes for handling training date attendees 2024-05-07 22:06:14 +02:00
1fe2867b05
feat(training): add repository interface and InMemory repository for TrainingDateAttendee 2024-05-07 22:05:20 +02:00
96eec62a5d
feat(training): add model for TrainingDateAttendee 2024-05-07 22:04:30 +02:00
fc9e9d4b1f
fix(main): server var name change to srv, so it does not collide with an imported package 2024-05-07 22:02:34 +02:00
ef1526a1ac
refactor: move currency to money package and add new type Price, refactor api and use price there too 2024-05-05 18:19:56 +02:00
18d1c98b76
refactor: move testing data to custom package faker (interna/faker) 2024-05-05 17:51:48 +02:00
bd135bcfe6
refactor(training): remove FindAllUpcoming() method from TrainingDateRepository and its implementations 2024-05-05 17:50:47 +02:00
715ce009b1
refactor: /v1/trainings/upcoming-dates sends response with trainingID and list of dates together 2024-05-05 17:49:29 +02:00
401cc5330e
feat(server): bump generated api code and implement upcoming training date handlers 2024-05-05 16:25:10 +02:00
97d6532f71
feat(api): add routes to get only upcoming training dates per training and general 2024-05-05 16:24:02 +02:00
606854d1d5
feat(training): TrainingDateRepository: add FindUpcomingByTrainingID() and FindAllUpcoming() methods 2024-05-05 16:22:55 +02:00
2dcaa4c646
feat(server): bump generated api and server implements handlers for new routes 2024-05-05 16:01:35 +02:00
9cd3b7d9fe
feat(api): add TrainingDate routes, schemas, responses, parameters, etc. 2024-05-05 15:58:48 +02:00
4bf2ae4a06
feat(training): add TrainingDate 2024-05-05 15:56:16 +02:00
6f5a91a92d
refactor(training): InMemoryTrainingRepository uses locking internally 2024-05-05 15:42:48 +02:00
e388b8cb64
chore(build): make ALPINE_VERSION variable (build arg) in Dockerfile 2024-05-05 11:58:01 +02:00
5d83bb0308
feat(training): add pricing and TrainingPrice with amount, currency and type (open|corporate) 2024-05-05 11:55:33 +02:00
db6ff45c99
fix(api): Training allOf has only two items 2024-05-05 11:27:59 +02:00
d55276886b
feat(training): add Description field 2024-05-05 09:52:04 +02:00
bda8bb9e85
refactor(training): Training.Days is int8 instead of int32 2024-05-05 09:44:56 +02:00
5b204c6a75
ci: use $CI_COMMIT_REF_SLUG instead of $CI_COMMIT_BRANCH for docker image tag 2024-05-04 18:13:52 +02:00
58b017a59f
feat: implement rest server with Fiber and OpenAPI spec, bump deps, use training.InMemoryTrainingRepository 2024-05-04 17:51:11 +02:00
263bed126e
chore(deps): bump deps with oapi-codegen stuff 2024-05-04 17:49:22 +02:00
14f3209c5e
feat: add generated api server stubs and oapi-codegen config 2024-05-04 17:46:18 +02:00
36bf2d3dc9
feat(api): add servers section with local server for testing 2024-05-04 17:40:45 +02:00
2003b31f14
fix(training): check if training exists before delete 2024-05-04 17:40:03 +02:00
2f6c24652e
refactor(training): Update should just get the struct 2024-05-04 17:39:38 +02:00
04e5710b00
refactor(training): make TrainingID a type alias of uuid.UUID, not new type 2024-05-04 17:20:29 +02:00
92f2460b6b
feat(api): add TrainingID schema 2024-05-04 17:19:30 +02:00
adb793034a
feat(training): add InMemoryRepository for mocking 2024-05-04 15:16:41 +02:00
2ca890c66a
feat(api): add description to Trainings tag 2024-05-04 15:02:58 +02:00
6df8747065
feat(training): add helper methods to TrainingID type
- String()
- MarshalJSON()
- UnmarshalJSON()
2024-05-04 15:01:19 +02:00
67b12fc7af
feat(api): add validation for training.days
- minimum 1
- maximum 5
2024-05-04 15:00:48 +02:00
8ce9378a53
refactor(api): add /v1 prefix to all paths 2024-05-04 15:00:01 +02:00
24e99a3b08
refactor: extract server from main.go to it's own package 2024-05-04 12:22:42 +02:00
1413fde9f0
feat(api): add x-go-type and x-go-type-import to openapi spec 2024-05-04 11:46:45 +02:00
627be4d2f4
feat: add training type/model 2024-05-04 11:44:45 +02:00