-
Notifications
You must be signed in to change notification settings - Fork 297
Filter issues from deleted documents in issues dashboard #2087
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
Conversation
8cc28e2 to
0dcdcd0
Compare
| return Result.ok(true) | ||
| }, | ||
| () => { | ||
| publisher.publishLater({ |
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.
The github diff is distraous, i guess the only thing you have changed is sending this new event?
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.
Correct
| if (activeDocumentUuids.length > 0) { | ||
| conditions.push(inArray(issues.documentUuid, activeDocumentUuids)) | ||
| } else { | ||
| conditions.push(sql`FALSE`) |
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.
what why?
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.
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
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.
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.
0dcdcd0 to
e800c51
Compare
What?
Issues from deleted documents in current commit should not be visible in the issues dashboard.
TODO