Skip to main content
MediumAdd featurePython55 min

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.md
  • src/__init__.py
  • README.md
  • src/repository.py
  • src/search_service.py
  • src/api.py
  • tests/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.