• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-flutter / 35612852937
94%

Build:
DEFAULT BRANCH: main
Ran 21 Sep 2026 02:34PM UTC
Jobs 11
Files 160
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Sep 2026 02:32PM UTC coverage: 90.678% (+0.1%) from 90.562%
35612852937

push

github

web-flow
fix(postgrest)!: disallow filters chained after insert() and upsert() (#1865)

## What kind of change does this PR introduce?

Bug fix, breaking change to the return type of `insert()` and
`upsert()`.

Fixes
[SDK-1926](https://linear.app/supabase/issue/SDK-1926/fixpostgrest-disallow-filter-clauses-chained-after-insert).

## What is the current behavior?

A filter can be chained after `insert()` or `upsert()`, for example
`.insert({...}).eq('id', 1)`. An insert has no existing rows to filter
and PostgREST ignores every filter sent with a `POST`, so the call
compiles and runs but the filter does nothing.

## What is the new behavior?

`insert()` and `upsert()` return a `PostgrestTransformBuilder<void>`
instead of a `PostgrestFilterBuilder<void>`, and the typed `insert()`,
`insertAll()`, `upsert()` and `upsertAll()` return a
`PostgrestTypedTransformBuilder<Row, void>` instead of a
`PostgrestTypedFilterBuilder<Row, void>`. A filter chained after any of
them is now a compile-time error. `select()`, `order()`, `limit()` and
the other transforms, which shape the rows the insert returns, are still
available.

`update()` and `delete()` are unchanged and keep their filters.

## Additional context

- `MIGRATION.md` gets a section under v3 describing the change.
- Regression tests assert the returned builder types for both builder
families and that `insert().select().order().limit()` still builds the
same request.
- Nothing in the workspace or the examples chained a filter after an
insert.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Added migration guidance for the updated insert and upsert builder
behavior.

* **Changes**
* Insert and upsert operations now return transform builders rather than
filter builders.
  * Filtering is no longer available after insert or upsert operations.
* Transform operations such as selecting, ordering, and limiting results
remain supported.
* Typed ins... (continued)

15 of 15 new or added lines in 3 files covered. (100.0%)

39 existing lines in 3 files now uncovered.

8015 of 8839 relevant lines covered (90.68%)

4.71 hits per line

Coverage Regressions

Lines Coverage ∆ File
36
91.55
0.09% packages/supabase_typegen/lib/src/dart_generator.dart
2
91.49
0.38% packages/postgrest/lib/src/postgrest.dart
1
99.45
-0.55% packages/supabase_typegen/lib/src/generator_metadata_parser.dart
Jobs
ID Job ID Ran Files Coverage
4 supabase_typegen - 35612852937.4 21 Sep 2026 02:36PM UTC 22
95.54
GitHub Action Run
5 supabase_functions - 35612852937.5 21 Sep 2026 02:34PM UTC 4
93.81
GitHub Action Run
6 postgrest - 35612852937.6 21 Sep 2026 02:36PM UTC 21
92.71
GitHub Action Run
7 supabase_auth - 35612852937.7 21 Sep 2026 02:37PM UTC 32
92.0
GitHub Action Run
8 supabase_realtime - 35612852937.8 21 Sep 2026 02:36PM UTC 13
90.66
GitHub Action Run
9 supabase_flutter - 35612852937.9 21 Sep 2026 02:34PM UTC 14
77.87
GitHub Action Run
10 supabase_storage - 35612852937.10 21 Sep 2026 02:36PM UTC 9
97.61
GitHub Action Run
11 iceberg - 35612852937.11 21 Sep 2026 02:34PM UTC 6
68.52
GitHub Action Run
3 supabase - 35608843571.3 21 Sep 2026 02:01PM UTC 16
93.66
GitHub Action Run
2 yet_another_json_isolate - 35608843571.2 21 Sep 2026 01:58PM UTC 1
98.44
GitHub Action Run
8 supabase_common - 35608843571.8 21 Sep 2026 01:58PM UTC 22
87.36
GitHub Action Run
Source Files on build 35612852937
  • Tree
  • List 160
  • Changed 9
  • Source Changed 8
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35612852937
  • 86621a3f on github
  • Prev Build on main (#35608843571)
  • Next Build on main (#35615044899)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc