Add Ranked Support Ticket Search
A practice debugging and feature-extension interview round in Python. Read an unfamiliar codebase, implement the requested behavior, run tests, and explain your decisions to an AI interviewer.
The incident
Support agents need a search endpoint that can filter tickets by text, status, and priority. The repository already returns ticket records; your task is to wire the feature through the search service and API response shape.
Implement the feature in the editable files while preserving the current list endpoint behavior.
Requirements
- Filter by optional query text across title, body, and tags
- Filter by optional status and priority
- Rank title matches above tag matches above body matches, with priority as a tie-breaker
- Return deterministic results sorted by score descending then ticket id
- Expose the feature through the API handler
What this round practices
A feature round rather than a bug hunt: add filtered, ranked search across the repository, service, and API layers of a small support tool. It practices reading an existing layering before extending it and keeping the current list endpoint unchanged.
Files you will work in
These 7 workspace files open in the in-browser editor when you start the round. Hidden tests also run when you submit.
task.mdsrc/__init__.pyREADME.mdsrc/repository.pysrc/search_service.pysrc/api.pytests/test_support_search.py
What you are assessed on
The scored report evaluates both your investigation steps and what you explain during the conversation, not only whether the final test run passes.
- Codebase understanding
- Requirement decomposition
- Implementation quality
- Verification
- Communication clarity
How the round works
You get 55 minutes in a Python workspace that runs in your browser, with no setup. Talk through your plan with the AI interviewer by voice or text, run the tests as often as you like, and submit when the visible checks pass. Hidden tests run on submit, and the scored report covers what you did and what you explained.
Ready to debug this codebase?
Open the workspace, run the failing check first, and walk the AI interviewer through your findings.
Related rounds
View all debugging rounds- MediumAdd feature
911 Dispatch: Responder Recommender
Extend a 911 dispatch system to recommend the top responders for an incident under capability, availability, stale-GPS, and ranking constraints.
Python · 45 min
- MediumBug fix
Rate Limiter: Requests Slip Through During an Outage (Python)
The API gateway admits requests during a quota-store outage, while unexpected storage errors disappear from its caller.
Python · 30 min
- MediumBug fix
Cache cleanup: reconcile the overnight report
The overnight cache report disagrees with the morning metrics in both directions. Trace a small Python service, reconcile the counts, and verify its replay checks before operations plans capacity.
Python · 45 min