-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Roles] Use Query Roles API for Role Management grid screen (#194630)
Closes #186266 ## Release notes Enhanced Role management to manage larger number of roles by adding server side filtering, pagination and querying. ## Summary - Replaced the usage of Get Roles API with Query Role API - Added server side pagination and filtering with a maximum limit of 10000 keys (default for max results on index). Added new label to indicate that we show only 10k results. - Search box replicates client side implementation by only filtering on Role names. ### Run locally Start ES ~with the JVM option to enable this feature~: ``` yarn es snapshot --license=trial ``` Start Kibana normally ``` yarn start --no-base-path ``` Navigate to Stack Management > Roles and verify the same behavior as the screen recording below ### Screen recording https://github.com/user-attachments/assets/a447e7df-8aa1-4044-a6b2-0aafe56844a9 ## Technical notes - Client side EuiInMemory table has been replaced by EuiSearchBar, EuiBasicTable and Filters - One new Kibana endpoint added - `roles/_query` - Replicates existing get_role endpoint by being public and added to Open API spec - Extra logic to handle previously UI only filter to show/hide reserved roles - Parse the query to construct the correct DSL if the filter is present - Update Get All Roles by Space internal API to use the Query Role and filter by space id using query DSL. ### Checklist Delete any items that are not applicable to this PR. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
4da814d
commit 66dab0a
Showing
21 changed files
with
1,374 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.