Skip to content

GET /tasks search query q is ignored and returns unfiltered tasks #4

Description

@venkataramasu

Summary

GET /tasks?q=... does not apply text filtering and returns all tasks.

Intended outcome

Search query q should filter tasks case-insensitively across title and description.

Actual outcome

q=LAUNCH returns all tasks instead of only matching records.

Reproduction steps

  1. Install deps: python3 -m pip install -r requirements.txt
  2. Run tests: pytest -v tests/test_api.py
  3. Observe failure in test_list_tasks_search_filters_title_and_description_case_insensitive

Repro logs

tests/test_api.py::test_list_tasks_search_filters_title_and_description_case_insensitive FAILED

>       assert [task["id"] for task in launch_response.json()] == [1]
E       AssertionError: assert [1, 2, 3, 4] == [1]

Notes

This behavior is validated by HTTP-level tests and currently fails.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions