Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case sensitive "contains" filter operator #4449

Open
rashadksh opened this issue Apr 27, 2022 · 2 comments
Open

Case sensitive "contains" filter operator #4449

rashadksh opened this issue Apr 27, 2022 · 2 comments
Labels
enhancement New feature proposal help wanted Community contributions are welcome.

Comments

@rashadksh
Copy link

Is your feature request related to a problem? Please describe.
I let user search for words in his records and preview what has matched. So for example if he has a record with title of "Hello World" and he writes "world", Cubejs will return the record as it's case insensitive. However, after the user reviews returned records he can confirm selecting them, and this happens on my backend. By definition, my backend has to treat user search with respecting the case.
So after user confirm his query, he's surprised that saved records are empty cause "world" does not match "Hello World".

Describe the solution you'd like
I would like to pass an option to contains and notContains filter to force LIKE or ILIKE.

{
  member: "Book.title",
  operator: "contains",
  values: ["world"],
  caseSensetive: true
}

Describe alternatives you've considered
N/A
Additional context
N/A

@ivan-vdovin ivan-vdovin added enhancement New feature proposal help wanted Community contributions are welcome. labels Apr 29, 2022
@github-actions
Copy link

If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you.
If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines.
You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.

@thellimist
Copy link

@ivan-vdovin would love to have support on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature proposal help wanted Community contributions are welcome.
Projects
None yet
Development

No branches or pull requests

3 participants