Repository navigation
Disabled battery bar when device is disconnected - #338
Merged
Merged
Conversation
josancamon19
approved these changes
Jun 23, 2024
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
abunet
added a commit
to abunet/omi
that referenced
this pull request
Aug 15, 2026
…uery_group parity Two coupled collection-group defects (cubic PR 10887 BasedHardware#338 + BasedHardware#5/BasedHardware#6): - BasedHardware#338 (regression from the BasedHardware#8 scoped-query fix): the facade applied `_name_filter_value` (which reduces a _DocRef to its bare id, correct for a scoped query the store rebuilds as f"{collection}/{value}") to the collection-GROUP where() too. But query_group matches _id directly, and _id IS the full logical path (a group spans parents, no collection to prefix) — so the bare id matched nothing on Mongo. Add `_group_name_filter_value` (keeps the _DocRef's full .path) and use it in _GroupQuery.where. - Fake query_group parity: FakeDocumentStore.query_group ignored __name__ filters (tested d["__name__"], a key no doc has -> zero rows) and silently combined an explicit field order_by with a document-name start_after keyset that both real adapters reject with NotImplementedError. A test could pass hermetically then break on Mongo/Firestore. The fake now handles __name__ against the full path and raises NotImplementedError for order_by+keyset, matching the adapters and the store contract. Verification: - Live on Mongo: `collection_group('state').where('__name__','==', DocRef)` returns ['s1'] (was [] when the DocRef was reduced to the bare id). - Rewrote test_group_query_supports_order_by_and_start_after (it asserted the fake-only behavior the real adapters reject) to the real contract: order_by streams ordered, order_by+keyset raises. Added a group __name__ DocRef-bound regression test (==, and >=). - test_firestore_facade 25, test_canonical_short_term_maintenance_cron 9, test_fair_use_store 14, test_firestore_query_contract 26 pass; guards 0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
omi TODO / bounties (view)