From 1d740d51164360155304801771598434ea69c1ea Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 18 Jul 2022 12:38:11 +0200 Subject: [PATCH] [Backport 4.4-7.16] Sorting by agents in the table groups (#4338) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sorting by agents in the table groups (#4323) * Added sortable by agent count option to the groups table * Added changelog entry Co-authored-by: Álex (cherry picked from commit 9079f0768aff0b13946fd2097105d0b44f090d5a) Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com> --- 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',