Repository navigation
Read Supabase projects, logs and insights through the distilled SDK - #2859
Conversation
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This comment has been minimized.
This comment has been minimized.
91a3349 to
47810fd
Compare
ea29ecc to
7a781e7
Compare
This comment has been minimized.
This comment has been minimized.
47810fd to
264743b
Compare
…illed SDK Organizations, projects, project logs, the advisors and the read-only query go through @distilled.cloud/supabase on the vendor-sdk adapter. The OAuth revoke (sends no bearer) and the v2 log drains (not in the spec) stay on plain HTTP. The adapter gains rateLimitResetHeader: Supabase sends its 429 wait as x-ratelimit-reset, which the SDK does not read, so it is copied into retry-after before the SDK sees the answer. The SDK's `HTTP <status>` stand-in for an empty error body is no longer kept as the vendor message.
7a781e7 to
3b05549
Compare
Maple review🟢 Confidence 10/10 · safe to merge. The SDK swap keeps each schema, error type and status classification, and the 429 back-off path is pinned by both the new adapter test and the existing Supabase service suite. Moves Supabase organizations, projects, advisors, the read-only query and project logs onto
|
Maple: after this shipped✅ Shipped clean. Nothing this change touches got worse in the hour after it deployed. Deployed at 2026-11-19 15:46 UTC as
Details are in Maple. A public repository's comment names no service, operation or error. |
Maple: after this shipped✅ Shipped clean. Nothing this change touches got worse in the hour after it deployed. Deployed at 2026-11-19 15:46 UTC as
Details are in Maple. A public repository's comment names no service, operation or error. |
Stacked on #2858. Moves the Supabase Management API reads onto
@distilled.cloud/supabase, through thevendor-sdkadapter from #2858.What changed
pg_stat_statementsquery. Each keeps its own schema decode, error type and messages, so callers and the services' tests are unchanged.rateLimitResetHeader: Supabase sends its 429 wait asx-ratelimit-reset, which the SDK does not read. The adapter copies it intoretry-afterbefore the SDK sees the answer, so the poller's back-off still gets the wait, asvendor-httpdid.HTTP <status>when a refusal has no message. That is no longer kept as the vendor's message, so Supabase's "the OAuth app may be missing a scope" hint on a bare 403 still shows.Behaviour to know about
logsQueryRequestnow returns the SDK input (ref,sqland the two timestamps) instead of a path and query; its unit test follows. The logs service test still checks the SQL sent over the wire.Bundle
@distilled.cloud/supabaseis added toWORKER_PURE_OPTIONS. Spans follow Call Vercel teams, projects, deployments and drains through the distilled SDK #2858: oneVendorSdk.requestClient span per attempt, none of the SDK's.Verification
vendor-sdk.test.tsgains two cases: a 429 whose wait comes inx-ratelimit-reset, and a 403 with an empty body keeping no message.vitestoverservices/integrationsandservices/cost: 1,628 passed.packages/backendtypecheck: no errors.oxlint -c .oxlintrc.effect.jsonandoxfmton every changed file: clean.No UI change, so no screenshots.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.