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

supabase / supabase-flutter / 41836602004
94%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 01:17PM UTC
Jobs 12
Files 194
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

04 Nov 2026 01:16PM UTC coverage: 94.178% (+0.001%) from 94.177%
41836602004

push

github

web-flow
fix(functions): keep a query string in the function name when adding query parameters (#2120)

## What kind of change does this PR introduce?

Bug fix.

## What is the current behavior?

`invoke('search?q=dart')` sends `q=dart` only when the call adds no
query parameters of its own. When `queryParameters` is passed, or a
region applies (including a client default region from
`FunctionsClientOptions`), `Uri.replace(queryParameters: ...)` swaps out
the whole query, so `q` is dropped and nothing reports an error.
supabase-js keeps the query string in this case.

## What is the new behavior?

The query string in the function name is kept, and the new parameters
are added to it. If a parameter in `queryParameters` or
`forceFunctionRegion` has the same name as one in the function name, the
new value replaces the old one, the same way `URLSearchParams.set` works
in supabase-js. A call that adds no parameters sends the URL as before.

Two tests in `invoke_test.dart` cover this: one with `queryParameters`
and a per-call region, and one with a client default region.

## Additional context

Without the fix, both new tests fail. With it, all 101
`supabase_functions` tests pass. `dart analyze --fatal-infos` and `dart
format` report no issues.

Fixes #2119


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

## Summary by CodeRabbit

* **Bug Fixes**
* Function requests now retain query parameters embedded in the function
name when additional parameters are supplied.
* Explicit query parameters replace embedded values with the same key,
while other embedded parameters remain intact.
* Region parameters are included from either the invocation-level
setting or the client’s configured region.
* **Documentation**
* Clarified how embedded and explicitly supplied query parameters are
handled.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Lukas Klingsbo <lukas.... (continued)

6 of 6 new or added lines in 1 file covered. (100.0%)

12667 of 13450 relevant lines covered (94.18%)

6.9 hits per line

Jobs
ID Job ID Ran Files Coverage
3 supabase_functions - 41836602004.3 04 Nov 2026 01:17PM UTC 4
94.15
GitHub Action Run
4 supabase - 41836602004.4 04 Nov 2026 01:21PM UTC 21
94.52
GitHub Action Run
5 supabase_realtime - 41836602004.5 04 Nov 2026 01:20PM UTC 15
92.27
GitHub Action Run
6 supabase_flutter - 41836602004.6 04 Nov 2026 01:18PM UTC 16
89.08
GitHub Action Run
7 supabase_test - 41836602004.7 04 Nov 2026 01:17PM UTC 9
93.73
GitHub Action Run
8 supabase_storage - 41836602004.8 04 Nov 2026 01:19PM UTC 13
95.96
GitHub Action Run
9 iceberg - 41836602004.9 04 Nov 2026 01:17PM UTC 7
99.72
GitHub Action Run
10 supabase_typegen - 41836602004.10 04 Nov 2026 01:19PM UTC 6
94.44
GitHub Action Run
11 supabase_auth - 41836602004.11 04 Nov 2026 01:22PM UTC 34
94.3
GitHub Action Run
12 postgrest - 41836602004.12 04 Nov 2026 01:20PM UTC 30
92.88
GitHub Action Run
4 supabase_common - 41623445554.4 03 Nov 2026 10:58AM UTC 37
94.39
GitHub Action Run
2 yet_another_json_isolate - 41623445554.2 03 Nov 2026 10:58AM UTC 2
98.65
GitHub Action Run
Source Files on build 41836602004
  • Tree
  • List 194
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41836602004
  • e5daacd1 on github
  • Prev Build on main (#41832255342)
  • Next Build on main (#41839991989)
  • 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