[SIEM] Changes authentications table from load more to paginated#39474
[SIEM] Changes authentications table from load more to paginated#39474stephmilovic merged 37 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/secops |
x-pack/legacy/plugins/siem/public/components/paginated_table/index.tsx
Outdated
Show resolved
Hide resolved
💔 Build Failed |
|
retest |
💚 Build Succeeded |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
|
Hey, @stephmilovic. From a design perspective, I have two suggested changes I wish to make:
|
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
💚 Build Succeeded |
💚 Build Succeeded |
XavierM
left a comment
There was a problem hiding this comment.
LGTM for the new pagination!
💚 Build Succeeded |
💔 Build Failed |

Summary
Convert Authentications Table pagination from "Load More" to numbered pagination.
How this works: Say we want to fetch results 90-100. We use the terms aggregation and query for 100 results. Then on the FE server, we splice the results and grab 90-100. Because of this implementation, the risk with numbered pagination is a that huge computation to get the last page. Therefore, I prevent the user from being able to go forward more than 5 pages initially, and after that only one page at a time. That math is done in
/public/components/paginated_table/helpers.ts, under fakePossibleCountOnce this has passed code review, I plan on implementing this paging on all other tables. Speak now on implementation details or forever hold your peace!!
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.This was checked for cross-browser compatibility, including a check against IE11Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n supportDocumentation was added for features that require explanation or tutorialsThis was checked for keyboard-only and screenreader accessibilityFor maintainers
This was checked for breaking API changes and was labeled appropriatelyThis includes a feature addition or change that requires a release note and was labeled appropriately