elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.48k stars 8.04k forks source link

Update Role Management screens to use Query Roles API #186266

Open SiddharthMantri opened 2 weeks ago

SiddharthMantri commented 2 weeks ago

To support projects for the enterprise search teams, this issue aims to address the need to update the role management pages to gracefully handle an extremely large number of roles. Currently, the page assumes a reasonable amount of roles that can all be fetched in a single request.

Once the ES API to support querying roles is available, Kibana's UI will need to be updated with the following changes

Blocked by: https://github.com/elastic/elasticsearch/pull/108733

### Tasks
- [ ] Use new Query Roles API instead of GET roles API
- [ ] Ensure ES Javascript client provides the query roles API to be used for querying
- [ ] Use EUI table to support server side pagination of roles powered by the new API
- [ ] Update existing `Reserved roles` filter to use server side querying instead of in-memory filtering
- [ ] Use EUI search bar to support search. Currently, search by role name is the only method supported. This could be extended to support querying by different fields.
- [ ] Update "Get roles by Space" API to use the new Query Roles API
elasticmachine commented 2 weeks ago

Pinging @elastic/kibana-security (Team:Security)