Add project field to list_notes API response #117
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-api#117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lineage
plan-2026-02-26-tf-modularize-postgres→ Phase 7f → Phase 7f-4 (attribute augmentation) → Deliverable #6Repo
forgejo_admin/pal-e-docsUser Story
As a platform operator using the MCP tools
I want
list_notesto include the project field in each note summarySo that I can see which project each note belongs to without calling
get_notefor every single noteContext
The
list_notesendpoint returns note summaries (no html_content) to save tokens. But it omits theprojectfield, which means there's no way to see project distribution without fetching every note individually. This blocks deliverable #6 of 7f-4 (project + parent assignment) — Betty Sue can't audit which notes lack project assignments without callingget_note262 times.The
get_noteendpoint already includes the full project object. Thelist_notesendpoint should include at minimum the project slug and name.File Targets
Files to modify:
src/pal_e_docs/routes/notes.py— update the list_notes query to join/load the project relationshipsrc/pal_e_docs/schemas.py— update theNoteSummaryschema to include a project field (either fullProjectOutor a lightweightProjectRefwith just slug + name)Files NOT to touch:
src/pal_e_docs/models.py— the relationship already exists on the Note modelAcceptance Criteria
GET /notes/response includes project info for each note (at minimum: project slug and name, or null if unassigned)get_noteresponse is unchangedTest Expectations
pytest tests/ -k test_list_notesConstraints
{"slug": "...", "name": "..."}over the full ProjectOut schemaChecklist
Related
phase-postgres-7f-4-attribute-augmentation— parent phasepal-e-platform— project