Repository navigation
Raise minimum supported version to 1.32.0 - #2250
Conversation
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Secrets | View in Orca |
There was a problem hiding this comment.
🟡 Changes recommended
Several aggregate validation tests omit required search bounds, so they raise before reaching the intended argument validators and can pass even when those validators are broken.
1 open issue
What changed in this PR
Raises the Python client’s minimum supported Weaviate server version to 1.32.0, superseding #2197 and removing compatibility code for older servers.
Changes:
- Enforces the new minimum for synchronous and asynchronous clients, with boundary tests.
- Removes legacy GraphQL aggregation support and obsolete version-dependent fallbacks.
- Updates tests, CI coverage, packaging, and documentation for the supported server range.
| File | Description |
|---|---|
weaviate/warnings.py |
Removes the obsolete server-upgrade warning. |
weaviate/util.py |
Removes obsolete version helpers and GraphQL sanitization. |
weaviate/gql/filter.py |
Deletes legacy GraphQL filters. |
weaviate/gql/aggregate.py |
Deletes the GraphQL aggregation builder. |
weaviate/gql/__init__.py |
Removes the legacy package initializer. |
weaviate/error_msgs.py |
Deletes legacy warning messages. |
weaviate/connect/v4.py |
Enforces server version 1.32.0 for both clients. |
weaviate/collections/tenants/executor.py |
Removes obsolete tenant API fallbacks. |
weaviate/collections/queries/hybrid/query/executor.py |
Removes outdated exception documentation. |
weaviate/collections/queries/hybrid/generate/executor.py |
Removes outdated exception documentation. |
weaviate/collections/queries/bm25/query/executor.py |
Removes outdated exception documentation. |
weaviate/collections/queries/bm25/generate/executor.py |
Removes outdated exception documentation. |
weaviate/collections/queries/base_executor.py |
Removes legacy query and generative-response handling. |
weaviate/collections/grpc/shared.py |
Simplifies vector encoding and adjusts the hybrid alpha gate. |
weaviate/collections/grpc/query.py |
Always uses supported query protocol fields. |
weaviate/collections/filters.py |
Removes legacy REST filter conversion. |
weaviate/collections/collections/executor.py |
Updates unsupported-feature exception documentation. |
weaviate/collections/classes/internal.py |
Removes legacy generative request serialization. |
weaviate/collections/classes/grpc.py |
Removes obsolete serialization helpers and parameters. |
weaviate/collections/classes/aggregate.py |
Removes GraphQL metric serialization. |
weaviate/collections/aggregations/over_all/executor.py |
Uses gRPC exclusively for overall aggregations. |
weaviate/collections/aggregations/near_vector/executor.py |
Uses gRPC exclusively for vector aggregations. |
weaviate/collections/aggregations/near_text/executor.py |
Uses gRPC exclusively for text aggregations. |
weaviate/collections/aggregations/near_object/executor.py |
Uses gRPC exclusively for object aggregations. |
weaviate/collections/aggregations/near_image/executor.py |
Uses gRPC exclusively for image aggregations. |
weaviate/collections/aggregations/hybrid/executor.py |
Uses gRPC exclusively for hybrid aggregations. |
weaviate/collections/aggregations/base_executor.py |
Removes GraphQL request and response handling. |
weaviate/client.py |
Documents the new minimum server version. |
weaviate/backup/executor.py |
Removes obsolete backup-location version checks. |
weaviate/aliases/executor.py |
Removes redundant alias version checks. |
weaviate/__init__.py |
Removes broken legacy GraphQL exports. |
test/test_util.py |
Removes tests for deleted helpers. |
test/collection/test_target_vectors.py |
Tests target vectors against the new baseline. |
test/collection/test_hybrid_diversity.py |
Updates query-builder construction. |
test/collection/test_bm25_operator.py |
Updates query-builder construction. |
test/collection/test_aggregates.py |
Updates negative tests for gRPC validation. |
setup.cfg |
Removes the deleted GraphQL package from distribution. |
mock_tests/test_collection.py |
Tests the version boundary for both clients. |
integration/test_vectors.py |
Removes obsolete vector compatibility cases and skips. |
integration/test_users.py |
Removes obsolete user-management version skips. |
integration/test_tenants.py |
Simplifies tests around supported tenant APIs. |
integration/test_replicate.py |
Removes the redundant replication version skip. |
integration/test_rbac.py |
Removes obsolete permission-test version gates. |
integration/test_groups.py |
Removes redundant group-management version skips. |
integration/test_collection.py |
Removes legacy collection expectations and skips. |
integration/test_collection_rerank.py |
Removes unsupported-server reranking cases. |
integration/test_collection_openai.py |
Simplifies supported generative-search expectations. |
integration/test_collection_near_vector.py |
Removes obsolete named-vector skips. |
integration/test_collection_hybrid.py |
Removes obsolete hybrid compatibility branches. |
integration/test_collection_config.py |
Simplifies configuration expectations for supported servers. |
integration/test_collection_aggregate.py |
Removes GraphQL-specific aggregation expectations. |
integration/test_backup_v4.py |
Removes obsolete backup feature skips. |
integration/test_alias.py |
Removes redundant alias version skips. |
docs/weaviate.rst |
Removes the GraphQL documentation index entry. |
docs/weaviate.gql.rst |
Deletes legacy GraphQL API documentation. |
docs/changelog.rst |
Documents the minimum-version change and removals. |
.github/workflows/main.yaml |
Removes server versions below 1.32 from CI. |
Review effort: Balanced
| await _test_aggregate(lambda: aggregate.over_all(total_count="wrong")) | ||
| await _test_aggregate(lambda: aggregate.over_all(return_metrics="wrong")) | ||
|
|
||
| aggregate = _AggregateCollectionAsync(connection, "dummy", None, None, True) |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev/1.41 #2250 +/- ##
===========================================
Coverage ? 92.32%
===========================================
Files ? 309
Lines ? 23444
Branches ? 0
===========================================
Hits ? 21645
Misses ? 1799
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
14e6de2 to
0f30737
Compare

Superseedes #2197