You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(postgrest): cover rpc(get: true) with not. and unclosed full-text search arguments - #2278
No actionable comments were generated in the recent review.
Walkthrough
The RPC query-fit check now requires not. to precede a recognized filter operator. Tests cover GET and POST selection for not.-prefixed values and other filter-like values.
Changes: RPC GET/POST query-fit handling
Layer / File(s)
Summary
RPC query-fit classification and validation packages/postgrest/lib/src/postgrest_filter.dart, packages/postgrest/test/transform_request_test.dart, packages/postgrest/test/typed_rpc_test.dart, packages/postgrest/test/typed_rpc_integration_test.dart
The syntax check recognizes not. only before a recognized filter operator. Tests cover POST selection for not.available, GET selection for wfts(english, fts(x)y, and nothing.new, and read-only RPC calls using not.available and wfts(english.
supabase/supabase-flutter#2272 reports that not.available remains a GET argument and fails with PGRST100. This PR covers that value, but the issue also mentions list and map arguments.
Possibly related PRs
supabase/supabase-flutter#2152: Both changes affect the untyped RPC GET-to-POST fallback and use postgrestArgumentsFitQuery.
This change only adds tests for how read-only RPC calls choose between GET and POST. It does not alter production behavior in the files reviewed, and no merge-blocking risk is identified.
Pre-merge checks: 4
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the test change, but the PR objectives describe a behavior change: an RPC argument beginning with not. is sent as a POST instead of a GET. The title says the PR covers tests for `rpc…
Full details: Title check
Explanation
The title names the test change, but the PR objectives describe a behavior change: an RPC argument beginning with not. is sent as a POST instead of a GET. The title says the PR covers tests for rpc(get: true) with not. and unclosed full-text search arguments, which matches the test files in the raw summary. It does not state the main behavior change, so the title is only partially related to the main point. The title is specific and is not vague.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Reviewing files that changed from the base of the PR and between 5c1462e and a7b638b.
Files selected for processing: 1
packages/postgrest/test/typed_rpc_test.dart
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
spydon
changed the title
fix(postgrest): send an rpc(get: true) argument starting with not. as a POST
test(postgrest): cover rpc(get: true) with not. and unclosed full-text search arguments
Dec 3, 2026
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
postgrestThis issue or pull request is related to postgrest
1 participant
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.
Tests for which method
rpc(get: true)picks for filter-like arguments. Thenot.fix itself landed in #2273.not.availableis sent as aPOST, in unit and integration tests.wfts(englishstays aGET: the integration test shows PostgREST passes it to the function.fts(x)yandnothing.newalso stay aGET.SDK-3338