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

supabase / supabase-flutter / 39775457039
92%

Build:
DEFAULT BRANCH: main
Ran 22 Oct 2026 12:06PM UTC
Jobs 11
Files 174
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

22 Oct 2026 12:04PM UTC coverage: 91.762%. Remained the same
39775457039

push

github

web-flow
feat(supabase)!: typed stream order() takes a PostgrestOrdering like the typed query (#2010)

## Summary

The typed stream spelled ordering differently from the typed query:

```dart
// Typed query
supabase.table(Books.table).select().order(Books.createdAt.desc());

// Typed stream, before
supabase
    .table(Books.table)
    .stream(primaryKey: [Books.id])
    .order(Books.createdAt, ascending: false);
```

`SupabaseTypedStreamBuilder.order()` now takes the same
`PostgrestOrdering<Row>` as `PostgrestTypedTransformBuilder.order()`,
for both `stream()` and `streamOnly()`:

```dart
supabase
    .table(Books.table)
    .stream(primaryKey: [Books.id])
    .order(Books.createdAt.desc());
```

A bare column (`.order(Books.title)`) still sorts ascending. Orderings a
stream cannot keep while it merges realtime changes throw an
`ArgumentError`:

- a null placement (`nullsFirst()`/`nullsLast()`), since the stream
always places `null` last ascending and first descending
- an ordering by anything but a stored column, such as a computed field,
a cast or an embedded column, since the stream sorts by a key in each
row

## Implementation

`PostgrestOrdering` previously held only the rendered key string. It now
keeps its column expression, and has `@internal` `column`, `direction`
and `placesNullsFirst` getters that the stream builder reads, the same
way the stream filter reads `PostgrestFilter.comparison`. The rendered
`orderKey` does not change.

## Breaking change

The `ascending` parameter of the typed stream `order()` is gone.
`MIGRATION.md` ("Realtime streams" in the typed table API section) now
shows the `ascending: false` to `.desc()` conversion and lists the
rejected orderings. The same paragraph also no longer says that `not()`
throws on a stream filter, since negated filters are supported.

Resolves SDK-2331


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

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

- **New Fe... (continued)

19 of 26 new or added lines in 3 files covered. (73.08%)

10 existing lines in 2 files now uncovered.

10705 of 11666 relevant lines covered (91.76%)

5.39 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
57.89
0.0% packages/postgrest/lib/src/postgrest_ordering.dart
2
93.14
0.0% packages/postgrest/lib/src/postgrest_column_expression.dart
2
90.91
0.0% packages/supabase/lib/src/supabase_typed_stream_builder.dart

Coverage Regressions

Lines Coverage ∆ File
5
57.89
0.0% packages/postgrest/lib/src/postgrest_ordering.dart
5
93.14
0.0% packages/postgrest/lib/src/postgrest_column_expression.dart
Jobs
ID Job ID Ran Files Coverage
10 supabase_functions - 39775457039.10 22 Oct 2026 12:06PM UTC 4
93.28
GitHub Action Run
11 iceberg - 39775457039.11 22 Oct 2026 12:06PM UTC 6
71.32
GitHub Action Run
6 supabase_storage - 39768280064.6 22 Oct 2026 11:11AM UTC 10
96.26
GitHub Action Run
7 supabase - 39768280064.7 22 Oct 2026 11:12AM UTC 20
93.48
GitHub Action Run
9 supabase_auth - 39768280064.9 22 Oct 2026 11:12AM UTC 34
93.38
GitHub Action Run
11 supabase_common - 39605471296.11 21 Oct 2026 01:10PM UTC 35
93.58
GitHub Action Run
10 supabase_typegen - 39768280064.10 22 Oct 2026 11:09AM UTC 6
94.36
GitHub Action Run
3 postgrest - 39768280064.3 22 Oct 2026 11:11AM UTC 28
91.95
GitHub Action Run
11 supabase_realtime - 39768280064.11 22 Oct 2026 11:11AM UTC 14
91.17
GitHub Action Run
4 supabase_flutter - 39768280064.4 22 Oct 2026 11:09AM UTC 16
80.85
GitHub Action Run
9 yet_another_json_isolate - 39603824352.9 21 Oct 2026 12:58PM UTC 1
98.44
GitHub Action Run
Source Files on build 39775457039
  • Tree
  • List 174
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39775457039
  • 4a32d1f5 on github
  • Prev Build on main (#39768280064)
  • Next Build on main (#39775588260)
  • 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