fix(appraiser-facts): valid Paperclip priority enum (normal→medium)
The 'חלץ עובדות שמאיות עכשיו' button returned HTTP 500. Root cause: wake_analyst_for_appraiser_facts POSTs a child issue to Paperclip with priority='normal', but Paperclip's ISSUE_PRIORITIES enum is only critical|high|medium|low. createChildIssueSchema (Zod) rejects 'normal' with 400 Bad Request; pc_request raise_for_status() turns it into a 500 surfaced to the chair. Fixed to 'medium' (the sole non-normal occurrence in the repo). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1083,7 +1083,10 @@ async def wake_analyst_for_appraiser_facts(
|
||||
"title": f"[ערר {case_number}] חילוץ עובדות שמאיות",
|
||||
"description": description,
|
||||
"status": "in_progress",
|
||||
"priority": "normal",
|
||||
# Paperclip ISSUE_PRIORITIES = critical|high|medium|low — "normal"
|
||||
# is NOT a valid enum value and the createChildIssueSchema (Zod)
|
||||
# rejects it with 400, which surfaces to the chair as a 500.
|
||||
"priority": "medium",
|
||||
"assigneeAgentId": analyst_id,
|
||||
},
|
||||
raise_on_error=True,
|
||||
|
||||
Reference in New Issue
Block a user