Skip to content

feat: implement segment OR groups with ruleSets and conditions - #18

Open
sojitra-nency wants to merge 1 commit into
sandboxfrom
ns/feat/refactor-segments-page
Open

sojitra-nency wants to merge 1 commit into
sandboxfrom
ns/feat/refactor-segments-page

Conversation

@sojitra-nency

Copy link
Copy Markdown
Contributor
  • Added support for segment OR groups in the engine, allowing multiple ruleSets to be evaluated with an 'any' or 'all' match mode.
  • Introduced a new segment schema that includes ruleSets and a match mode, ensuring backward compatibility with existing conditions.
  • Updated the evaluation logic to prioritize ruleSets over conditions, ensuring correct behavior for segments with both.
  • Created comprehensive tests for the new segment functionality, covering various scenarios including edge cases.
  • Added a new fixture for segment OR groups to validate the implementation against expected outcomes.

- Added support for segment OR groups in the engine, allowing multiple ruleSets to be evaluated with an 'any' or 'all' match mode.
- Introduced a new segment schema that includes ruleSets and a match mode, ensuring backward compatibility with existing conditions.
- Updated the evaluation logic to prioritize ruleSets over conditions, ensuring correct behavior for segments with both.
- Created comprehensive tests for the new segment functionality, covering various scenarios including edge cases.
- Added a new fixture for segment OR groups to validate the implementation against expected outcomes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant