Here’s an important concept that could have implications throughout our app (and I’m not alone).
When you have a constraint on “Do a Search For”, but the constraint returns an empty (NULL) value, “Do a Search For” then returns all values (instead of none) and that’s bad.
An example:
Do a search for role_name:first_item where event = 148682… and order_number = 1, returns A (correct)
Do a search for role_name:first_item where event = 148682… and order_number = 2, returns B (correct)
Do a search for role_name:first_item where event = 148682… and order_number = 3, returns C (correct)
Do a search for role_name:first_item where event = 148682… and order_number = 4, returns A (BAD)
There is no order_number 4. Do a Search for ignores the constraint on order_number if the value is empty/non-existant and returns the first_item for the event = A.
What’s the right way to avoid hitting constraint = empty values?