Repository navigation
fix(integrations): enforce current task ownership #1867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+4,364
−1,537
Merged
Changes from 13 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
85e07cf
fix(integrations): enforce current task ownership
tinsever e04e85e
style(integrations): format scoped gitea close handler
tinsever 8787420
fix(integrations): preserve resources and fetch comments before locki…
tinsever 394cd41
fix(tasks): invalidate moved resources in the initiating window
tinsever ca29c96
fix: address verified concurrency and migration review findings
tinsever 71e2a3e
fix: preserve live resources across concurrent moves and cleanup
tinsever f2e2527
fix: address verified delivery and concurrency review findings
tinsever 088a8f1
fix: preserve manual links for destinations without integrations
tinsever f37b776
merge: preserve current upstream PR matching and reopen behavior
tinsever 6104cd0
Revalidate imported issue links after provider reads
tinsever 2dd66f6
fix(integrations): guard pull request transitions against task moves
tinsever 802c5bd
fix(integrations): revalidate links across webhook and import continu…
tinsever ca6e4f7
fix(integrations): publish live task updates after committed provider…
tinsever cf2b030
fix(integrations): refresh imported task details after committed pages
tinsever b62c486
fix(integrations): publish complete GitHub task creation data
tinsever 53c75ea
fix(integrations): announce committed PR links and reimported resources
tinsever 2fca490
fix(integrations): keep branch link and status changes in one ownersh…
tinsever File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When an issue is initially unlinked and its opened webhook creates a task while this potentially paginated provider request is pending,
existingLinkremains null and the importer proceeds down the creation branch without rechecking. Becauseexternal_linkhas no uniqueness constraint for an integration/resource/external ID, both paths can commit separate tasks and links for the same provider issue. Serialize creation with the webhook or recheck under a shared lock after the fetch; the GitLab notes path atimport-gitlab-issues.ts:196has the same race.AGENTS.md reference: AGENTS.md:L5-L5
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified this creation race, including in the pre-PR main implementation: it checks for an issue link before creation but does not recheck under a creation lock or enforce an external-resource uniqueness constraint. Moving comment/notes requests outside ownership transactions widens an existing window; the current ownership guards still prevent writes crossing project/workspace boundaries. Coordinating importer and opened-webhook creation is separate provider-creation idempotency work, alongside the previously reported remote-orphan compensation followup. I am reporting it without expanding this ownership PR into that lifecycle redesign.