Commit 1d0b686
authored
Add has_index() (#385)
## Problem
Currently, users can not easily check if an index exists or not. The
.names() iterator on the list_indexes response object is not super
discoverable.
## Solution
Add has_index() which internally calls describe_index() and returns true
if the index exists, false otherwise.
## Type of Change
- [X] New feature (non-breaking change which adds functionality)
## Test Plan
Added integration tests.
---
- To see the specific tasks where the Asana app for GitHub is being
used, see below:
- https://app.asana.com/0/0/12079729006378431 parent 3d20906 commit 1d0b686
File tree
2 files changed
+47
-2
lines changed- pinecone/control
- tests/integration/control/serverless
2 files changed
+47
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
| 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 | + | |
547 | 574 | | |
548 | 575 | | |
549 | 576 | | |
| |||
737 | 764 | | |
738 | 765 | | |
739 | 766 | | |
740 | | - | |
| 767 | + | |
741 | 768 | | |
742 | 769 | | |
743 | 770 | | |
744 | 771 | | |
745 | | - | |
| 772 | + | |
746 | 773 | | |
747 | 774 | | |
748 | 775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments