budibase icon indicating copy to clipboard operation
budibase copied to clipboard

oneOf filter support for user search - Can only search by string.email or equal._id

Open andyburgessmd opened this issue 11 months ago • 7 comments

Checklist

  • I have searched budibase discussions and github issues to check if my issue already exists

Hosting

  • Self
    • Method: docker
    • Budibase Version: 2.21.5
    • App Version: 2.21.5

Describe the bug The application is shows the alert notification "Can only search by string.email or equal._id" image And this in the console image

This is intermittent and doesn't happen on every request.

To Reproduce Steps to reproduce the behavior: I've not been able to work out what is causing this yet to be able to provide replication steps. But will keep trying to diagnose what is specific.

andyburgessmd avatar Mar 11 '24 09:03 andyburgessmd

I think this is showing when a dataprovider (or in a block) has a filter that is filtering on a user table/relationship.

andyburgessmd avatar Mar 12 '24 09:03 andyburgessmd

@andyburgessmd if this happens to you again could you please share the request payload? looks like something isn't right there and it would help us to investigate - thanks!

andz-bb avatar Mar 12 '24 14:03 andz-bb

@andz-bb Yes, its still happening. The payload is {"query":{"oneOf":{"_id":["us_e80d550f8a944cc59eae0ab558b6757f"]}},"paginate":true,"limit":100}

andyburgessmd avatar Mar 12 '24 14:03 andyburgessmd

Hey @andyburgessmd,

Does this happen when you are using the User column in conjunction with a form block? I think I've got a solid recreate. Will post it below, this seems to only affect the builder and doesn't affect the published or previewed apps.

block user test-export-1710317648727.tar.gz

ConorWebb96 avatar Mar 13 '24 08:03 ConorWebb96

@ConorWebb96 I've stripped a duplicate one of the pages that is showing the error back to try and figure out what is causing it. It now just has a table block image Using data from internal table called Components with structure image There is a relationship to the User table, another table called Templates and another called Environment, the formula field is static using the name field from the Environment relationship. There isn't a separate form block but the table block does use details side panel and the button uses a new row side block.

I get the error in the builder view, the preview and published apps.

andyburgessmd avatar Mar 13 '24 09:03 andyburgessmd

@ConorWebb96 any progress on this? Still getting the error shown in 2.22.5

andyburgessmd avatar Mar 20 '24 12:03 andyburgessmd