ProBoard
Web development
Web developmentPublished Oct 27

Notes search: tag filter matches substrings

`tag=py` returns notes tagged `python` instead of nothing.

Description

Notes search service: `GET /notes?q=&tag=`. Problem: the tag filter is a substring match, so `tag=py` returns every note tagged `python` or `pytest`. Tags must match exactly. The text query works fine. Expected: - tag comparison is exact (case-insensitive is optional); - `q` + `tag` are still combined with AND; - response shape unchanged. Acceptance: `python -m unittest discover -s tests` passes. Message me and I'll give you the test data. Small job, but it's annoying every single day.

Skills

  • Python
  • FastAPI