Flagsmith / Flagsmith/flagsmith

Evaluate segments from the stored JSON

Open
#7,816 0 comments 0 reactions 0 assignees View on GitHub
api
Dominant language
Python
Stars
6.6k
Forks
567
Avg merge
1d 13h
Merged PRs (30d)
121

Description

Migrate Core API flag evaluation logic onto `Segment.rules_data`.

### Acceptance criteria

- `SegmentRule` and `Condition` models are not used by engine and dynamo mappers.
- Identity segment evaluation (`Identity.get_segments`) returns the same matching segments before and after the change.
- `/api/v1/environment-document` serves rules from `Segment.rules_data`.
- The DynamoDB environment document contains identical segment data to the pre-change output.
- The project and environment segment caches feeding the mappers no longer issue rule or condition queries (assert query counts drop).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.