fix: kong DNS delay on Docker on WSL2#20
Merged
Merged
Conversation
|
🎉 This PR is included in version 0.3.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
dumko2001
pushed a commit
to dumko2001/cli
that referenced
this pull request
Mar 15, 2026
kallebysantos
pushed a commit
to kallebysantos/supabase-cli
that referenced
this pull request
May 6, 2026
## Summary This PR stitches authenticated CLI users to telemetry using the canonical Management API profile instead of relying on `user_id` coming back from the login session response. It also refreshes the generated `@supabase/api` client so the CLI can call `/v1/profile`, and adds a small spec-download step to make regenerating the SDK reproducible from production or staging. ## What changed - Added `fetchProfile` to the CLI auth API and implemented it via `@supabase/api/effect`'s `v1GetProfile`. - Updated both token-based login and browser OAuth login to: - save the access token first, - fetch the authenticated profile from `/v1/profile`, - alias and identify telemetry with `gotrue_id`, - persist the stitched `distinct_id` when profile lookup succeeds, - clear any stale `distinct_id` when profile lookup fails. - Centralized login telemetry capture so `cli_login_completed` is emitted with the authenticated `distinct_id` when available. - Expanded CLI unit/integration test coverage for successful stitching and failure fallback behavior. - Added `packages/api/scripts/download-openapi.ts` plus unit tests. - Updated `packages/api` generation so `generate` first refreshes `src/generated/openapi.json`, with optional `SUPABASE_API_URL` support for staging. - Regenerated the API contracts/operations from the latest OpenAPI spec, including `/v1/profile`. ## Reviewer notes - Most of the churn in `packages/api/src/generated/*` and `openapi.json` is generated output from refreshing the Management API spec. - The user-facing login flow is unchanged; the behavior change is in how we resolve and persist telemetry identity after authentication. ## Coverage - Added `apps/cli` auth API unit tests for profile fetch success/error handling. - Updated login integration tests for token and browser flows to cover telemetry stitching and stale `distinct_id` cleanup. - Added unit tests for the OpenAPI download script.
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Bug fix.
What is the current behavior?
Closes #14.
What is the new behavior?
Add the suggested Kong config.