feat: allow comparing list sizes against a number#1530
Conversation
|
There are a few places in the FE that are technically a bug because we now have a situation where the rule type !== value type. e.g. a rule that has a text_list type has a custom value type of I'd like to fix that in the next PR since it unfortunately requires a big of rethinking around the |
|
If we want to be sure that nothing breaks though, I can always start work on that change first, then rebase this PR on that once merged. I don't mind delaying this PR until that happens as I'm not urgently waiting for this feature or anything like that. |
That's another area I'd like to get cleaned up, there's a ton of inappropriate uses of useEffect that make changing things really hard. |
4975b19 to
110c7dc
Compare
Co-authored-by: Ben Scobie <benscobie@users.noreply.github.com>
110c7dc to
ac40ce3
Compare
|
🎉 This PR is included in version 2.13.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This PR:
NUMBER_LISTandTEXT_LIST(I chose "list" to align with the term already used in the UI/copy)COUNT_EQUALS,COUNT_NOT_EQUALS,COUNT_BIGGER,COUNT_SMALLERNUMBERandTEXTto the new rule typesdoRuleActionto support the new potential value types. I want to do a lot more cleanup here, but I'll do that in its own refactoring PR instead.I think this requires no migration, since all rule actions that could have been applicable to list values previously are still valid on the new rule types (it is a superset). But I'm not 100% sure if I'm looking at the right place for how the rule actions are serialised and persisted.