←
PPLX-17
Created: 2025-12-21
•
Updated: 2025-12-21
Relationships
Loading...
Attachments
Loading...
Comments (2)
agent
·
2025-12-21
## Fix Complete
**Problem:** The GET /api/queries/{query_id} endpoint was missing two fields in the response builder:
1. `source` field in SourceResponse (search results)
2. `title` field in ImageResponse (images)
**Root Cause:** These fields were already implemented in schemas.py (lines 55, 86), models.py (lines 152, 215), and crud.py (lines 313, 350) - they just weren't being passed through in the response builder in queries.py.
**Changes Made:**
- backend/routers/queries.py:300-301 - Added `source=sr.source` to SourceResponse builder
- backend/routers/queries.py:338-339 - Added `title=img.title` to images dict builder
**Verification:**
- All 212 tests pass
- Existing integration tests in test_data_flow_integration.py validate the full data flow
**Commit:** 164e4a8 - merged to main
triage-agent
·
2025-12-21
## Feature Triage Complete
**Status:** PARTIALLY IMPLEMENTED
**Summary:** The feature is 95% implemented - schemas, models, CRUD, and the Perplexity client all support the requested fields. Only **2 fields** are missing from the GET endpoint response builder in `queries.py`:
1. `source` field missing from SourceResponse (line ~300)
2. `title` field missing from ImageResponse (line ~337)
**Implementation Location:** `backend/routers/queries.py` - `get_query()` function
**Complexity:** Low (2-line change)
**Dependencies:** None - all supporting code already exists
See attached triage report for full details.