Sandro CURY CAZZANIGA Kharec
Kharec pushed to main at Kharec/goyco 2025-11-23 10:44:31 +01:00
80fb37371f update: fix go version and update alpine to 3.22
Kharec pushed to main at Kharec/goyco 2025-11-21 17:07:32 +01:00
fea49fad8d fix: add missing method to mock
Kharec pushed to main at Kharec/goyco 2025-11-21 17:06:07 +01:00
4b04461ebb style: minor formatting adjustments
533e8c3d46 feat: add GetByUsernamePrefixFn field and method to UserRepositoryStub
df568291f1 feat: add GetByUsernamePrefix implementation to MockUserRepository
81acce62b1 feat: add GetByUsernamePrefix method to interface and add implementation
989a61e7d5 feat: use getByUsernamePrefix to optimize findExistingSeedUser()
Compare 6 commits »
Kharec pushed to main at Kharec/goyco 2025-11-21 16:56:30 +01:00
62d466e4fa refactor: use go generics
Kharec pushed to main at Kharec/goyco 2025-11-21 16:53:49 +01:00
0cd428d5d9 feat: use connection pooling instead of a single connection
Kharec pushed to main at Kharec/goyco 2025-11-21 16:50:26 +01:00
5c239ad61d feat: add missing GetVoteCountsByPostID method to the errorVoteRepository test mock
Kharec pushed to main at Kharec/goyco 2025-11-21 16:48:50 +01:00
01f2b1fe75 feat: remove loop and use GetVoteCountsByPostID
28134c101c feat: add GetVoteCountsByPostID to the mock for testing
2f78370d43 feat: GetVoteCountsByPostID: use a single sql query to returns up votes and down votes counts
Compare 3 commits »
Kharec pushed to main at Kharec/goyco 2025-11-21 16:43:49 +01:00
39598a166d feat: remove redundat getbyemail call to reduce db query by 2 (1Q/user creation instead of 2)
Kharec pushed to main at Kharec/goyco 2025-11-21 16:31:10 +01:00
fa9474d863 revert: db transaction use, avoiding the pgx RETURNING issue while maintaining data consistency
Kharec pushed to main at Kharec/goyco 2025-11-21 16:26:25 +01:00
34a97994b3 feat: improve testing to use production code paths and better coverage
eb5f93ffd0 clean: remove duplicate sequential helpers
Compare 2 commits »
Kharec pushed to main at Kharec/goyco 2025-11-21 16:21:07 +01:00
697f201d60 feat: use database transactions to ensure atomicity
f4ab8bda45 feat: transaction rollback test
Compare 2 commits »
Kharec pushed to main at Kharec/goyco 2025-11-21 16:16:52 +01:00
65576cc623 feat: keep seeding fast and predictable even when parallelized
Kharec pushed to main at Kharec/goyco 2025-11-21 16:11:45 +01:00
a5b4e9bf25 feat: update tests to pass precomputed hashes
c020517ccf feat: reduce hashing cost by removing redundant password hashing
4cdda3f944 feat: remove bcrypt and use a precompute hash
Compare 3 commits »
Kharec pushed to main at Kharec/goyco 2025-11-21 15:39:11 +01:00
ff471cd5dd fix: loop
Kharec pushed to main at Kharec/goyco 2025-11-21 15:34:10 +01:00
df5e67c7f3 feat: add idempotency tests
b2580d2380 feat: make seeding idempotente
Compare 2 commits »
Kharec pushed to main at Kharec/goyco 2025-11-21 15:26:35 +01:00
4749213bf0 feat: update test to accept randomized seed user identities
6470425b96 feat: avoid unique constraint failures on repeat runs by randomizing seed identities
Compare 2 commits »
Kharec pushed to main at Kharec/goyco 2025-11-21 15:21:07 +01:00
14ae6f815b feat: update tests to verify clamping
73083e4188 feat: check zero/negative value in seeding
Compare 2 commits »
Kharec pushed to main at Kharec/goyco 2025-11-21 14:56:11 +01:00
c907c4812b feat: add tests covering negative values for the three flags
c7f30070c0 feat: reject negative/nonsensical flag values with a clear error instead of letting slice/channel allocations panic
Compare 2 commits »
Kharec pushed to main at Kharec/goyco 2025-11-21 14:30:40 +01:00
0dcd5fec51 fix: Makefile fuzz target to enumerate fuzz functions per package and run each individually
Kharec pushed to main at Kharec/goyco 2025-11-21 13:13:31 +01:00
96c054aa99 feat: add new parameter
bdd7766275 docs: update readme
Compare 2 commits »