7e-1a: QA nits cleanup — redundant assignment + test helper hygiene #111
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
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-api#111
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 7 → Phase 7e → Phase 7e-1aRepo
forgejo_admin/pal-e-docsUser Story
As a developer reading the note sync code,
I want the create_note flow to clearly show that html_content comes from the compiler,
So that I don't mistakenly think raw input is persisted.
Context
QA review of PR #110 (7e-1) found 3 non-blocking nits. This issue addresses them.
File Targets
Files to modify:
src/pal_e_docs/routes/notes.py— changehtml_content=body.html_contenttohtml_content=""increate_note()Note constructor (line ~273).parse_and_store_blocks()overwrites it with compiled output anyway.tests/test_note_block_sync.py— improve_count_blocks(),_get_blocks(),_get_compiled_page()helpers:TestingSessionLocal()sessions_get_compiled_page(), either eagerly load needed attributes or add a comment noting the detached object limitationAcceptance Criteria
create_noteconstructor useshtml_content=""(not raw input)Test Expectations
pytest tests/ -vConstraints
Checklist
Related