Closed taisukeh closed 5 years ago
We're switching to moving search functionality to the datastore. Since we're using sequelize, we're stuck with the case-sensitive search, since ILIKE is only available for postgres (http://docs.sequelizejs.com/manual/tutorial/querying.html#operators).
We're switching to moving search functionality to the datastore. Since we're using sequelize, we're stuck with the case-sensitive search, since ILIKE is only available for postgres (http://docs.sequelizejs.com/manual/tutorial/querying.html#operators).
What happens if we use ILIKE on sql ? will it fail or fall back to current behavior. If it falls back we should do it.
Added a PR to address this issue. It will check if the dialect is postgres
. If it is, it will use case insensitive search. Otherwise, fall back to the current behavior.
@taisukeh This behavior can be tuned by collation
of the DB or column and it should work for the sql dbs we support. But since we don't set it in the first place, to do it now we need to alter table
which is kinda expensive to do...
This is now working for cd.screwdriver.cd
, since our DB is postgres.
Thanks so much!
What happened:
Currently, the pipeline search query is case sensitive.
What you expected to happen:
The pipeline search query should be case insensitive.
How to reproduce it:
Search Filbird/sd-cmd-test pipeline by
filbird
.