Skip to content

fix(window): the panel's table and its pool read one rule, not two - #1308

Merged
github-actions[bot] merged 1 commit into
developfrom
fix/panel-visible-results
Nov 25, 2026
Merged

github-actions[bot] merged 1 commit into
developfrom
fix/panel-visible-results

Conversation

@frapercan

Copy link
Copy Markdown
Owner

El panel seguia abriendo con un brazo de 114, con la revision anterior desplegada.

Por que. #1307 enseno al pool que un brazo que conservo la consulta como vecino propio esta superado solo donde la ventana contiene ademas brazos que la excluyeron. Pero la tabla no la arma el pool: la arma visibleResults(), en otro fichero, y esa copia mantenia la regla vieja --esconder todo brazo con exclude_self === false--. En esta ventana 112 de 114 son exactamente eso, asi que la tabla los tiraba todos y dejaba los dos brazos de metodo, uno de los cuales es la referencia: "1 de 1 brazos".

El arreglo quita la copia, no la parchea. La regla vive ahora una sola vez, dentro de visibleResults, que ya recibe todos los resultados y puede ver por si misma si algo en la ventana excluyo la consulta. El pool del panel llama a esa misma funcion en vez de filtrar a mano, asi que las dos no pueden volver a divergir. Una copia a mano de una regla es lo que hizo posible este fallo.

El test fija la forma de produccion: dos brazos de metodo sin exclusion y brazos de vecinos que conservan el primer hit a proposito, todos visibles sin pedir los superados. 21 pruebas en verde en local.

The panel still opened on one arm of 114. #1307 taught the pool that an arm which
kept the query as its own neighbour is superseded only where the window also holds
arms that excluded it, but the table is built by visibleResults() in another file,
and that copy kept the old rule: hide every arm whose exclude_self is false. In
this window 112 of 114 are exactly that, so the table dropped them all and left
the two method arms, one of which is the reference.

The rule now lives once, inside visibleResults, which already receives every
result and can see whether anything in the window excluded the query. The panel's
pool calls that same function instead of filtering by hand, so the two cannot
drift apart again. A hand-rolled copy of a rule is what made this bug possible,
and removing the copy is the fix, not patching it.

The test states production's shape: two method arms with no exclusion and
neighbour arms that keep the first hit on purpose, all of them visible without
asking for the superseded ones.
@github-actions
github-actions Bot enabled auto-merge (squash) November 25, 2026 11:15
@github-actions
github-actions Bot merged commit 08f2f44 into develop Nov 25, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant