Skip to content

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

Merged
bdukes merged 4 commits into
feature/bulk-installfrom
bulk-install-event-log-paging
Mar 6, 2026
Merged

Bulk Install: Add filtering and paging to event log#7043
bdukes merged 4 commits into
feature/bulk-installfrom
bulk-install-event-log-paging

Conversation

@bdukes

@bdukes bdukes commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

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

@valadas valadas left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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 3 times, most recently from f7f12ae to 2f19d1a Compare March 6, 2026 17:03
@bdukes
bdukes force-pushed the feature/bulk-install branch from 3b976ab to 6fc5e74 Compare March 6, 2026 18:26
bdukes added 4 commits March 6, 2026 12:26
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 2f19d1a to 6758fbe Compare March 6, 2026 18:27
@bdukes
bdukes merged commit 2c1dc23 into feature/bulk-install Mar 6, 2026
2 of 3 checks passed
@bdukes
bdukes deleted the bulk-install-event-log-paging branch March 6, 2026 18:54
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