I need some help validating that my premise is correct before submitting a bug. It gets a little detailed, but bear with me.
Here are the relevant link:
View: https://helpexamples.bubbleapps.io/version-test/contains_bug
Edit: helpexamples | Bubble Editor
Short Description The “contains” operation performs differently when used is a search than when used in a filter.
Setup #1
I have a table called “school” that has fields for “name” and “levels” where levels is a comma separated list of grade levels (e.g. 6,7,8 ). I also have a table called “district” that has fields for “name” and “schools” where schools is a list of “school” things.
I have a page that has a dropdown for district and a dropdown for grade level. I have a repeating group with a data source that is a search for school things with a constraint “levels contains Dropdown Level’s value”
This repeating group IGNORES the district dropdown for the purposes of this test.
Expected Behavior #1 When a specific grade level (e.g. 3) is selected from the grade level dropdown, the repeating group should only bring back school records that have the value 3 in their levels field.
Observed Behavior #1 Works exactly as expected.
Here is the bug part.
Setup #2
Given the same tables/data structure explained above and the same page setup, I also have a second repeating group with a data source that take’s the dropdown district’s value’s school and filters it as “levels contains Dropdown Level’s value”. In other words, it says "given the currently selected district thing, look at the list of school things the district holds and only bring back the ones that have a levels field that contains the selected grade level (e.g. 3).
Expected Behavior #2 When a specific grade level (e.g. 3) is selected from the grade level dropdown, the repeating group should only bring back school records that have the value 3 in their levels field.
Observed Behavior #2 No records are returned.
So despite doing the same thing from a constraint perspective, the contains operator works differently for a search operation than it does for a filter operation.
Anyone see anything wrong with my setup? Anyone else run into this before?
Thanks,
Marc


