Skip to content

fix: Adjust segment not rule#3267

Merged
kyle-ssg merged 4 commits intomainfrom
fix/adjust-segment-not-rule
Jan 11, 2024
Merged

fix: Adjust segment not rule#3267
kyle-ssg merged 4 commits intomainfrom
fix/adjust-segment-not-rule

Conversation

@kyle-ssg
Copy link
Copy Markdown
Member

@kyle-ssg kyle-ssg commented Jan 10, 2024

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Note: this feature is controlled via the segment_operator flag.

  • Adjusts the not condition to send the right payload to the API
  • Adjusts UI to distinguish between AND and AND NOT conditions

image

How did you test this code?

  • Created the above segment in production, viewed a user and added a trait that matches one of the rules. The user as a result was no longer part of the segment.

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2024 10:35am
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2024 10:35am
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2024 10:35am

@github-actions github-actions bot added the front-end Issue related to the React Front End Dashboard label Jan 10, 2024
@kyle-ssg kyle-ssg changed the title Adjust segment not rule chore: Adjust segment not rule Jan 10, 2024
@kyle-ssg kyle-ssg changed the title chore: Adjust segment not rule fix: Adjust segment not rule Jan 10, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 10, 2024

Uffizzi Preview deployment-44102 was deleted.

Copy link
Copy Markdown
Contributor

@novakzaballa novakzaballa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen Shot 2024-01-10 at 16 26 21

LGTM, just one thing, by removing the first condition and adding another one, the text is incorrect.

@kyle-ssg
Copy link
Copy Markdown
Member Author

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "Not" predicate operator in the Segment rules

2 participants