Remove deprecated NoteTypes from enum (reference, journal, incident, post, todo, issue, milestone) #225
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#225
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?
Type
Feature
Lineage
Related to
forgejo_admin/claude-custom #180(spike: note type system audit).Depends on pal-e-api#224 (data migration) completing first.
Repo
forgejo_admin/pal-e-apiUser Story
As a developer
I want a minimal, unambiguous type system
So that I can quickly categorize work without overlapping categories
Context
The audit found 7 types that don't justify the enforcement chain. Data migration (#224) moves all notes away from these types. This ticket removes them from the enum so new notes can't use them.
Prerequisites completed:
File Targets
Files to modify:
src/pal_e_docs/schemas.py-- remove reference, journal, incident, post, todo, issue, milestone from NoteType Literalsrc/pal_e_docs/routes/notes.py-- remove 7 entries from VALID_STATUSES dictFiles NOT to touch:
alembic/-- no migration needed (note_type is plain String)Acceptance Criteria
create_note(note_type="reference")returns 422create_note(note_type="journal")returns 422create_note(note_type="incident")returns 422create_note(note_type="post")returns 422create_note(note_type="todo")returns 422create_note(note_type="issue")returns 422create_note(note_type="milestone")returns 422Test Expectations
pytest tests/ -vConstraints
Checklist
Related
project-pal-e-agencyforgejo_admin/claude-custom #180-- parent spikeforgejo_admin/pal-e-api #224-- prerequisite (data migration)Review History
Scope Review: READY
Review note:
review-482-2026-03-27All template sections present, traceability complete (story:pm-scope, arch:note-system, Forgejo issue). Both file targets verified against local codebase -- deprecated types already removed from NoteType Literal and VALID_STATUSES. Prerequisite #224 confirmed closed. 2 files in 1 repo, under 5 minutes. No decomposition needed. Issue is already closed with status:approved; board item #482 is ready for done column.