Fix AND prefix on rule form #2234
Reference in New Issue
Block a user
Delete Branch "fix-condition-prefixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, there are a handful of weird things when creating/editing rules around the prefix for a condition:
I'm sure there are some more odd cases for different circumstances, but ultimately it seems like the issues are:
0, which breaks the current logic.To solve for all of this weird behavior, I've done a few things:
ANDvsORon the 2+ subcondition in a condition group based on theANYorALLoperators. This added a lot of complexity for a small payoff in my opinion, since the any/all operator already clearly show what the condition will be. Maybe this could be a future improvement, but it didn't seem worth the complexity at the moment.Here's a video showing proper prefixes for all the actions (adding condition, group, subconditions, removals, edits, etc):
https://github.com/user-attachments/assets/b121eeb3-115e-4a2f-9de3-ffc4f5ae097c
Fixes #2230
This also implements the
primary_condition_titlefield on a rule that Zach recommended here.Nice, this looks good! Good call on the complexity/value tradeoff, I 100% agree that it's not worth overloading this with complexity at this stage.