We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 797adbe commit 71def67Copy full SHA for 71def67
rust/feature-flags/src/cohort_operations.rs
@@ -57,6 +57,9 @@ impl Cohort {
57
}
58
59
/// 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.
63
pub fn parse_filters(&self) -> Result<Vec<PropertyFilter>, FlagError> {
64
let wrapper: serde_json::Value = serde_json::from_value(self.filters.clone())?;
65
let cohort_property: InnerCohortProperty =
0 commit comments