|
f519b94392
|
Use realIP
Build and Push Docker Image on Tag / Build and Push Docker Image (push) Successful in 15m31s
Code was copied from https://github.com/go-chi/chi/blob/master/middleware/realip.go
|
2025-02-01 17:07:24 +01:00 |
|
|
a72eead432
|
Fix TODOs in openapi.yml
|
2025-01-22 20:12:52 +01:00 |
|
|
a1af7a48b2
|
Fix maxVoters check and add unit tests
|
2025-01-21 09:24:51 +01:00 |
|
|
5570dca6c9
|
Use cgo-free SQL driver and add limit of 100 to maxVoters
|
2025-01-21 09:17:40 +01:00 |
|
|
1b6fc173d3
|
Add page for results
|
2025-01-20 18:08:19 +01:00 |
|
|
bddae031cc
|
Add index page and link to share more easily
|
2025-01-20 10:13:59 +01:00 |
|
|
5668b1cd6a
|
Insert election with uuid instead of auto-generated id
|
2025-01-20 10:04:15 +01:00 |
|
|
729fbecae6
|
Fix content-type header
|
2025-01-17 19:34:49 +01:00 |
|
|
f94e08fc7f
|
Add integration tests for createVotes
|
2025-01-17 17:11:16 +01:00 |
|
|
5e4a089b89
|
Fix integration test URI
|
2025-01-17 16:50:16 +01:00 |
|
|
27d166dad6
|
Implement page to vote and fix trigger
|
2025-01-17 16:48:38 +01:00 |
|
|
62562272f1
|
Add tests for GetElection
|
2025-01-17 14:55:54 +01:00 |
|
|
410e8f39d3
|
Add some more tests and implement getElection
|
2025-01-17 14:49:51 +01:00 |
|
|
60d1bb382c
|
Write TestGetElectionResults_NotFound
|
2025-01-17 13:59:37 +01:00 |
|
|
70a0cd7d3b
|
Add voterIdentities to copy again and fix issue if there was no body in the response (in the case of unknown voters election)
|
2025-01-14 20:07:02 +01:00 |
|
|
96133f00de
|
Add variable for baseUri
|
2025-01-14 17:32:44 +01:00 |
|
|
1428534dc3
|
Write test for getElectionResults
|
2025-01-14 17:28:45 +01:00 |
|
|
66cdd0086c
|
Fix tests
|
2025-01-14 17:00:29 +01:00 |
|
|
c095e9ae0b
|
Implement getElectionResults
|
2025-01-14 16:52:20 +01:00 |
|
|
13c2693bdb
|
Add caching middlware for static files
|
2025-01-14 13:43:16 +01:00 |
|
|
2847c53bca
|
Add doc for HTTP 400 on vote creation
|
2025-01-14 12:44:06 +01:00 |
|
|
3c2d45083f
|
Put API behind /api
|
2025-01-14 12:40:30 +01:00 |
|
|
22a6593e3a
|
Add busy_timeout
|
2025-01-13 22:00:00 +01:00 |
|
|
26ae032fd6
|
Remove concurrency
|
2025-01-13 21:59:48 +01:00 |
|
|
b9d6d25245
|
Add return
|
2025-01-13 21:37:28 +01:00 |
|
|
2f13d7a76a
|
Display election ID in the response and insert voters in a goroutine
|
2025-01-13 20:41:33 +01:00 |
|
|
7ab27a947e
|
Remove todo because fixed
|
2025-01-13 20:07:18 +01:00 |
|
|
d1225d3258
|
Fix slow-ass code
|
2025-01-13 20:06:55 +01:00 |
|
|
ee847020f7
|
Add page to create an election
|
2025-01-13 19:58:42 +01:00 |
|
|
c7cccf2ec1
|
Use generated interface
|
2025-01-13 11:26:18 +01:00 |
|
|
c3563878b7
|
Add operationId for election results
|
2025-01-13 10:59:05 +01:00 |
|
|
4f50aca3b6
|
Add create-election.html
|
2025-01-13 10:56:36 +01:00 |
|
|
9cc85b9a47
|
Fix test that wasn't testing the correct thing
|
2025-01-11 18:39:46 +01:00 |
|
|
98421c8c06
|
Remove useless variable
|
2025-01-11 18:38:07 +01:00 |
|
|
cad5cfe636
|
Move voting to a new endpoint
/election/{id}/votes
|
2025-01-11 18:29:01 +01:00 |
|
|
86d7d0e881
|
Add some TODO and add 500 error responses in openapi.yml. Also write the endpoint for election results
|
2025-01-11 17:57:15 +01:00 |
|
|
5927e9c855
|
Refactor createVotes in two different functions (only for the part that was nested in ifs)
|
2025-01-10 10:31:59 +01:00 |
|
|
0b0ecaba9b
|
Write test for expired election
|
2025-01-09 18:26:22 +01:00 |
|
|
b25e090a7b
|
Write test for max voters reached (only in unknown voters election
|
2025-01-09 18:22:58 +01:00 |
|
|
4fbf72d84d
|
Add tests for already voted cases
|
2025-01-09 18:12:18 +01:00 |
|
|
d77bef4bda
|
Write some tests for createVotes before refactoring
|
2025-01-09 15:35:16 +01:00 |
|
|
bf3368b736
|
Implement mocking and update tests for createElection
|
2025-01-08 17:18:53 +01:00 |
|
|
49a1df06d2
|
Dirty implementation of createVotes
|
2025-01-08 13:57:49 +01:00 |
|
|
0229f78976
|
Incomplete implementation of createVotes
|
2025-01-02 19:24:32 +01:00 |
|
|
9efe9a3537
|
Write validation for createVotesRequest
|
2025-01-02 18:12:48 +01:00 |
|
|
d251909ee7
|
Move isValid
|
2025-01-02 18:06:02 +01:00 |
|
|
8d3ce36dd9
|
Add endpoint for POST /votes in openapi.yml
|
2025-01-02 18:05:27 +01:00 |
|
|
7f82a402de
|
Document Location header in POST /election
|
2025-01-02 17:53:30 +01:00 |
|
|
f884e29ccd
|
Make isValid a method and add skeleton for createVote
|
2025-01-02 17:49:23 +01:00 |
|
|
bbbdb637b0
|
Add variable for urlPath
|
2025-01-02 17:44:44 +01:00 |
|