Skip to content

Fix orphan pinned items after project deletion#19

Merged
furtherref merged 1 commit intomainfrom
codex/fix-orphan-pinned-projects
May 3, 2026
Merged

Fix orphan pinned items after project deletion#19
furtherref merged 1 commit intomainfrom
codex/fix-orphan-pinned-projects

Conversation

@furtherref
Copy link
Copy Markdown
Owner

Summary

  • filter and clean pinned items that point to missing issues or projects
  • remove project pins transactionally when deleting projects
  • publish pin deletion events so sidebar pin caches refresh
  • add handler regression tests for project pin cleanup and historical orphan pins

Test plan

  • git diff --check
  • cd server && go test ./internal/handler -run 'Test(DeleteProjectRemovesPins|ListPinsOmitsMissingProjectPins)' -count=1 -v (local DB unavailable, handler suite skipped with database not reachable)\n- git push pre-push hook: lint, typecheck, test, build passed

@furtherref furtherref merged commit 30aff48 into main May 3, 2026
2 checks passed
@furtherref furtherref deleted the codex/fix-orphan-pinned-projects branch May 3, 2026 10:15
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