Skip to content

Spike: Segment membership inspection #5663

@agregoryfs

Description

@agregoryfs

Today the segment ↔ identity relationship only navigates in one direction: from an identity we can list the segments it belongs to, but from a segment there is no way to inspect the set of identities that match its rules — only to search for one identifier at a time in the segment editor.

This presents an architecture design problem. Flagsmith segments are rule-based. Membership is computed by the flag engine on every read and is not currently persisted. Any "list members" capability has to work over both identity stores (core and edge) and account for rule shapes that don't reduce to simple equality (percentage splits, regex, modulo, "is not set", etc.).

Scope of this spike: decide what v1 of segment-membership inspection looks like — UX, API shape, evaluation path — and surface the architectural questions that fall out of that decision.

Definition of Done:

  • PR with user-facing documentation describing v1 behaviour for identity search and segment membership inspection as we intend to ship it.
  • Epic outlining the v1 work, broken down by surface (API, edge, frontend, RBAC, docs).
  • Follow-up issues / spikes filed for anything explicitly out of scope for v1.
  • RFC for any architectural changes the feature requires.
  • Adjacent issues triaged: closed-as-duplicate, linked, or folded into the epic.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions