Flagsmith / Flagsmith/flagsmith
Evaluate segments from the stored JSON
Open
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
Assessment
This issue has not been assessed yet.