spicedb
spicedb copied to clipboard
Begin work on LookupSubjects
This (draft) PR adds the dispatching support for LookupSubjects.
NOTE: This does not yet implement the actual API, nor does it change the dispatch for expand in any way. An open item is whether we want to change expand to share the same implementation as this code.
First step for #261
Things remaining before undrafting:
- [ ] Write basic unit tests for the Set
- [ ] Write basic unit tests for ONRByTypeSet
- [ ] Add dispatch count tests for DispatchLookupSubjects
- [ ] Change lookupUnion handler to use the Set type
- [ ] (stretch) Change intersection/exclusion to cancel downstream requests if we end up with an empty branch?
Updated
Updated