Registry store implementation - part 1

This commit is contained in:
mdecimus
2026-02-17 21:55:28 +00:00
parent b5ff8b5952
commit 2a557c58e5
26 changed files with 1161 additions and 320 deletions

View File

@@ -56,10 +56,7 @@ use groupware::{
};
use http_proto::HttpResponse;
use hyper::StatusCode;
use registry::schema::{
enums::Permission,
prelude::{Object, Property},
};
use registry::schema::{enums::Permission, prelude::Object};
use std::sync::Arc;
use store::{
ValueKey,
@@ -264,7 +261,7 @@ impl PropFindRequestHandler for Server {
self.registry()
.query::<RoaringBitmap>(
RegistryQuery::new(Object::Account)
.equal_opt(Property::MemberTenantId, access_token.tenant_id()),
.with_tenant(access_token.tenant_id()),
)
.await
.caused_by(trc::location!())?

View File

@@ -13,7 +13,7 @@ use dav_proto::schema::{
};
use http_proto::HttpResponse;
use hyper::StatusCode;
use registry::schema::prelude::{Object, Property};
use registry::schema::prelude::Object;
use store::{registry::RegistryQuery, roaring::RoaringBitmap};
use trc::AddContext;
use types::collection::Collection;
@@ -50,7 +50,7 @@ impl PrincipalPropSearch for Server {
.registry()
.query::<RoaringBitmap>(
RegistryQuery::new(Object::Account)
.equal_opt(Property::MemberTenantId, access_token.tenant_id())
.with_tenant(access_token.tenant_id())
.text(search_for),
)
.await