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

supabase / supabase-flutter / 39780106395
93%

Build:
DEFAULT BRANCH: main
Ran 22 Oct 2026 12:41PM 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:39PM UTC coverage: 91.657% (-0.03%) from 91.684%
39780106395

push

github

web-flow
feat(supabase)!: reject unsupported typed stream orderings at compile time (#2014)

## Summary

Follow-up to #2010. The typed stream `order()` took any
`PostgrestOrdering`, so orderings a stream cannot honour compiled and
only threw an `ArgumentError` when the stream was built:

```dart
supabase
    .table(Books.table)
    .stream(primaryKey: [Books.id])
    .order(Books.price.desc().nullsLast()); // compiled, threw at runtime
```

The old `PostgrestStoredColumn` parameter made these compile errors.
This PR does the same again, without going back to the `ascending`
argument.

## Changes

- **New `PostgrestColumnOrdering<Row>`**, a subtype of
`PostgrestOrdering<Row>` that is an ordering by a stored column with at
most a direction. Every stored column is one, and its `asc()`/`desc()`
return one.
- **Plain `PostgrestOrdering<Row>`** is still what you get from
`nullsFirst()`/`nullsLast()` and from every non-stored expression
(computed fields, casts, JSON paths, embedded columns).
- **`SupabaseTypedStreamBuilder.order()`** now takes a
`PostgrestColumnOrdering<Row>`, and both `ArgumentError` checks are
gone. `PostgrestTypedTransformBuilder.order()` still takes
`PostgrestOrdering<Row>`, so queries accept everything they did before.
- **Internal getters** that the stream reads (`column`, `direction`) now
live on `PostgrestColumnOrdering` only. `PostgrestOrdering` no longer
has them, so they no longer show up in autocomplete on computed fields,
casts or orderings with a null placement.

```dart
stream.order(Books.title);                    // compiles
stream.order(Books.createdAt.desc());         // compiles
stream.order(Books.createdAt.desc().nullsLast()); // compile error
stream.order(Users.fullName);                 // compile error (computed field)
query.order(Books.createdAt.desc().nullsLast());  // still compiles
```

The rendered `order` keys do not change.

## Breaking change

Only for code that passed a null placement or a non-stored expression to
a t... (continued)

22 of 37 new or added lines in 3 files covered. (59.46%)

2 existing lines in 1 file now uncovered.

10723 of 11699 relevant lines covered (91.66%)

5.38 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
48.72
4.27% packages/postgrest/lib/src/postgrest_ordering.dart
3
91.67
1.19% packages/postgrest/lib/src/postgrest_column_expression.dart

Coverage Regressions

Lines Coverage ∆ File
2
48.72
4.27% packages/postgrest/lib/src/postgrest_ordering.dart
Jobs
ID Job ID Ran Files Coverage
3 supabase_auth - 39780106395.3 22 Oct 2026 12:44PM UTC 34
93.38
GitHub Action Run
4 supabase - 39780106395.4 22 Oct 2026 12:44PM UTC 20
93.5
GitHub Action Run
5 supabase_storage - 39780106395.5 22 Oct 2026 12:43PM UTC 10
96.26
GitHub Action Run
6 iceberg - 39780106395.6 22 Oct 2026 12:41PM UTC 6
71.32
GitHub Action Run
7 supabase_realtime - 39780106395.7 22 Oct 2026 12:43PM UTC 14
91.17
GitHub Action Run
8 supabase_typegen - 39780106395.8 22 Oct 2026 12:42PM UTC 6
94.36
GitHub Action Run
9 supabase_flutter - 39780106395.9 22 Oct 2026 12:42PM UTC 16
80.84
GitHub Action Run
10 supabase_functions - 39780106395.10 22 Oct 2026 12:41PM UTC 4
93.28
GitHub Action Run
11 postgrest - 39780106395.11 22 Oct 2026 12:43PM UTC 28
91.26
GitHub Action Run
10 supabase_common - 39779326806.10 22 Oct 2026 12:35PM UTC 35
93.58
GitHub Action Run
6 yet_another_json_isolate - 39779326806.6 22 Oct 2026 12:35PM UTC 1
98.44
GitHub Action Run
Source Files on build 39780106395
  • Tree
  • List 174
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39780106395
  • 6083d666 on github
  • Prev Build on main (#39779326806)
  • Next Build on main (#39922342490)
  • 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