Closed
Labels
Description
A cluster of references where the table exists but the route names the wrong schema or a transposed name. Each is mechanical; grouped because the fix and the test are the same.
| route file | queried | actual | effect |
|---|---|---|---|
webhooks.ts:49,118,185 |
core.webhooks |
public.webhooks |
GET /v1/webhooks 500s; webhook management unusable |
teams.ts:1153,1220,1279 |
core.team_job_assignments |
core.job_team_assignments (words transposed) |
GET /v1/teams/{id}/job-assignments 500s |
office-certifications.ts:65,92 |
public.certifications |
core.certifications |
office admin cannot create or update a certification |
office-universities.ts:243 |
public.user_education |
core.user_education |
student count per university silently reads 0 |
office-communities.ts:146 |
community.users |
core.users |
— |
GET /v1/webhooks and GET /v1/teams/{id}/job-assignments were confirmed 500 against a live stack. The other three return null/count: null and are coerced to empty, so they degrade silently — the university student count in particular shows 0 for every university.
Acceptance
- Each reference names the right schema and table
-
GET /v1/webhooksandGET /v1/teams/{id}/job-assignmentsreturn 200 - The university student count returns a real number for a seeded university
- The corresponding entries are removed from
BASELINE_BROKENintable-references-exist.test.ts(test(api): fail when a route reads a table that does not exist #651) — the test fails if they are fixed but left listed
Found by the sweep behind #651.
Activity
fix(api): five routers addressed tables that do not exist, and one te…
fix(api): five routers addressed tables that do not exist, and one te…
fix(api): five routers addressed tables that do not exist, and one te…