mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-16 14:47:04 -05:00
[PR #3119] [MERGED] Sort resource filter options in audit logs #36833
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/3119
Author: @Adityakk9031
Created: 5/20/2026
Status: ✅ Merged
Merged: 5/28/2026
Merged by: @oschwartz10612
Base:
main← Head:#3086📝 Commits (1)
73e9e83Sort resource filter options in audit logs📊 Changes
3 files changed (+45 additions, -3 deletions)
View changed files
📝
server/private/routers/auditLogs/queryAccessAuditLog.ts(+15 -1)📝
server/private/routers/auditLogs/queryConnectionAuditLog.ts(+15 -1)📝
server/routers/auditLogs/queryRequestAuditLog.ts(+15 -1)📄 Description
Description
Fixes #3086.
The resource filter dropdown in the HTTP request log was using the order returned by the audit-log filter attributes API. That API collected distinct resource IDs from log rows, fetched resource names, and returned the merged result without sorting. As a result, the dropdown order could appear ID-based, log-order-based, or otherwise inconsistent with the public resources view.
This change sorts resource filter options by resource name before returning them from the audit log APIs. It also applies the same ordering to access and connection log resource filters so similar dropdowns stay consistent.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.