fix(projects): scope project-issue move to its own project #18
Reference in New Issue
Block a user
Delete Branch "fix/user-project-move-multiproject-detach"
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?
Summary
MoveIssuesOnProjectColumnupdated theproject_issuetable with aWHERE issue_id = ?clause only. An issue assigned to multiple projects has oneproject_issuerow per project, so moving it within one project rewroteproject_board_idon every project's row — detaching the issue from all other projects it belonged to.Fix scopes the UPDATE to
(issue_id, project_id)so only the target project's row changes. This mirrors the fix already present inupstream/main.Test plan
TestAPIUserProjects/MoveProjectIssueMultiProjectIsolation: issue in two user projects, move it within one, assert its column in the other project is unchanged. Passes with the fix.TestAPIUserProjectssuite green (sqlite).Closes #17
Authored by Claude Opus 4.7 (assisting @oleks).