Commit a6ca33c
feat(datastore): add observeQuery API (#892)
* feat: dart only implementation of observeQuery
* feat: use sorted list for cached item
* chore: rename sorted list file
* feat: move merge logic inside QuerySnapshot
* chore: update logging
* chore: move evaluate logic to QueryPredicate
* feat: add compareTo for temporal types
* chore: update examples
* test: add unit tests for querySnapshot
* feat: add sync status
* chore: move StreamGroup
* feat: batch before sync
* feat: duration batching
* chore: create executor
* chore: add license
* feat: allow for no throttling
* test: add tests for throttle extension
* chore: remove events from QuerySnapshot
* chore: remove events from executor
* chore: undo change in main for unit tests
* chore: undo formatting change
* chore: remove temp changes to query
* chore: remove temp change in post model
* chore: add missing license
* chore: add missing license
* chore: remove check for dup event
* chore: handle non-comparable fields
* chore: remove comments from temporal types
* chore: remove late keyword
* chore: add operators to SortedList
* test: add test for withSyncStatus
* test: add tests for SortedList
* chore: replace StreamGroup w/ merge util
* chore: update comments
* test: add unit test for mergeStreams
* test: add tests for observeQueryExecutor
* chore: removed unused ensureInitialized calls
* chore: update doc comments
* fix: update query field operator comparisons
* test: add tests for sort comparisons
* test: query predicate comparison test
* test: add test for sync status cache
* test: add tests for and/or/not predicates
* chore: update model
* chore: address initial PR comments
* chore: refactor ObserveQueryExecutor
* chore: refactor SortedList to use ListMixin
* feat: update merge to use sync stream controller
* test: observeQuery integ tests
* chore: update example app
* feat: start batching after model sync started
* chore: removed runQueries() from example app
* chore: refactor sort order, add test
* chore: update import statement
* chore: refactor withSubscriptionEvent
* chore: add test coverage to throttle util
* chore: replace custom merge util with async
* chore: address formatting issue
* chore: remove unused stream util
* chore: undo unrelated change
* Revert test model changes
* Fix test model
* Bump iOS version
Co-authored-by: Dillon Nys <[email protected]>
Co-authored-by: Dillon Nys <[email protected]>1 parent 866d845 commit a6ca33c
File tree
44 files changed
+2459
-254
lines changed- packages
- amplify_analytics_pinpoint/ios
- amplify_api/ios
- amplify_auth_cognito/ios
- amplify_datastore_plugin_interface
- lib
- src
- types
- models
- query
- temporal
- test
- amplify_datastore
- example
- integration_test
- lib
- models
- ios
- lib
- stream_utils
- types
- DataStoreHubEvents
- test
- resources/save_api/request
- stream_utils
- test_models
- amplify_flutter
- ios
- lib/categories
- amplify_storage_s3/ios
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+2459
-254
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
Lines changed: 147 additions & 0 deletions
| 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 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
0 commit comments