Skip to content

Commit 71def67

Browse files
committed
add note about not handling groups
1 parent 797adbe commit 71def67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust/feature-flags/src/cohort_operations.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ impl Cohort {
5757
}
5858

5959
/// Parses the filters JSON into a CohortProperty structure
60+
// TODO: this doesn't handle the deprecated "groups" field, see
61+
// https://github.com/PostHog/posthog/blob/feat/dynamic-cohorts-rust/posthog/models/cohort/cohort.py#L114-L169
62+
// I'll handle that in a separate PR.
6063
pub fn parse_filters(&self) -> Result<Vec<PropertyFilter>, FlagError> {
6164
let wrapper: serde_json::Value = serde_json::from_value(self.filters.clone())?;
6265
let cohort_property: InnerCohortProperty =

0 commit comments

Comments
 (0)