feat: impl SearchableEntity for PersistedMlsGroup [WPB-22945]#1778
Merged
coriolinus merged 20 commits intomainfrom Jan 29, 2026
Merged
feat: impl SearchableEntity for PersistedMlsGroup [WPB-22945]#1778coriolinus merged 20 commits intomainfrom
impl SearchableEntity for PersistedMlsGroup [WPB-22945]#1778coriolinus merged 20 commits intomainfrom
Conversation
impl SearchableEntity for PersistedMlsGroup [WPB-22945]impl SearchableEntity for PersistedMlsGroup [WPB-22945]
89bd13c to
f9cdecb
Compare
2853689 to
2ddca34
Compare
Member
|
Is there a test which tests the usage of the |
d52bb34 to
41e5a6e
Compare
…tedMlsGroup` Additionally, this cleans up the implementation a little, fixes a bug where the id wasn't de-hexed, and udpates the `child_groups` impl to be in terms of this implementation.
Life is actually easier if we just implement the relevant methods directly on `PersistedMlsGroup`, which is perfectly legal. I suspect that someone was overthinking things when they introduced the trait.
This means that we use a database-first interface to search for entities as we do for all other accesses, instead of the entity-first view which requires us to extract the connection from the DB.
…ance This is necessary so that the transaction implementation can work properly.
This causes the field to bypass encryption and decryption in the `Encrypting` and `Decrypting` impls. This is necessary for a field to be used as an index in wasm; for obvious reasons, looking up a field by an encrypted index always fails.
This is necessary so that we can use the `parent_id` field as an index.
…st store name We adjust the JsValue serializer to ensure that `Vec<u8>` gets mapped to `Uint8Array`. This is necessary in order to ensure that those idb items can be index keys: `Uint8Array` is a valid indexable type, but a generic `Array` (even if it contains only `Number`) is not. We also set things up to optionally use a constant test store name instead of generating one because that's much easier to follow along with in a test browser. This depends on a constant instead of being a function parameter because the interaction between fixtures and rstest_reuse applications is confusing, and adding a parameter there is more confusing than not.
a2f5ab8 to
d8ba061
Compare
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.
What's new in this PR
Adds efficient search methods for groups by
parent_id.PR Submission Checklist for internal contributors
SQPIT-764feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.