From 51d6aa5fa710d540fd1d27266e1c47836ff3213f 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 b16ad29f01..7a9643c6aa 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 - Kibana 7.10.2, 7.16.x, 7.17.x - 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',