Filter references decide membership through ES, and their q filter is ignored

Aperta
#2,884 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
elasticsearch, python
Ambito
databases

Direzione di ricerca

Start in core/collections/models.py at the cited ranges (921-959 and 1842-1860), then inspect the related issues ocl_online#249 and #356 for context. Trace how _apply_search results are handled and how filter-reference membership is evaluated. Done means the q result is applied with a test, membership is checked against the database, and zero-member q filter references are listed and re-evaluated.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

component/api component/content decision/human-review priority/medium program/platform-health signal/high-risk signal/needs-access signal/well-specified stage/triaged type/bug

Summary

Filter (intensional) references and the expansion filter parameter decide membership by querying Elasticsearch (core/collections/models.py:921-959, 1842-1860), so missing or stale docs silently shrink stored expansions. _apply_search's result is discarded at line 942, so a q filter never runs its name or synonym search.

Why now

Index gaps feed back into stored expansions until this is fixed, and the q bug is a plain correctness defect.

Acceptance criteria

  • The q filter's result is applied, with a test.
  • Filter-reference membership is evaluated from the database, or checked against it.
  • Filter references with a q property and zero members are listed and re-evaluated.

Evidence

  • ocl-online-docs/platform-health/data/2026-10-05/code-failure-modes.md §Summary 8, UU-18

Related

ocl_online#249, ocl_online#356

Workstream: Drift prevention · Sequence: Later · Suggested phase: P4 (the launch plan sets phases)

Lingua principale
Nessun dato sulla lingua
Stelle
4
Fork
2
Merge medio
2h 12m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenConceptLab/ocl_issues

Tutte le issue di OpenConceptLab/ocl_issues

Issue simili

Altre issue su Databases

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.