diff --git a/rust/feature-flags/src/cohort_operations.rs b/rust/feature-flags/src/cohort_operations.rs index 9cf046785d85a..2839432e04742 100644 --- a/rust/feature-flags/src/cohort_operations.rs +++ b/rust/feature-flags/src/cohort_operations.rs @@ -57,6 +57,9 @@ impl Cohort { } /// Parses the filters JSON into a CohortProperty structure + // TODO: this doesn't handle the deprecated "groups" field, see + // https://github.com/PostHog/posthog/blob/feat/dynamic-cohorts-rust/posthog/models/cohort/cohort.py#L114-L169 + // I'll handle that in a separate PR. pub fn parse_filters(&self) -> Result, FlagError> { let wrapper: serde_json::Value = serde_json::from_value(self.filters.clone())?; let cohort_property: InnerCohortProperty =