Inconsistent case sensitivity between global search and text filters
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 57/100
Direzione di ricerca
Start by tracing how global search and the built-in text filter build their Doctrine queries, then compare how each handles case sensitivity. The issue gives no file or test names, so locate the filter implementation and related tests first. Done means both mechanisms return consistent results for the same search term on PostgreSQL, with the intended default or configuration behavior covered by tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Inconsistent case sensitivity between global search and text filters
Description
There seems to be an inconsistency between the global search functionality (the search bar at the top of the CRUD index page) and the built-in text filters.
When using the global search, EasyAdmin generates a query that applies LOWER() to the database column and the search parameter.
However, when using a text filter, the generated query does not apply LOWER().
As a result, both search mechanisms behave differently when searching for the same phrase.
This is particularly noticeable when using PostgreSQL 18, where the LIKE operator is case-sensitive.
Steps to reproduce
- Use PostgreSQL 18 as the database.
- Create an entity with a string property (e.g.
name). - Add
nameto the global search fields. - Add a text filter for the same
nameproperty. - Insert records with different letter casing, for example:
John SmithJOHN SMITHjohn smith
- Search for
johnusing the global search. - Repeat the same search using the text filter.
Actual behavior
The global search uses case-insensitive matching by applying LOWER() to both the database column and the search parameter.
The text filter does not apply the same transformation, resulting in case-sensitive matching with PostgreSQL.
Consequently, the two search mechanisms return different results for the same search term.
Expected behavior
Both global search and text filters should behave consistently regarding case sensitivity.
Ideally, text filters should also perform case-insensitive matching by default, or at least provide a consistent way to configure this behavior.
Environment
- EasyAdmin: 5.x
- Database: PostgreSQL 18
- ORM: Doctrine ORM
- PHP: 8.5
- Symfony: 8.1
- Lingua principale
- PHP
- Stelle
- 4.3k
- Fork
- 1.1k
- Merge medio
- 2g 9h
- PR unite (30g)
- 52
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di EasyCorp/EasyAdminBundle
-
bug design
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
EasyCorp/EasyAdminBundle#7958 ·
I maintainer di solito rispondono entro 2 giorni
-
design feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
EasyCorp/EasyAdminBundle#7930 ·
I maintainer di solito rispondono entro 2 giorni
-
design
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 88/100
EasyCorp/EasyAdminBundle#7879 ·
I maintainer di solito rispondono entro 2 giorni
-
design
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
EasyCorp/EasyAdminBundle#7875 ·
I maintainer di solito rispondono entro 2 giorni
-
#[AdminRoute]: the requirements of an action silently replace the ones of the classForse già presa @anthonyhacart l’ha presa 2 giorni fa. Apertafeature
Difficoltà 3/5 Mezza giornata Idoneità per principianti 30/100
EasyCorp/EasyAdminBundle#7956 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di EasyCorp/EasyAdminBundle
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
taskforcesh/bullmq#5238 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itForse già presa @bfs2021 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Automattic/jetpack#55517 ·
I maintainer di solito rispondono entro 1 giorno
-
Address edit modal: what the customer types before the fields load is reset to the saved valueApertaMajor
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
PrestaShop/ps_onepagecheckout#245 ·
I maintainer di solito rispondono entro 1 giorno
-
wpvc
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
10up/ElasticPress#4420 ·
I maintainer di solito rispondono entro 1 giorno