Problem
create_cohort builds its managed segment directly (api/cohorts/services.py), bypassing the segment serializer — so unlike every other segment creation path, enqueue_membership_refresh is never called and no membership count is ever computed for cohort-backed segments.
Impact
Cohort segments show no member counts in the dashboard, even after members are applied.
Note
Deliberately deferred from #8248: a refresh today would compute zero members regardless, because the ClickHouse identities mirror does not carry system_traits yet. Wire the refresh (post-commit, in create_cohort) together with the mirror work so the first count shown is a true one.
Problem
create_cohortbuilds its managed segment directly (api/cohorts/services.py), bypassing the segment serializer — so unlike every other segment creation path,enqueue_membership_refreshis never called and no membership count is ever computed for cohort-backed segments.Impact
Cohort segments show no member counts in the dashboard, even after members are applied.
Note
Deliberately deferred from #8248: a refresh today would compute zero members regardless, because the ClickHouse identities mirror does not carry
system_traitsyet. Wire the refresh (post-commit, increate_cohort) together with the mirror work so the first count shown is a true one.