[GH-ISSUE #1907] request logs sorting is not reliable #17022

Closed
opened 2026-05-18 17:24:55 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @thutex on GitHub (Nov 22, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1907

Originally assigned to: @miloschwartz on GitHub.

Describe the Bug

while accessing the request logs, i noced we cannot sort by timestamp,
and it seems that the default is not to sort by timestamp, but by allowed or not allowed.

i also thought i saw it incorrectly sorting dates where results from yesterday came before results from today, even if the action was the same (however, at this exact moment, i cannot replicate that)

what i do know for sure is that there is no standard: if i don't select anything, i get allowed first (and from most to least recent), if i select allowed action it is the same, but if i select denied action, it suddenly decides to show the older entries first (so least to most recent sorting)

i would suggest adding an option to sort by timestamp, and defaulting to this, so that the log is reliably readable.
a nice addition to that would be 24h timestamps instead of 12h.

maybe something like datatables can be added to automatically add sortability ?

Environment

  • OS Type & Version: ubuntu 24.04
  • Pangolin Version: 1.12.2

To Reproduce

just open up the request logs and select a daterange, then filter by action allow, then action denied, you'll see that the sorting is not consistent and timestamp sorting is not possible.

Expected Behavior

either consistently show the most-to-least recent entries or allow sorting

Originally created by @thutex on GitHub (Nov 22, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/1907 Originally assigned to: @miloschwartz on GitHub. ### Describe the Bug while accessing the request logs, i noced we cannot sort by timestamp, and it seems that the default is not to sort by timestamp, but by allowed or not allowed. i also thought i saw it incorrectly sorting dates where results from yesterday came before results from today, even if the action was the same (however, at this exact moment, i cannot replicate that) what i do know for sure is that there is no standard: if i don't select anything, i get allowed first (and from most to least recent), if i select allowed action it is the same, but if i select denied action, it suddenly decides to show the older entries first (so least to most recent sorting) i would suggest adding an option to sort by timestamp, and defaulting to this, so that the log is reliably readable. a nice addition to that would be 24h timestamps instead of 12h. maybe something like datatables can be added to automatically add sortability ? ### Environment - OS Type & Version: ubuntu 24.04 - Pangolin Version: 1.12.2 ### To Reproduce just open up the request logs and select a daterange, then filter by action allow, then action denied, you'll see that the sorting is not consistent and timestamp sorting is not possible. ### Expected Behavior either consistently show the most-to-least recent entries or allow sorting
GiteaMirror added the bug label 2026-05-18 17:24:55 -05:00
Author
Owner

@miloschwartz commented on GitHub (Dec 3, 2025):

Hey, I changed the default sort and it seems to reliably show in the correct order now. This change will be available in the next release. Let me know if you still encounter this after the release is out and you update :)

<!-- gh-comment-id:3609245117 --> @miloschwartz commented on GitHub (Dec 3, 2025): Hey, I changed the default sort and it seems to reliably show in the correct order now. This change will be available in the next release. Let me know if you still encounter this after the release is out and you update :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#17022