Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modified example_tls1.py through MilvusClient #2065

Merged
merged 3 commits into from
May 8, 2024

Conversation

nish112022
Copy link
Contributor

@nish112022 nish112022 commented May 7, 2024

It is to make the example consistent with https://milvus.io/docs/tls.md.If these changes look fine I can modify the other example as well

@sre-ci-robot sre-ci-robot requested review from czs007 and XuanYang-cn May 7, 2024 07:43
@sre-ci-robot
Copy link

Welcome @nish112022! It looks like this is your first PR to milvus-io/pymilvus 🎉

@SimFG
Copy link
Contributor

SimFG commented May 7, 2024

@nish112022 thanks your contribution. you need to have a sign for the commit to pass the dco check. try to do:

git commit --amend -s

and then force to push it

@XuanYang-cn
Copy link
Contributor

wait for #2068

@XuanYang-cn
Copy link
Contributor

@nish112022 please rebase the latest code to pass the code check actions.
@SimFG Please help review the code

@XuanYang-cn
Copy link
Contributor

/assign @SimFG

nish112022 and others added 2 commits May 7, 2024 01:40
print(connections.list_connections())
milvus_client = MilvusClient(uri=_URI,
secure=True,
server_pem_path="/root/milvus_2.4/milvus/configs/cert/server.pem",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use cert/server.pem

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it.

entity = {
"id_field": i+1, # Assuming id_field is the _COLLECTION_NAME of the field corresponding to the ID
"float_vector_field": [random.random() for _ in range(_DIM)]
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please format it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatted it.

@nish112022 nish112022 requested a review from SimFG May 7, 2024 09:49
@nish112022
Copy link
Contributor Author

@SimFG Added the fix suggested by you. PTAL

@SimFG
Copy link
Contributor

SimFG commented May 8, 2024

/lgtm

@nish112022
Copy link
Contributor Author

@XuanYang-cn SimFg has reviewed my PR.PTAL

@nish112022
Copy link
Contributor Author

/assign @XuanYang-cn

@XuanYang-cn
Copy link
Contributor

/lgtm
/approve

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nish112022, XuanYang-cn

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

The pull request process is described here

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

@sre-ci-robot sre-ci-robot merged commit 77bff51 into milvus-io:master May 8, 2024
9 checks passed
@XuanYang-cn XuanYang-cn added the PR | need to cherry-pick to 2.x This PR need to be cherry-picked to 2.x branch label May 14, 2024
XuanYang-cn pushed a commit to XuanYang-cn/pymilvus that referenced this pull request May 14, 2024
Fix bug: add enable_dynamic_field in result of DescribeCollection (milvus-io#1949)

1. modified example_tls1.py through MilvusClient (milvus-io#2065)
2. modified example_tls2.py through MilvusClient (milvus-io#2077)
3. It is to make the example consistent with milvus.io docs

Co-Authored-by: zhenshan.cao <[email protected]>
Co-Authored-by: Nischay Yadav <[email protected]>
Signed-off-by: yangxuan <[email protected]>
@XuanYang-cn XuanYang-cn added PR | cherry-picked to 2.x PR already cherry-picked to branch 2.x and removed PR | need to cherry-pick to 2.x This PR need to be cherry-picked to 2.x branch labels May 14, 2024
sre-ci-robot pushed a commit that referenced this pull request May 14, 2024
Fix bug: add enable_dynamic_field in result of DescribeCollection
(#1949)

1. modified example_tls1.py through MilvusClient (#2065)
2. modified example_tls2.py through MilvusClient (#2077)
3. It is to make the example consistent with milvus.io docs

Signed-off-by: yangxuan <[email protected]>
Co-authored-by: zhenshan.cao <[email protected]>
Co-authored-by: Nischay Yadav <[email protected]>
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.

4 participants