From aa67bf7c8070243004a1979eac40841b426b35a1 Mon Sep 17 00:00:00 2001 From: silenceqi Date: Fri, 21 Feb 2025 16:40:07 +0800 Subject: [PATCH] fix: preserve audit log default sorting across pagination (#161) * fix: preserve audit log default sorting across pagination * chore: update release notes --- docs/content.en/docs/release-notes/_index.md | 3 ++- docs/content.zh/docs/release-notes/_index.md | 1 + web/src/pages/System/Audit/index.jsx | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/content.en/docs/release-notes/_index.md b/docs/content.en/docs/release-notes/_index.md index 7d3298ad..b350741e 100644 --- a/docs/content.en/docs/release-notes/_index.md +++ b/docs/content.en/docs/release-notes/_index.md @@ -20,7 +20,8 @@ Information about release notes of INFINI Console is provided here. - Fixed empty host when setup step finishes (#147) - Fixed the error of obtaining suggestions of field's value in discover (#151) - Fixed the wrong display of heatmap's data in alerting message (#157) -- Fixed Devtools `_sql` support for elasticsearch 6.x (#158) +- Fixed Devtools `_sql` support for elasticsearch 6.x (#158) +- Fixed audit log default sorting across pagination (#161) ### Improvements - Update agent config with cluster name (#148) diff --git a/docs/content.zh/docs/release-notes/_index.md b/docs/content.zh/docs/release-notes/_index.md index 5d81dd3f..64916e3d 100644 --- a/docs/content.zh/docs/release-notes/_index.md +++ b/docs/content.zh/docs/release-notes/_index.md @@ -21,6 +21,7 @@ title: "版本历史" - 修复数据探索中获取字段值建议的错误 (#151) - 修复告警消息热图数据显示错误的问题 (#157) - 修复开发工具 `_sql` 查询支撑 Elasticsearch 6.x 版本 (#158) +- 修复审计日志默认排序翻页之后丢失的问题 (#161) ### Improvements - 优化下发给 Agent 的配置,增加集群名称 (#148) diff --git a/web/src/pages/System/Audit/index.jsx b/web/src/pages/System/Audit/index.jsx index d79bed3b..5a14da31 100644 --- a/web/src/pages/System/Audit/index.jsx +++ b/web/src/pages/System/Audit/index.jsx @@ -69,6 +69,7 @@ export default (props) => { }), key: "timestamp", sortable: true, + defaultSortOrder: 'descend', render: (text, record) => { return formatUtcTimeToLocal(record.timestamp); },