Skip to content

Wrong-schema table references: webhooks, teams job assignments, office admin routes #657

Closed

Description

@thinkclay

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/webhooks and GET /v1/teams/{id}/job-assignments return 200
  • The university student count returns a real number for a seeded university
  • The corresponding entries are removed from BASELINE_BROKEN in table-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions