harmonia list: search ignores what relation columns show - matches the key, not the label
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 84/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- java, javascript
- Ambito
- frontend
Direzione di ricerca
Inizia da template-application-ui-harmonia-java/ui/perspective/manage/list-page.js.template ed esamina come filteredItems cerca le righe e come exportCell risolve le etichette delle relazioni. Poi controlla i template di elenco simili per verificare se usano la stessa logica di ricerca. Il lavoro è concluso quando la ricerca corrisponde al testo visualizzato della relazione e il filtro continua a funzionare come descritto; l’issue non indica test da eseguire.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
In a generated Harmonia list page, the search box above the list does not match what a relation (foreign key) column shows. It matches the raw key the row carries instead.
Steps to reproduce
- In an inventory app, create a product named
QA-SW-1110and two stock movements for it. - Open Stock Movements. Two rows show
QA-SW-1110in the Product column. - Type
QA-SWin "Search Stock Movements...".
Actual: "No matching Stock Movements".
Expected: the two rows that show QA-SW-1110.
The reverse also happens. Typing a product's id matches rows where that number appears nowhere on screen.
Filter → Product → QA-SW-1110 finds both rows, because the filter sends an IN condition on the keys to the server. That is the current workaround.
Cause
template-application-ui-harmonia-java/ui/perspective/manage/list-page.js.template, filteredItems:
return this.items.filter(it => Object.values(it).some(v =>
v != null && String(v).toLowerCase().includes(q)));
It compares the row's raw values. For a relation column the row holds only the key (Product: 2). The label is resolved only when the cell is rendered.
Suggested fix
Do what sorting already does for relation columns (#7721): match the search term against the displayed text, this.exportCell(row, column) over exportColumns, instead of Object.values(row). Check the sibling list templates for the same code shape.
- Lingua principale
- Java
- Stelle
- 278
- Fork
- 97
- Merge medio
- 12h 43m
- PR unite (30g)
- 296
Preparare l'ambiente
- Nessun Dockerfile né 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 eclipse-dirigible/dirigible
-
harmonia list: the record sheet's title collapses to 0 height when the record's properties overflow the sheetForse già presa @NicoleNG18 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
eclipse-dirigible/dirigible#8570 ·
I maintainer di solito rispondono entro 1 giorno
-
intent checks: a soft duplicate warning is asked again on every update, even when its fields did not changeForse già presa @NicoleNG18 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
eclipse-dirigible/dirigible#8568 ·
I maintainer di solito rispondono entro 1 giorno
-
harmonia form: a boolean (checkbox) field is marked required with *, though unchecked is a valid answerForse già presa @NicoleNG18 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
eclipse-dirigible/dirigible#8563 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eclipse-dirigible/dirigible#8548 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
eclipse-dirigible/dirigible#8354 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di eclipse-dirigible/dirigible
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
wultra/powerauth-tests#980 ·
-
account bug communication lecture
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
line/centraldogma#1397 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
cryptomator/hub#515 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
vert-x3/vertx-mail-client#268 ·