@cryptotaxi247 / CoPilot / commits / 3e78128d

Soc alerts sorting fix (#235)

* chore: Update sort parameter handling in construct_params function * refactor: Update SocAlertItemTime component to use alert_source_event_time

taylor_socfortress committed Jun 9, 2024 at 15:44 UTC 3e78128d8e19ac2b9b47894e8b5a85bafee0f183
2 files changed +2 -2
backend/app/connectors/dfir_iris/services/alerts.py
+1 -1
@@ -98,7 +98,7 @@ def construct_params(request: FilterAlertsRequest) -> dict:
98 params = {
99 "page": request.page,
100 "per_page": request.per_page,
101 - "sort": request.sort,
101 + "sort": request.sort.value if request.sort else None,
102 "alert_title": request.alert_title,
103 # Add more parameters here as needed
104 }
frontend/src/components/soc/SocAlerts/SocAlertItem/SocAlertItemTime.vue
+1 -1
@@ -3,7 +3,7 @@
3 <template #trigger>
4 <div class="time flex items-center gap-2" :class="{ hover: !hideTimeline }">
5 <span>
6 - {{ formatDate(alert.alert_creation_time) }}
6 + {{ formatDate(alert.alert_source_event_time) }}
7 </span>
8 <Icon :name="TimeIcon" :size="16" v-if="!hideTimeline"></Icon>
9 </div>