Skip to content

fix: avoid stale resolve focus#638

Draft
ApexWorm wants to merge 1 commit into
peteromallet:mainfrom
ApexWorm:fix/stale-resolve-focus
Draft

fix: avoid stale resolve focus#638
ApexWorm wants to merge 1 commit into
peteromallet:mainfrom
ApexWorm:fix/stale-resolve-focus

Conversation

@ApexWorm

Copy link
Copy Markdown

Problem

Resolving an open member auto-focused its cluster using raw remaining membership. A previously fixed member that remained in the cluster could therefore produce a zero-item focused queue while other planned work existed.

Fix

Require a remaining cluster member to be state-open before restore/auto-focus. Retain auto-focus when a live open member remains.

Verification

  • python3 -m pytest -q desloppify/tests/commands/resolve/test_living_plan_direct.py
  • python3 -m pytest -q desloppify/tests/commands/resolve
  • python3 -m ruff check desloppify/app/commands/resolve/living_plan.py desloppify/tests/commands/resolve/test_living_plan_direct.py
  • python3 -m compileall -q desloppify/app/commands/resolve/living_plan.py desloppify/tests/commands/resolve/test_living_plan_direct.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant