Commit 74e5963
authored
fix: correct _api_level_md call in file resource methods (#3266)
## Summary
- Fixed incorrect `_api_level_md(**kwargs)` calls in
`add_file_resource`, `remove_file_resource`, and `list_file_resources`
methods
- Changed to `_api_level_md(kwargs.get("context"))` to align with all
other methods in `grpc_handler.py`
- `_api_level_md` only accepts a single `context` parameter, passing
`**kwargs` could cause `TypeError` if kwargs contains unexpected keys
## Test plan
- [x] Verify `add_file_resource`, `remove_file_resource`,
`list_file_resources` work correctly
- [x] Confirm consistency with other grpc_handler methods
---------
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>1 parent 4297335 commit 74e5963
File tree
2 files changed
+48
-3
lines changed- pymilvus/client
- tests/grpc_handler
2 files changed
+48
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3357 | 3357 | | |
3358 | 3358 | | |
3359 | 3359 | | |
3360 | | - | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
3361 | 3363 | | |
3362 | 3364 | | |
3363 | 3365 | | |
| |||
3368 | 3370 | | |
3369 | 3371 | | |
3370 | 3372 | | |
3371 | | - | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
3372 | 3376 | | |
3373 | 3377 | | |
3374 | 3378 | | |
| |||
3378 | 3382 | | |
3379 | 3383 | | |
3380 | 3384 | | |
3381 | | - | |
| 3385 | + | |
| 3386 | + | |
| 3387 | + | |
3382 | 3388 | | |
3383 | 3389 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
0 commit comments