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

supabase / supabase-flutter / 41836602004 / 3
94%
main: 94%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 01:22PM UTC
Files 4
Run time 0s
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.152% (+0.1%) from 94.012%
41836602004.3

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)

161 of 171 relevant lines covered (94.15%)

2.51 hits per line

Source Files on job supabase_functions - 41836602004.3
  • Tree
  • List 4
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41836602004
  • e5daacd1 on github
  • Prev Job for on main (#41832255342.5)
  • Next Job for on main (#41839991989.5)
  • 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