Skip to content

UI can't manage some segments #8280

Description

@emyller

Originally, we conceived the segment rules data model so that the frontend would only send a sandwich-like ruleset, in which:

  • The root rule has no conditions; rather, it's an ALL rule housing subrules.
  • Subrules of the root rule must own conditions, but could have no subrules.

The API wouldn't imply any restrictions to the shape of a ruleset, so none of these matter when managing segments via the API. However, this means that our UI cannot manage some segments our customer created/updated via the API, because of being incompatible to their ruleset shape.

Some interesting timeline to keep in mind:

The goal of this issue is to yet again simplify segments.

Acceptance criteria

  • The frontend can manage segment rules and their conditions given any shape — it might need a major redesign of managing rules.
  • The backend loses all logic that restrict or imply that rules cannot be nested, or cannot have conditions, at any nesting level, in all segment write paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiIssue related to the REST API

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions