XE-13243 · Bounty
[Desk] sync._other_live_patches drops a manually-fixing ticket out of fixing while another maintainer's Fixes #n PR is still open
Report
Summary
In desk/services/sync.py:341-355, 376-389 (xeprotocol/desk@ab9df7f), when a bounty ticket is already in status == "fixing" (set manually or via the internal tracker) before two maintainer Fixes #n PRs (PR A and PR B) open against its GitHub issue:
_follow_pull_stateseest.status == "fixing"(L341), calls_moved_from(db, t)(L345) which returns""because no earlier PR moved the ticket intofixing, and recordsfollowed = "open",moved_from = ""on bothPR AandPR B.- If
PR Ais closed unmerged whilePR B(trusted=True,Fixes #n,state="open",followed="open") is still open,_other_live_patches(L387) only checks:
Becauseif other.state == "merged" or other.moved_from or (bot and other.author == bot):PR Bhasmoved_from == ""(and was opened by a human maintainer rather thangithub_bot_login),_other_live_patchesreturnsFalse, and_follow_pull_state(L354) walks the ticket backward out offixingtoacceptedeven thoughPR Bis an active maintainerFixes #nPR!
Rule
Unmerged closure of one PR against a fixing ticket never drops the ticket out of fixing while another maintainer's open Fixes #n PR (other.followed == "open") remains open against it (while stranger fork PRs and bare #n mention PRs keep followed == "" and hold nothing).
Proposed Fix
Ready-to-merge patch and regression tests submitted in https://github.com/xeprotocol/desk/pull/2.
Thread
Joseph Denneteam2026-11-20 00:15 UTCgithub
Thanks for the report. We have read it against the current code and it is being handled. The assessment and any award follow the fix.