Repository navigation
docs(dart): storage buckets, streaming/cache-purge, web3, OAuth grants, and July additions - #47971
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughChangesThe Dart v2 specification expands authentication, OAuth, function cancellation, storage listing and cache controls, and database modifier documentation. The reference generator now excludes Analytics and Vector bucket headers from generated declarations. Dart v2 documentation
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/docs/spec/supabase_dart_v2.yml`:
- Around line 5674-5678: Update both createIndex examples to use the same
three-element vector dimension as the subsequent insert and query examples,
including the second createIndex occurrence and all referenced examples. Keep
the existing cosine distance metric and vector values unchanged.
- Around line 3068-3084: Update the “aborting-a-request” Dart example to
reference the exception through the http package namespace, using
http.RequestAbortedException in the catch clause, and ensure the example imports
package:http so the type resolves without relying on supabase_flutter exports.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: b5d9e269-fd9b-4931-966d-b98a481dc2df
📒 Files selected for processing (2)
apps/docs/scripts/generate-dart-reference.tsapps/docs/spec/supabase_dart_v2.yml
f0bfb39 to
29d6d4a
Compare
0f5d0ba to
9d12ca7
Compare
f0c3ca9 to
68d0cc7
Compare
…ain reference updates (#47728) > **Stacked on #47994** (`docs/dart-reference-categories-in-yaml`). Review/merge that first; GitHub will retarget this to `master` once it lands. ## What Adds Dart client library reference entries (`apps/docs/spec/supabase_dart_v2.yml`) for features shipped in [`supabase/supabase-flutter`](https://github.com/supabase/supabase-flutter) (parity with `supabase-js`). Rebuilt on the **new reference pipeline** (#47224 / #47994): each method's section comes from `category` / `subcategory` fields on its own YAML entry, with subcategory overviews as committed partials under `spec/reference/dart/v2/partials/`. As a result this PR no longer touches `common-client-libs-sections.json` or `supabase_js_v2.yml` (the earlier shared-nav id rename is unnecessary now that Dart no longer reads that file). ## Changes **Auth (OAuth 2.1 server)** — new **OAuth Server** section - `oauth.getAuthorizationDetails()`, `oauth.approveAuthorization()`, `oauth.denyAuthorization()` **Auth admin** — new **Custom Provider Admin** section - `admin.customProviders.listProviders/createProvider/getProvider/updateProvider/deleteProvider`, including `customClaimsAllowlist` **Realtime** - `onHeartbeat` - `onPostgresChanges` examples for the new pattern/negated filter operators, multiple filters, and column selection **Postgrest** - `explain()` `format` option (`ExplainFormat.text` / `.json`) ## Pipeline plumbing - New partials: `oauth-server.json`, `custom-provider-admin.json` - `generate-dart-reference.ts`: registers `oauth-server-api` and `admin-custom-providers-api` group-header ids in `HEADER_IDS` ## Source PRs supabase-flutter: #1499, #1516, #1517, #1519, #1526 ## Verification `pnpm codegen:references:new` builds cleanly and the nav renders the new **OAuth Server**, **Custom Provider Admin**, and Realtime **onHeartbeat** entries. ## Notes - `RealtimeChannelConfig.replicationReady` (#1526) is omitted since there is no reference slot for channel-config options. - The **OAuth Server** section also appears in #47971 (which adds `listGrants` / `revokeGrant`). Whichever lands second should drop the duplicate section header/partial and keep both sets of methods. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added OAuth 2.1 server consent-flow methods for retrieving, approving, and denying authorization requests. * Added admin APIs for managing custom OIDC/OAuth providers. * Added Realtime heartbeat monitoring and advanced Postgres change filters. * Added text and JSON output options for query explanations. * **Documentation** * Expanded Dart API reference coverage across Auth, MFA, Passkeys, Database, Realtime, and Storage. * Added dedicated reference sections for OAuth Server and Custom Provider administration. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
…ants, and July additions Adds Dart reference entries and enrichments for supabase-flutter features shipped July 8 to 15. Stacked on #47994: methods carry no section metadata and inherit it from the nearest section header. New sections are added as header entries (with category/subcategory) plus overview partials. New sections and entries: - storage: Vector Buckets section (create/get/list/delete bucket, index management, and vector put/get/list/query/delete) - storage: Analytics Buckets section (analytics catalog accessor and bucket create/list/delete) - storage: listPaginated (list files v2) under File Buckets - auth: signInWithWeb3 - auth: OAuth Server section with listGrants and revokeGrant - database: stripNulls modifier Enrichments to existing entries: - storage: cacheNonce on getPublicUrl/createSignedUrl/download, and filter/sort/pagination options on listBuckets - auth: mfa.challenge channel, updateUser currentPassword, async getSession - functions: invoke abortSignal Adds partials for the three new sections and registers their header ids in the converter's HEADER_IDS. Excludes items already covered by #47728.
68d0cc7 to
8be8050
Compare
czenko
left a comment
There was a problem hiding this comment.
Verified that the documentation built correctly by running the command.
Recommend including a section in the PR description to manually test and see the Preview. Docs Preview was skipped, making code review take longer than necessary.
Braintrust eval report
|
What
Updates the Dart/Flutter reference (
apps/docs/spec/supabase_dart_v2.yml) for features shipped insupabase/supabase-flutterin July (through the July 17 storage CDN-cache additions).Built on the new reference pipeline (#47224 / #47994): each method's section is inherited from the nearest section-header entry in the YAML, and subcategory overviews are committed partials under
spec/reference/dart/v2/partials/.common-client-libs-sections.jsonis not touched.Scoped to items not already covered by #47728 (OAuth server authorization details, custom providers admin,
explainformat, realtimeonHeartbeatand filter examples). Rebased ontomasternow that #47994 and #47728 have landed.New reference entries
Storage
supabase.storage.vectors)createAnalyticsBucket,listAnalyticsBuckets,deleteAnalyticsBucket, and theanalyticsCatalog()accessorlistPaginated(list files v2), under File BucketsdownloadStream()(streaming file downloads), under File BucketspurgeCache()(object CDN cache invalidation) andpurgeBucketCache()(bucket CDN cache invalidation)Auth
signInWithWeb3listGrantsandrevokeGrant(in the OAuth Server section,supabase.auth.oauth)Database
stripNulls()modifierEnrichments to existing entries
cacheNonceongetPublicUrl/createSignedUrl/download; filter/sort/pagination options onlistBucketschannelonmfa.challenge();currentPasswordonupdateUser; asyncgetSession()note and example;friendlyNameonregisterPasskey()andpasskey.startRegistration()abortSignaloninvokePipeline plumbing
analytics-buckets.json,vector-buckets.json,oauth-server.jsongenerate-dart-reference.ts: registersanalytics-buckets,vector-buckets, andoauth-server-apigroup-header ids inHEADER_IDSso they render as section overviews rather than methodsSource PRs
supabase-flutter: #1547, #1554, #1557, #1559, #1561, #1563, #1578, #1579, #1580, #1585, #1588, #1590, #1591, #1593, #1603, #1607, #1608
Verification
pnpm codegen:references:dartbuilds cleanly: the generator writes 141 method declarations (all ids resolve to a section, no invalid method names, no slug collisions), and the nav renders the Analytics Buckets, Vector Buckets, and OAuth Server sections with the expected methods.Notes
IcebergRestCatalogAPI, which lives in a standaloneiceberg-jspackage upstream),dryRun, functions exception subtypes, trace-context headers,persistSession, configurable postgrest timeout/retry.storageanalytics-frommaps to Dart'sanalyticsCatalog(bucketId)(the Iceberg catalog entry point), since Dart has noanalytics.from()equivalent.Summary by CodeRabbit
New Features
cacheNonce, and cache/purge support.stripNulls()database modifier and cursor-based paginated storage listing.Documentation
currentPassword,friendlyName, and clarifiedcurrentSessionvsgetSession().abortSignalsupport and examples forsupabase.functions.invoke().Bug Fixes