Skip to content

Stop using the SegmentRule and Condition models #7818

Description

@khvn26

Migrate the last segment rule/condition readers (release pipeline, organisation export) onto Segment.rules_data and stop writing rows. Leave the models so historical segments can still be read, and mark them as deprecated.

Acceptance criteria

  • SegmentRule and Condition are clearly marked as deprecated.
  • Creating or updating a segment writes no SegmentRule or Condition rows.
  • The release-pipeline phased-rollout percentage is read correctly from rules_data.
  • An organisation import produces rules_data and no SegmentRule and Condition rows.
  • The OpenAPI schema does not rely on the SegmentRule model.
  • The ordering settings are gone and no test depends on them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiIssue related to the REST API

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions