mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
fix(flags): db routing bug (#38689)
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user