socfortress / CoPilot

SOCFortress CoPilot
https://www.socfortress.co
GNU Affero General Public License v3.0
155 stars 25 forks source link

Ascending and Descending function not working in Soc/Alerts #238

Closed edmondgodwin closed 3 weeks ago

edmondgodwin commented 3 weeks ago

Describe the bug The integration of alerts from Iris into coPilot is currently malfunctioning, resulting in alerts being sorted based on the alert number. When attempting to reorder them in descending order to display the most recent logs at the top of the page, the functionality of the Ascending and Descending buttons to rearrange the alerts is not working as expected.

To Reproduce Steps to reproduce the behavior:

  1. Go to Soc
  2. Click on Alerts
  3. Toggle the Ascending and Descending button
  4. Page is not responding and the most recent logs from Iris are shown on the last page in CoPilot

Expected behavior The anticipated outcome is to showcase the latest logs from Iris on the initial page, mirroring the functionality in Iris. This approach aids in swiftly identifying the most recent alerts and facilitates effective sorting.

Screenshots

page1 page4
taylorwalton commented 3 weeks ago

fixed in commit: https://github.com/socfortress/CoPilot/commit/3e78128d8e19ac2b9b47894e8b5a85bafee0f183

make sure to pull the latest built images