|
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 |
|
|
941e9a36fb
|
Add more test cases and add UniqueValues check
|
2025-01-01 19:47:55 +01:00 |
|
|
53aa4ab375
|
Add Buddha in test from last commit
|
2024-12-31 15:37:02 +01:00 |
|
|
3abaeba76b
|
Add test for old expiresAt date in integration
|
2024-12-31 15:36:28 +01:00 |
|
|
14b7446d77
|
Add check for header in integration
|
2024-12-31 15:35:29 +01:00 |
|
|
225749f9b7
|
Fix spelling from last commit
|
2024-12-31 15:33:46 +01:00 |
|
|
ee21f00d3f
|
Set Location header after creating an election
|
2024-12-31 15:30:45 +01:00 |
|
|
40f11c75af
|
Add some integration tests with go-hit
|
2024-12-31 15:29:19 +01:00 |
|
|
c9b7a5796e
|
Add tests for createElection handler
|
2024-12-31 14:35:31 +01:00 |
|
|
57bd72506b
|
Fix validation logic and make code more readable
|
2024-12-31 00:19:53 +01:00 |
|
|
3c4cfe8e99
|
Enable foreign keys
|
2024-12-31 00:06:19 +01:00 |
|
|
e5e85d494e
|
Use prepared statement
|
2024-12-30 23:47:40 +01:00 |
|
|
4ce099621d
|
Move migration files
|
2024-12-30 23:40:52 +01:00 |
|
|
3074d0de93
|
Rename function
|
2024-12-30 23:15:25 +01:00 |
|
|
e446d4f747
|
Small refactor
|
2024-12-30 23:13:39 +01:00 |
|
|
195bc7d85e
|
Generate voter data for known elections and simplify MaxVoters (0 = no maximum)
|
2024-12-30 23:01:32 +01:00 |
|
|
218f56c060
|
Implement graceful shutdowns
|
2024-12-30 22:02:15 +01:00 |
|
|
b5a1bfc247
|
Small code cleanup
|
2024-12-30 20:53:53 +01:00 |
|
|
4d73c122e3
|
Fix bug where maxVoters could be 0 while AreVotersKnown was true
|
2024-12-30 20:45:04 +01:00 |
|
|
29fb5880e3
|
Add migrations and continue implementing election insertion
|
2024-12-30 20:41:28 +01:00 |
|
|
9e96be5ff2
|
Rename is_anonymous to are_voters_known
|
2024-12-30 15:37:23 +01:00 |
|
|
f1a951ce81
|
Write test skeleton
|
2024-12-28 17:58:01 +01:00 |
|
|
a22f3e5a71
|
Write logic for createElection validation
|
2024-12-28 17:13:22 +01:00 |
|
|
5c784f491d
|
Add POST /election
|
2024-12-27 18:03:46 +01:00 |
|
|
80d936af6e
|
Ensure database file is created by pinging
|
2024-12-27 15:05:37 +01:00 |
|
|
bc2ffce244
|
Start to code election insert
|
2024-12-27 14:38:30 +01:00 |
|
|
ca5fccb809
|
Small fixes in init.sql and create drop.sql
|
2024-12-27 11:10:10 +01:00 |
|