Skip to content

fix: restore consistency_level int in CollectionSchema.dict(), add name alias#3441

Open
pymilvus-bot wants to merge 1 commit intomilvus-io:masterfrom
pymilvus-bot:fix/consistency-level-compat-2985
Open

fix: restore consistency_level int in CollectionSchema.dict(), add name alias#3441
pymilvus-bot wants to merge 1 commit intomilvus-io:masterfrom
pymilvus-bot:fix/consistency-level-compat-2985

Conversation

@pymilvus-bot
Copy link
Copy Markdown
Collaborator

PR #3409 changed CollectionSchema.dict() to emit consistency_level as
the human-readable string (ConsistencyLevel.Name(...)) instead of its
historical int, breaking public-API back-compat for callers that
indexed dict()["consistency_level"] expecting an int — including the
milvus e2e test_milvus_client_search_query_default.

This restores the int shape and exposes the name under a new
consistency_level_name key. Callers who want the human-readable form
read the new key; existing callers stay unbroken.

See also: #2985

…me alias

PR milvus-io#3409 changed CollectionSchema.dict() to emit consistency_level as
the human-readable string (ConsistencyLevel.Name(...)) instead of its
historical int, breaking public-API back-compat for callers that
indexed dict()["consistency_level"] expecting an int — including the
milvus e2e test_milvus_client_search_query_default.

This restores the int shape and exposes the name under a new
consistency_level_name key. Callers who want the human-readable form
read the new key; existing callers stay unbroken.

See also: milvus-io#2985

Signed-off-by: pymilvus-bot <pymilvus@zilliz.com>
@sre-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: pymilvus-bot
To complete the pull request process, please assign tedxu after the PR has been reviewed.
You can assign the PR to them by writing /assign @tedxu in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.85%. Comparing base (a9b5441) to head (87b8509).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3441   +/-   ##
=======================================
  Coverage   90.85%   90.85%           
=======================================
  Files          64       64           
  Lines       13978    13978           
=======================================
  Hits        12700    12700           
  Misses       1278     1278           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mergify mergify Bot added the ci-passed label Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants