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

supabase / supabase-py / 41634096736
99%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 12:15PM UTC
Jobs 29
Files 170
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

03 Nov 2026 12:14PM UTC coverage: 96.087% (+0.05%) from 96.041%
41634096736

push

github

web-flow
fix(storage): accept field names in MetadataConfiguration (#1921)

Fixes SDK-2668.

## Problem

`MetadataConfiguration`, the input model for `create_index(...,
metadata=...)`, could only be built with its camelCase alias.
`MetadataConfiguration(non_filterable_metadata_keys=["body"])` raised
`ValidationError: nonFilterableMetadataKeys Field required`, because
`extra="ignore"` silently dropped the snake_case keyword. The field was
also typed `list[str] | None` without a default, so it was required
anyway.

## Changes

- `MetadataConfiguration.non_filterable_metadata_keys` now defaults to
`None`, accepts both `non_filterable_metadata_keys` and
`nonFilterableMetadataKeys` on validation (`AliasChoices`), and
serializes as `nonFilterableMetadataKeys`.
- I used `validation_alias` plus `serialization_alias` instead of
`validate_by_name=True` because type checkers (mypy without the pydantic
plugin, pyright) only see the `alias` as the `__init__` parameter. With
this approach the snake_case name is the typed keyword, and the
camelCase alias still works at runtime and when parsing server responses
(`VectorIndex.metadata`).
- Trade-off: code that type checks
`MetadataConfiguration(nonFilterableMetadataKeys=[...])`, the only form
that worked before, still runs but now gets a static type error from
mypy and pyright (`No parameter named "nonFilterableMetadataKeys"`). It
is fixed by switching to `non_filterable_metadata_keys=`. Type checkers
can only expose one of the two names on `__init__`, and the Python field
name is the one that should be public.
- `create_index` dumps with `exclude_none=True` and omits
`metadataConfiguration` when nothing is left. `MetadataConfiguration()`
therefore sends the same body as `metadata=None`, instead of
`{"nonFilterableMetadataKeys": null}`, which the API does not accept as
a valid configuration. An explicit empty list is still sent as
`{"nonFilterableMetadataKeys": []}`.
- `_sync/vectors.py` regenerated with `make storage.build-sy... (continued)

12940 of 13467 relevant lines covered (96.09%)

4.9 hits per line

Coverage Regressions

Lines Coverage ∆ File
17
66.67
2.81% src/storage3/_async/vectors.py
14
66.67
2.81% src/storage3/_sync/vectors.py
Jobs
ID Job ID Ran Files Coverage
1 run-ubuntu-latest-3.14-functions - 41634096736.1 03 Nov 2026 12:15PM UTC 18
97.98
GitHub Action Run
2 run-ubuntu-latest-3.15-functions - 41634096736.2 03 Nov 2026 12:15PM UTC 18
97.98
GitHub Action Run
3 run-ubuntu-latest-3.13-functions - 41634096736.3 03 Nov 2026 12:15PM UTC 18
97.98
GitHub Action Run
4 run-ubuntu-latest-3.11-postgrest - 41634096736.4 03 Nov 2026 12:16PM UTC 39
97.7
GitHub Action Run
5 run-ubuntu-latest-3.11-auth - 41634096736.5 03 Nov 2026 12:15PM UTC 59
94.43
GitHub Action Run
6 run-ubuntu-latest-3.12-functions - 41634096736.6 03 Nov 2026 12:15PM UTC 18
97.98
GitHub Action Run
7 run-ubuntu-latest-3.12-postgrest - 41634096736.7 03 Nov 2026 12:16PM UTC 39
97.7
GitHub Action Run
8 run-ubuntu-latest-3.15-auth - 41634096736.8 03 Nov 2026 12:16PM UTC 59
94.41
GitHub Action Run
9 run-ubuntu-latest-3.12-realtime - 41634096736.9 03 Nov 2026 12:16PM UTC 17
93.12
GitHub Action Run
10 run-ubuntu-latest-3.14-postgrest - 41634096736.10 03 Nov 2026 12:16PM UTC 39
97.7
GitHub Action Run
11 run-ubuntu-latest-3.13-storage - 41634096736.11 03 Nov 2026 12:16PM UTC 41
95.94
GitHub Action Run
12 run-ubuntu-latest-3.14-auth - 41634096736.12 03 Nov 2026 12:15PM UTC 59
94.41
GitHub Action Run
13 run-ubuntu-latest-3.14-realtime - 41634096736.13 03 Nov 2026 12:16PM UTC 17
92.67
GitHub Action Run
14 run-ubuntu-latest-3.15-supabase - 41634096736.14 03 Nov 2026 12:15PM UTC 20
96.84
GitHub Action Run
15 run-ubuntu-latest-3.11-functions - 41634096736.15 03 Nov 2026 12:15PM UTC 18
97.98
GitHub Action Run
16 run-ubuntu-latest-3.13-supabase - 41634096736.16 03 Nov 2026 12:15PM UTC 20
96.85
GitHub Action Run
17 run-ubuntu-latest-3.13-postgrest - 41634096736.17 03 Nov 2026 12:16PM UTC 39
97.7
GitHub Action Run
18 run-ubuntu-latest-3.11-storage - 41634096736.18 03 Nov 2026 12:16PM UTC 41
95.94
GitHub Action Run
19 run-ubuntu-latest-3.15-postgrest - 41634096736.19 03 Nov 2026 12:16PM UTC 39
97.7
GitHub Action Run
20 run-ubuntu-latest-3.12-auth - 41634096736.20 03 Nov 2026 12:15PM UTC 59
94.43
GitHub Action Run
21 run-ubuntu-latest-3.11-supabase - 41634096736.21 03 Nov 2026 12:15PM UTC 20
96.85
GitHub Action Run
22 run-ubuntu-latest-3.11-realtime - 41634096736.22 03 Nov 2026 12:16PM UTC 17
93.21
GitHub Action Run
23 run-ubuntu-latest-3.13-auth - 41634096736.23 03 Nov 2026 12:16PM UTC 59
94.43
GitHub Action Run
24 run-ubuntu-latest-3.15-storage - 41634096736.24 03 Nov 2026 12:17PM UTC 41
95.92
GitHub Action Run
25 run-ubuntu-latest-3.12-supabase - 41634096736.25 03 Nov 2026 12:15PM UTC 20
96.85
GitHub Action Run
26 run-ubuntu-latest-3.14-storage - 41634096736.26 03 Nov 2026 12:16PM UTC 41
95.92
GitHub Action Run
27 run-ubuntu-latest-3.14-supabase - 41634096736.27 03 Nov 2026 12:15PM UTC 20
96.84
GitHub Action Run
28 run-ubuntu-latest-3.13-realtime - 41634096736.28 03 Nov 2026 12:16PM UTC 17
93.12
GitHub Action Run
29 run-ubuntu-latest-3.12-storage - 41634096736.29 03 Nov 2026 12:16PM UTC 41
95.94
GitHub Action Run
Source Files on build 41634096736
  • Tree
  • List 170
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41634096736
  • e0b5716b on github
  • Prev Build on main (#41633202749)
  • Next Build on main (#41634342601)
  • 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