You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: archived title matches crowd active comment matches out of task search #3596
Reproduced locally on 44e0dcf254975286c0e9dea443b5cd1ca6b23347 with real services. No production testing.
searchTasks fills its 25-result field page before looking in comments. Once 25 archived tasks match a title/description field, it skips comment search altogether, hiding active work whose matching text is in discussion. With 24 archived field hits the active task immediately reappears and sorts first.
Steps:
Create an active task titled Active comment-only search result and add a comment with the unique term archivepriorityprobe 987.
Search that term within the project: the active task is returned (control).
Create 25 other tasks whose titles contain that same term and archive all 25.
Search again: all 25 results are archived; the active comment match is absent.
Rename one archived-field match to remove the term: the active result reappears in the 25-result page.
Expected: Rank candidate matches from fields and comments together before applying the 25-result limit; archived results should not exclude matching active work.
Actual: A hidden branch of the search means an active task can only be found if fewer than 25 archived tasks match other fields.
Dedup: Cached 931 issue titles and GitHub search archived comment search: unrelated closed 152 only. Existing 3325 fixed archived work being unsearchable; this is inverse active-comment starvation after archived inclusion.
Limits: Real local HTTP/API+Postgres. Search query is scoped to the probe project and all test data is synthetic. No screenshot claimed.
Acceptance:
With 25+ archived field hits and one active comment hit, the active task remains in the returned first page.
Search remains bounded and duplicate task hits are deduplicated before final ordering/limit.
Activity