Skip to content

Cohort-managed segments never get membership counts queued #8268

Description

@gagantrivedi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions