Sandro CURY CAZZANIGA Kharec
Kharec pushed to main at Kharec/goyco 2025-11-23 13:16:47 +01:00
52c9f4a02b feat: add internal/dto to swagger directories
Kharec pushed to main at Kharec/goyco 2025-11-23 13:14:44 +01:00
be91a135bc clean: empty line
2d7ff9778b feat: update swagger comments following dtos relocation
4ff3fd3583 refactor: remove UpdatePostRequest definition and update swagger comments
73121cad15 refactor: remove all request DTO, update swagger comments and update token related methods to use dto ones
c5bf1b2fd8 feat: locate post-related request DTOs
Compare 6 commits »
Kharec pushed to main at Kharec/m2h 2025-11-23 11:36:11 +01:00
cee5bc89fa docs: update requirements in readme
Kharec pushed to main at Kharec/m2h 2025-11-23 11:35:00 +01:00
c43f718495 feat: use Getopt::Long to handle command line options
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 »