Skip to content

[codex] fix SupportOps Supabase recovery#15

Merged
sonnymay merged 1 commit into
mainfrom
codex/supportops-supabase-recovery
Jun 16, 2026
Merged

[codex] fix SupportOps Supabase recovery#15
sonnymay merged 1 commit into
mainfrom
codex/supportops-supabase-recovery

Conversation

@sonnymay

Copy link
Copy Markdown
Owner

Summary

  • Add safe Supabase request handling so database failures return clear 503 responses instead of raw 500s.
  • Add /health/dependencies for Render/Supabase readiness checks.
  • Convert blank optional relationship IDs from the frontend to null before sending UUID fields to Supabase.
  • Add backend/supabase/schema.sql so SupportOps tables and demo rows can be recreated from source.
  • Document the dependency healthcheck and schema file.

Root Cause

Production /health worked, but /dashboard, /customers, and /tickets returned 500 because the Supabase supportops project was inactive and the public schema had no usable app data. I restored the Supabase project, verified it is healthy, and seeded/recovered the app tables.

Validation

  • Backend live endpoints recovered before code deploy: /dashboard, /customers, /tickets, /devices, /rmas returned 200.
  • Local backend tests: 22 passed.
  • ruff check, ruff format --check, and mypy passed.
  • Frontend build passed.

Deploy Notes

After merge/deploy, verify /health/dependencies and the main API routes on Render.

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
supportops Ready Ready Preview, Comment Jun 16, 2026 4:43am

@sonnymay sonnymay marked this pull request as ready for review June 16, 2026 04:44
@sonnymay sonnymay merged commit cb8cc66 into main Jun 16, 2026
7 checks passed
@sonnymay sonnymay deleted the codex/supportops-supabase-recovery branch June 16, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant