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

supabase / supabase-flutter / 38746912467
92%

Build:
DEFAULT BRANCH: main
Ran 15 Oct 2026 01:57PM UTC
Jobs 11
Files 178
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

15 Oct 2026 01:55PM UTC coverage: 92.261% (-0.003%) from 92.264%
38746912467

push

github

web-flow
fix(postgrest): address a hinted embed by its table name outside the select list (#1962)

## Summary

Follow-up to #1960, from a review of that PR.

A relation with a foreign key hint and no alias, such as a hand-written
`PostgrestToOneRelation('users!messages_username_fkey', ...)`, was
addressed by its hinted name everywhere outside the `select` list.
PostgREST matches those paths against the alias or the table name only.
Checked against the local stack:

| Request | Result |
|---|---|
| `messages.limit=1` | applied, 1 row |
| `messages!username.limit=1` | silently ignored, every row |
| `order=users(username).desc` | applied |
| `order=users!username(username).desc` | PGRST100 parse error |

Outside the `select` list, the embed is now addressed by its alias, or
by the table name without the hint. This fixes `embedded()` scopes, and
also the to-one `order` keys and `embeddedFilterName`, which had the
same bug before #1960. Typegen always pairs a hint with an alias, so
generated tables were not affected.

## Other changes

- The `embedded()` dartdoc now says exactly what a repeated call does: a
later limit replaces only the limit, and a later range replaces both the
offset and the limit.
- The untyped `order()` merges its key through `appendOrderKey` instead
of duplicating the merge logic.
- In `MIGRATION.md`, the foreign key paragraph is back next to the
relation text it explains, and the snippet is wrapped to 80 characters.

## Testing

- New unit tests cover a hinted embed with no alias in a scope, in an
order key and in a filter name.
- The full postgrest suite passes against the local stack (623 tests).
`melos analyze` and `dcm analyze` are clean.


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

## Summary by CodeRabbit

* **Bug Fixes**
* Embedded ordering and filters now correctly use the referenced table
name when a foreign-key hint is present without an alias, while
preserving the hint in the select expression.

* ... (continued)

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

10062 of 10906 relevant lines covered (92.26%)

5.36 hits per line

Jobs
ID Job ID Ran Files Coverage
3 supabase - 38746912467.3 15 Oct 2026 02:00PM UTC 17
95.04
GitHub Action Run
4 supabase_storage - 38746912467.4 15 Oct 2026 01:59PM UTC 9
98.47
GitHub Action Run
5 supabase_auth - 38746912467.5 15 Oct 2026 02:01PM UTC 32
92.48
GitHub Action Run
6 supabase_functions - 38746912467.6 15 Oct 2026 01:57PM UTC 4
93.28
GitHub Action Run
7 iceberg - 38746912467.7 15 Oct 2026 01:56PM UTC 6
71.32
GitHub Action Run
8 postgrest - 38746912467.8 15 Oct 2026 02:00PM UTC 32
94.3
GitHub Action Run
9 supabase_typegen - 38746912467.9 15 Oct 2026 01:59PM UTC 25
97.14
GitHub Action Run
10 supabase_realtime - 38746912467.10 15 Oct 2026 02:00PM UTC 14
90.92
GitHub Action Run
11 supabase_flutter - 38746912467.11 15 Oct 2026 01:57PM UTC 15
80.58
GitHub Action Run
11 yet_another_json_isolate - 37623283614.11 07 Oct 2026 12:48PM UTC 1
98.44
GitHub Action Run
11 supabase_common - 38742076258.11 15 Oct 2026 01:23PM UTC 23
87.92
GitHub Action Run
Source Files on build 38746912467
  • Tree
  • List 178
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38746912467
  • 8d9a929d on github
  • Prev Build on main (#38742076258)
  • Next Build on main (#38891341718)
  • 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