Commit cbe2c4f
authored
[ENH] Add getCollectionByCrn api support in js client (#5894)
## Description of changes
_Summarize the changes made by this PR._
- Improvements & Bug fixes
- This PR adds support for getCollectionByCrn to the js client
- It also had to add support for tenant and db fields on the collection
object to allow for building the correct path for both private and
public collections. this way, instead of using the path w/ tenant and db
from the client, it directly uses data from the server about the
collection's origin
- New functionality
- ...
## Test plan
_How are these changes tested?_
- [ ] Tests pass locally with `pytest` for python, `yarn test` for js,
`cargo test` for rust
## Migration plan
_Are there any migrations, or any forwards/backwards compatibility
changes needed in order to make sure this change deploys reliably?_
## Observability plan
_What is the plan to instrument and monitor this change?_
## Documentation Changes
_Are all docstrings for user-facing APIs updated if required? Do we need
to make documentation changes in the [docs
section](https://github.com/chroma-core/chroma/tree/main/docs/docs.trychroma.com)?_1 parent 156e21b commit cbe2c4f
File tree
4 files changed
+74
-2
lines changed- clients/new-js/packages/chromadb
- src
- test
4 files changed
+74
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
| |||
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| 354 | + | |
| 355 | + | |
352 | 356 | | |
353 | 357 | | |
354 | 358 | | |
| |||
392 | 396 | | |
393 | 397 | | |
394 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
395 | 433 | | |
396 | 434 | | |
397 | 435 | | |
| |||
489 | 527 | | |
490 | 528 | | |
491 | 529 | | |
| 530 | + | |
| 531 | + | |
492 | 532 | | |
493 | 533 | | |
494 | 534 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
217 | 225 | | |
218 | 226 | | |
219 | 227 | | |
| |||
232 | 240 | | |
233 | 241 | | |
234 | 242 | | |
| 243 | + | |
| 244 | + | |
235 | 245 | | |
236 | 246 | | |
237 | 247 | | |
| |||
246 | 256 | | |
247 | 257 | | |
248 | 258 | | |
| 259 | + | |
| 260 | + | |
249 | 261 | | |
250 | 262 | | |
251 | 263 | | |
| |||
255 | 267 | | |
256 | 268 | | |
257 | 269 | | |
| 270 | + | |
| 271 | + | |
258 | 272 | | |
259 | 273 | | |
260 | 274 | | |
| |||
309 | 323 | | |
310 | 324 | | |
311 | 325 | | |
312 | | - | |
313 | 326 | | |
314 | | - | |
| 327 | + | |
| 328 | + | |
315 | 329 | | |
316 | 330 | | |
317 | 331 | | |
| |||
958 | 972 | | |
959 | 973 | | |
960 | 974 | | |
| 975 | + | |
| 976 | + | |
961 | 977 | | |
962 | 978 | | |
963 | 979 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1349 | 1349 | | |
1350 | 1350 | | |
1351 | 1351 | | |
| 1352 | + | |
| 1353 | + | |
1352 | 1354 | | |
1353 | 1355 | | |
1354 | 1356 | | |
| |||
1399 | 1401 | | |
1400 | 1402 | | |
1401 | 1403 | | |
| 1404 | + | |
| 1405 | + | |
1402 | 1406 | | |
1403 | 1407 | | |
1404 | 1408 | | |
| |||
1470 | 1474 | | |
1471 | 1475 | | |
1472 | 1476 | | |
| 1477 | + | |
| 1478 | + | |
1473 | 1479 | | |
1474 | 1480 | | |
1475 | 1481 | | |
| |||
1545 | 1551 | | |
1546 | 1552 | | |
1547 | 1553 | | |
| 1554 | + | |
| 1555 | + | |
1548 | 1556 | | |
1549 | 1557 | | |
1550 | 1558 | | |
| |||
1621 | 1629 | | |
1622 | 1630 | | |
1623 | 1631 | | |
| 1632 | + | |
| 1633 | + | |
1624 | 1634 | | |
1625 | 1635 | | |
1626 | 1636 | | |
| |||
1691 | 1701 | | |
1692 | 1702 | | |
1693 | 1703 | | |
| 1704 | + | |
| 1705 | + | |
1694 | 1706 | | |
1695 | 1707 | | |
1696 | 1708 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| 383 | + | |
| 384 | + | |
383 | 385 | | |
384 | 386 | | |
385 | 387 | | |
| |||
469 | 471 | | |
470 | 472 | | |
471 | 473 | | |
| 474 | + | |
| 475 | + | |
472 | 476 | | |
473 | 477 | | |
474 | 478 | | |
| |||
0 commit comments