Commit Graph

13 Commits

Author SHA1 Message Date
Michael Hohn
1377d4cec9 start repoID counter at 1, not 0 2025-07-29 11:15:36 -07:00
ec8bb0cc63 fix repo id handling and PostgreSQL Query Ordering
Patch 1: PostgreSQL Query Ordering
Fixed GetJobList() to return jobs ordered by job_repo_id
Added JOIN with job_repo_map table to ensure proper ordering
This ensures slice indices match the stored repository IDs

Patch 2: Updated Comments
Removed the TODO comment about hacky job IDing
Added explanation that ordering is now consistent

Patch 3: Added Validation
Added runtime validation to catch ID mismatches
Logs warnings/errors if slice index doesn't match expected job_repo_id
Helps debug issues in different state implementations
2025-07-25 16:31:34 -07:00
8d7aa780ed fix: use postgres to generate gap/concurrency/race-safe job_repo_it
This takes the place of the mutex used by the in-memory version
2025-07-25 15:51:11 -07:00
Michael Hohn
43a7143e27 fix: code logic updates: make sessionID consistent with original 2025-07-17 10:28:31 -07:00
0d6e31713f Create a new PGState, reading connection info from env vars 2025-07-14 13:26:23 -07:00
a2cfe0676c wip: update state_postgres, update dependent modules 2025-07-11 15:34:07 -07:00
f920a799d3 wip: postgres state: update SetupSchemas, add GetJobSpecByRepoId 2025-07-11 15:24:48 -07:00
41146f5aaf wip: postgres state: update SetupSchemas, finish ServerState interface 2025-07-11 14:47:30 -07:00
173a61e3fa wip: postgres state: add SetupSchemas, SetResult, GetResult 2025-07-11 14:26:07 -07:00
e294fcdf4f wip: first NewPGState 2025-07-11 14:07:51 -07:00
Michael Hohn
2409728960 fix: reconciled status names between server/agent/vscode-codeql 2025-03-14 12:45:36 -07:00
Michael Hohn
a5bb232af2 Use full repository path name in place of mrvacommander 2024-12-13 10:54:35 -08:00
Nicolas Will
e0cbc01d21 Fully implement local and container MRVA 2024-06-24 01:31:28 -04:00