mirror of
https://github.com/Comfy-Org/Comfy-PR.git
synced 2026-11-04 23:37:33 +00:00
[PR #109] [CLOSED] Fix unique index collision risk in issue transfer tasks #112
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/Comfy-PR#112
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?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/Comfy-PR/pull/109
Author: @Copilot
Created: 11/6/2025
Status: ❌ Closed
Base:
main← Head:copilot/sub-pr-105-yet-again📝 Commits (10+)
5eb12f3feat: add desktop issue transfer taska29017ffeat: register desktop issue transfer task in run-gh-tasksbef29cffeat: add ComfyUI to Desktop issue transfer task14d5bfefeat: add Frontend to Desktop issue transfer taskc988cd7feat: register new desktop issue transfer tasks in run-gh-tasks878c842feat: Implement GitHub issue transfer tasks between ComfyUI and frontend/desktop repositoriesbb3a3dbdocs(easylabel.tsx): update comments to clarify allowed label patterns for better understanding and maintainabilitye05ab4arefactor(gh-issue-transfer-frontend-to-desktop): remove limit on issue transfer to allow processing of all issues2916190Initial plan42469eefix: use composite unique index with source repo info to prevent collisions📊 Changes
8 files changed (+1169 additions, -8 deletions)
View changed files
➕
app/tasks/gh-issue-transfer-comfyui-to-desktop/index.ts(+229 -0)📝
app/tasks/gh-issue-transfer-comfyui-to-frontend/index.spec.ts(+13 -2)📝
app/tasks/gh-issue-transfer-comfyui-to-frontend/index.ts(+22 -3)➕
app/tasks/gh-issue-transfer-desktop-to-frontend/index.spec.ts(+424 -0)➕
app/tasks/gh-issue-transfer-desktop-to-frontend/index.ts(+229 -0)➕
app/tasks/gh-issue-transfer-frontend-to-desktop/index.ts(+229 -0)📝
app/tasks/run-gh-tasks.ts(+16 -1)📝
run/easylabel.tsx(+7 -2)📄 Description
The unique index on
sourceIssueNumberalone creates collision risk when transferring issues from multiple source repositories (e.g., issue #123 fromcomfyanonymous/ComfyUIand issue #123 fromComfy-Org/ComfyUI_frontend).Changes
sourceOwnerandsourceRepofields to all task types{ sourceIssueNumber: 1 }to composite{ sourceOwner: 1, sourceRepo: 1, sourceIssueNumber: 1 }findOne()andfindOneAndUpdate()calls to use composite keyAffected tasks
gh-issue-transfer-frontend-to-desktopgh-issue-transfer-comfyui-to-desktopgh-issue-transfer-comfyui-to-frontendgh-issue-transfer-desktop-to-frontend✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.