Skip to content

Bug: archived title matches crowd active comment matches out of task search #3596

Closed

Description

@yannickmonney

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:

  1. Create an active task titled Active comment-only search result and add a comment with the unique term archivepriorityprobe 987.
  2. Search that term within the project: the active task is returned (control).
  3. Create 25 other tasks whose titles contain that same term and archive all 25.
  4. Search again: all 25 results are archived; the active comment match is absent.
  5. 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.

Source:

Evidence: local/task-probe-search.py, local/task-probe-search-results.json

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions