fix(tasks): replace old strength on strength-only patch #111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/task-strength-patch"
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?
Replace old commitment strength on a strength-only patch while preserving other categories and refusing conflicting strengths.
Reviewed the complete diff. TaskPatch::effective_categories strips existing commitment strengths when categories are omitted so that a strength-only patch replaces the declared strength while preserving all non-strength categories. If conflicting strengths are passed in categories alongside strength, it is rejected with 422 Unprocessable Entity. Unit tests and full suite pass cleanly.