Skip to content

Bulk Install: Add filtering and paging to event log#7043

Open
bdukes wants to merge 4 commits intofeature/bulk-installfrom
bulk-install-event-log-paging
Open

Bulk Install: Add filtering and paging to event log#7043
bdukes wants to merge 4 commits intofeature/bulk-installfrom
bulk-install-event-log-paging

Conversation

@bdukes
Copy link
Contributor

@bdukes bdukes commented Feb 27, 2026

This is part of the ongoing effort for #5920.
Since this is a feature branch, I will self-approve this PR.

This PR adds the ability to filter the Bulk Install event log by Severity and Event Type, as well as paging links:
Screenshot of event log tab with filter dropdowns and paging

Theoretically, Bulk Install has four severity levels, but only two are used (Info and Warning). Also, since its custom API auth was replaced with API Tokens (see #7033), there are not logs about authentication issues here (only IP safelist violations). This opens to question to me of whether Bulk Install should have its own Event Log at all, or if it should just use DNN's event log (and then this entire tab could be removed).

@bdukes bdukes added this to the Future: Minor milestone Feb 27, 2026
@bdukes bdukes changed the base branch from develop to feature/bulk-install February 27, 2026 19:29
Copy link
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

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

Nice!

Comment on lines +15 to +40
function* makePagesIterator(current: number, lastIndex: number) {
const start = Math.max(current - 5, 0);
const end = Math.min(start + 10, lastIndex);
if (start !== 0) {
yield toPageItem(0, current);
if (start === 2) {
yield toPageItem(1, current);
} else if (start !== 1) {
yield ellipsisItem;
}
}

for (let i = start; i <= end; i++) {
yield toPageItem(i, current);
}

if (end !== lastIndex) {
if (end === lastIndex - 2) {
yield toPageItem(lastIndex - 1, current);
} else if (end !== lastIndex - 1) {
yield ellipsisItem;
}

yield toPageItem(lastIndex, current);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Fancy!

@bdukes bdukes force-pushed the bulk-install-event-log-paging branch from 32039ce to a643378 Compare March 2, 2026 17:54
bdukes added 4 commits March 2, 2026 14:00
Name the store import store instead of state
Move store import to the top of the local imports
Move local model import to the bottom of the import list
Only show about 11 pages, plus first and last with ellipsis filling gaps
@bdukes bdukes force-pushed the bulk-install-event-log-paging branch from a643378 to f7f12ae Compare March 2, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants