Skip to content

Conversation

@andresgutgon
Copy link
Contributor

@andresgutgon andresgutgon commented Jan 6, 2026

What?

Issues from deleted documents in current commit should not be visible in the issues dashboard.

TODO

  • Filter issues from deleted documents in the current commit the user is seing
  • Unassign the ocurrences to that issue from the commit the document is deleted

@andresgutgon andresgutgon force-pushed the fix/filter-issues-from-deleted-documents branch from 8cc28e2 to 0dcdcd0 Compare January 7, 2026 09:49
return Result.ok(true)
},
() => {
publisher.publishLater({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The github diff is distraous, i guess the only thing you have changed is sending this new event?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct

if (activeDocumentUuids.length > 0) {
conditions.push(inArray(issues.documentUuid, activeDocumentUuids))
} else {
conditions.push(sql`FALSE`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what why?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, you want to return an empty list of issues because there are no active documents in the commit... maybe you should do an early return in the calling function no? so no db hit at all

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This else won't happen rarely. All commits should have an active document

Issues from deleted documents in current commit should not be visible in
the issues dashboard.
@andresgutgon andresgutgon force-pushed the fix/filter-issues-from-deleted-documents branch from 0dcdcd0 to e800c51 Compare January 7, 2026 12:48
@andresgutgon andresgutgon merged commit 511d2a2 into main Jan 7, 2026
7 checks passed
@andresgutgon andresgutgon deleted the fix/filter-issues-from-deleted-documents branch January 7, 2026 14:19
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants