fix(flags): db routing bug (#38689)

This commit is contained in:
Nick Best
2025-09-25 19:54:39 -07:00
committed by GitHub
parent b90cb77e33
commit 5946d1087a
2 changed files with 1 additions and 5 deletions

View File

@@ -1561,7 +1561,7 @@ impl FeatureFlagMatcher {
if self
.group_type_mapping_cache
.init(self.router.get_non_persons_reader().clone())
.init(self.router.get_persons_reader().clone())
.await
.is_err()
{

View File

@@ -292,8 +292,6 @@ mod tests {
)
.await;
println!("Flags: {:?}", result.flags);
let legacy_response = LegacyFlagsResponse::from_response(result);
assert!(!legacy_response.errors_while_computing_flags);
assert_eq!(
@@ -5195,8 +5193,6 @@ mod tests {
)
.await;
println!("Flags in result: {:?}", result.flags);
assert!(!result.errors_while_computing_flags);
// The flag should evaluate using DB properties for condition 1 (which has feature_access="full")
// and overrides for condition 2 (which won't match the billing_email).