Commit 229b4af
Refactor to separate sync and async connections (#1594)
* Commit working changes (bypassed pre-commit)
* Push non-functional progress (will fail CI)
* Add non-functional backup refactoring
* Add non-functional tenants refactoring
* Add non-functional config refactoring
* Achieve working functionality for everything besides batch
* Merge dev/1.30
* Fix import
* Comment out redundant test
* Fix return types in query executor
* Fix failing backups tests
* Refactor batch to use `ConnectionSync` and `ThreadPoolExecutor`
* Remove redundant event loop code
* Fix event loop import in syncify, rename convert_new to convert
* Fix backups executor, ensure backup tests run serially
* Fix typo
* Fix deprecated `get_assigned_roles`
* Fix auth refactoring to pass the tests
* Fix sync grpc exception handling to pass mock tests
* Fix capitalisation of delete for 1.24
* Reduce boilerplate necessary in `ConnectionX` classes
* Fix missing final raise
* Fix docstring inheritance for client.debug as example
* Introduce new decorator to generate methods from base abstract class
* Migrate users namespace to use impl.generate
* Migrate rbac namespace to use impl.generate
* Refactor collection.data to use impl.generate
* Migrate collection.tenants to impl.generate
* Migration collection.{backups,cluster,config} to impl.generate
* Complete client.backups impl.generate migration
* Migrate collection.{generate,query} to use impl.generate
* Migrate collection.aggregate to impl.generate pattern
* Remove syncify code
* Update pyright in CI and remove mypy
* Fix outstanding bugs and migration client to impl.generate
* Fix imports of backup
* Fix more backup import issues
* Fix typo in new dev/1.30 code
* Make backup easier
* Second try
* Fix typing errprs
* Remove composition of executor completely
* Migrate rest of codebase to inheriting from `_Executor` and new `impl.generate` functinoality
* Align executor and interface surfaces
* Fix backup inheritance and rename/move wrapping decorators
* Fix default args in users executor
* Remove `_XBase` classes by making executors generic on `ConnectionType`
* Simplify semantics of importing from `connect.executor`
* Add QA ignores for flake8 in CI
* Fix inheritance in interface
* Respond to review
* Tidy up import paths and remove `_WeaviateClientBase`
* Fix default arg for `revoke_key` in `deactivate`
* Add journey test for gevent+wsgi usage, add back litestar test
* Fix breaking public imports from .users/.backups reducing diff
* Have `delete_many` use specific grpc class rather than custom impl
* Decrease diff in tests
* Add changelog for refactor
---------
Co-authored-by: Dirk Kulawiak <dirk@semi.technology>1 parent 5e4b879 commit 229b4af
190 files changed
Lines changed: 9271 additions & 6829 deletions
File tree
- .github/workflows
- docs
- integration
- journey_tests
- gunicorn
- mock_tests
- weaviate
- backup
- classes
- collections
- aggregations
- hybrid
- near_image
- near_object
- near_text
- near_vector
- over_all
- backups
- batch
- cluster
- collections
- collection
- config
- data
- grpc
- queries
- bm25
- fetch_object_by_id
- fetch_objects_by_ids
- fetch_objects
- hybrid
- near_image
- near_media
- near_object
- near_text
- near_vector
- tenants
- connect
- debug
- rbac
- users
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | 68 | | |
71 | 69 | | |
72 | | - | |
| 70 | + | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
169 | 167 | | |
170 | 168 | | |
171 | 169 | | |
172 | | - | |
| 170 | + | |
173 | 171 | | |
174 | 172 | | |
175 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 39 | | |
53 | 40 | | |
54 | 41 | | |
| |||
57 | 44 | | |
58 | 45 | | |
59 | 46 | | |
60 | | - | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
4 | 12 | | |
5 | 13 | | |
6 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
| 508 | + | |
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
2 | 8 | | |
3 | 9 | | |
4 | 10 | | |
| |||
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
25 | 52 | | |
26 | 53 | | |
27 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
633 | 634 | | |
634 | 635 | | |
635 | 636 | | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
File renamed without changes.
| 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 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments