Exercise 3: Why the Search Route Has No status Filter — Possible Solution ==================================================================== WHAT THE SEARCH ROUTE IS ACTUALLY FOR ------------------------------ This route exists specifically to help a user re-add something they've bought before - finding a previously-seen item quickly, whether it's currently still active in the pantry or was already marked used at some point in the past. Restricting the search to only active items would defeat that exact purpose, since a used item is often precisely what someone is trying to search for when they're about to buy it again. WHY CHAPTER 6'S ALERTS ROUTE IS DIFFERENT ------------------------------ The alerts route has a genuinely different job - surfacing only items that currently need attention because they're actively sitting in the pantry and expiring soon. A used item, having no live expiry date and needing no action, is correctly irrelevant to that specific query, which is why status = 'active' belongs there but not in the search route. WHY THIS WORKS AS AN ANSWER ------------------------------ It correctly explains that the search route's whole purpose (fast re-adding of previously-seen items) requires searching the complete history regardless of status, and correctly contrasts that against the alerts route's own different, narrower purpose (only items needing current action), which is why that route does filter by status and this one deliberately doesn't.