Commit Graph

35 Commits

Author SHA1 Message Date
199ac143a4 refactor: replace interface{} by any 2025-12-16 15:05:23 +01:00
dcf054046f test: fix parallel processor test expectations and setup 2025-12-10 07:30:27 +01:00
d2a788933d fix: track completed items in the main loop instead of using the index 2025-12-10 07:29:55 +01:00
18be3950dc clean: obsolete function 2025-12-09 22:07:30 +01:00
f9cb140e95 clean: removed the obsolete functions outputMessage and outputError 2025-12-09 22:06:12 +01:00
86d4835ccf feat: seed user is now uniq 2025-12-09 22:03:26 +01:00
feddb2ed43 test: new unit test for EnsureSeedUser 2025-12-09 22:03:16 +01:00
457b5c88e2 refactor: improve seed consistency validation 2025-12-09 21:53:03 +01:00
68e3dceefc refactor: name variables 2025-11-25 10:08:48 +01:00
989a61e7d5 feat: use getByUsernamePrefix to optimize findExistingSeedUser() 2025-11-21 17:04:35 +01:00
62d466e4fa refactor: use go generics 2025-11-21 16:56:26 +01:00
0cd428d5d9 feat: use connection pooling instead of a single connection 2025-11-21 16:53:46 +01:00
01f2b1fe75 feat: remove loop and use GetVoteCountsByPostID 2025-11-21 16:48:48 +01:00
39598a166d feat: remove redundat getbyemail call to reduce db query by 2 (1Q/user creation instead of 2) 2025-11-21 16:43:46 +01:00
fa9474d863 revert: db transaction use, avoiding the pgx RETURNING issue while maintaining data consistency 2025-11-21 16:31:06 +01:00
34a97994b3 feat: improve testing to use production code paths and better coverage 2025-11-21 16:26:21 +01:00
eb5f93ffd0 clean: remove duplicate sequential helpers 2025-11-21 16:25:27 +01:00
697f201d60 feat: use database transactions to ensure atomicity 2025-11-21 16:21:04 +01:00
f4ab8bda45 feat: transaction rollback test 2025-11-21 16:20:41 +01:00
65576cc623 feat: keep seeding fast and predictable even when parallelized 2025-11-21 16:16:35 +01:00
a5b4e9bf25 feat: update tests to pass precomputed hashes 2025-11-21 16:11:42 +01:00
c020517ccf feat: reduce hashing cost by removing redundant password hashing 2025-11-21 16:11:33 +01:00
4cdda3f944 feat: remove bcrypt and use a precompute hash 2025-11-21 16:11:08 +01:00
ff471cd5dd fix: loop 2025-11-21 15:39:08 +01:00
df5e67c7f3 feat: add idempotency tests 2025-11-21 15:34:08 +01:00
b2580d2380 feat: make seeding idempotente 2025-11-21 15:33:59 +01:00
4749213bf0 feat: update test to accept randomized seed user identities 2025-11-21 15:26:29 +01:00
6470425b96 feat: avoid unique constraint failures on repeat runs by randomizing seed identities 2025-11-21 15:26:05 +01:00
14ae6f815b feat: update tests to verify clamping 2025-11-21 15:21:05 +01:00
73083e4188 feat: check zero/negative value in seeding 2025-11-21 15:20:57 +01:00
c907c4812b feat: add tests covering negative values for the three flags 2025-11-21 14:56:09 +01:00
c7f30070c0 feat: reject negative/nonsensical flag values with a clear error instead of letting slice/channel allocations panic 2025-11-21 14:55:51 +01:00
79e072fe6b feat(cli): read .env value to set or not the json output 2025-11-21 13:10:53 +01:00
7fca1f78dc feat(cli): add a json output and tests 2025-11-21 13:00:03 +01:00
71a031342b To gitea and beyond, let's go(-yco) 2025-11-10 19:12:09 +01:00