From 2960b5794cb81e79036979689f0421c8c0f29e40 Mon Sep 17 00:00:00 2001 From: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com> Date: Mon, 18 Jul 2022 12:37:23 +0200 Subject: [PATCH] Sorting by agents in the table groups (#4323) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added sortable by agent count option to the groups table * Added changelog entry Co-authored-by: Álex (cherry picked from commit 9079f0768aff0b13946fd2097105d0b44f090d5a) --- CHANGELOG.md | 4 ++++ .../components/management/groups/utils/columns-main.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a3553d385..200a2f003a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to the Wazuh app project will be documented in this file. ## Wazuh v4.4.0 - OpenSearch Dashboards 1.2.0 - Revision 4400 +### Added + +- Added the option to sort by the agents count in the group table. [#4323](https://github.com/wazuh/wazuh-kibana-app/pull/4323) + ### Changed - Changed the HTTP verb from `GET` to `POST` in the requests to login to the Wazuh API [#4103](https://github.com/wazuh/wazuh-kibana-app/pull/4103) diff --git a/public/controllers/management/components/management/groups/utils/columns-main.js b/public/controllers/management/components/management/groups/utils/columns-main.js index bd30750e5d..a4143218df 100644 --- a/public/controllers/management/components/management/groups/utils/columns-main.js +++ b/public/controllers/management/components/management/groups/utils/columns-main.js @@ -19,7 +19,8 @@ export default class GroupsColums { { field: 'count', name: 'Agents', - align: 'left' + align: 'left', + sortable: true }, { field: 'configSum',