kibana/test
Achyut Jhunjhunwala 49db391e75
[8.x] [Discover] Added context aware logic for logs view in discover to show Load More… (#211176) (#214229)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Discover] Added context aware logic for logs view in discover to
show Load More…
(#211176)](https://github.com/elastic/kibana/pull/211176)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Achyut
Jhunjhunwala","email":"achyut.jhunjhunwala@elastic.co"},"sourceCommit":{"committedDate":"2025-03-12T12:39:27Z","message":"[Discover]
Added context aware logic for logs view in discover to show Load More…
(#211176)\n\n## Summary\n\nCloses -
https://github.com/elastic/kibana/issues/166679\n\n## What's included
?\n\n- The PR adds a feature in Logs View of Observability (to start
with) to\nhide the regular pagination toolbar from the footer and show
Load More\nonly when the user has scrolled to the bottom of the page.\n-
The table would always load the items in batches of default set 500 \n-
This PR also add 2 helper functions `useThrottleFn`
and\n`useDebounceFn`. Current React help library which KIbana uses
called\n-`react-use` does not have these and we cannot use Lodash
variant of\nthese. We need such hooks which are React safe. Hence added
these 2\n\n\n## What's pending ?\n\n- [x] Unit tests for the 2 new
helper React hooks\n- [x] Unit tests for data table footer component\n-
[x] Unit tests for Profile Resolution\n- [x] Functional Serverless
Tests\n- [x] Functional Stateful
Tests\n\n\n![Feb-14-2025\n15-25-18](https://github.com/user-attachments/assets/fa66de6e-b3bd-46b4-a0ed-e30c4209a695)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Davis
McPhee <davismcphee@hotmail.com>\nCo-authored-by: Felix Stürmer
<weltenwort@users.noreply.github.com>\nCo-authored-by: Davis McPhee
<davis.mcphee@elastic.co>","sha":"591c5b73c00f8a4e5316aed9c1d32c7316e6dd34","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Discover","release_note:feature","Team:obs-ux-logs","Project:OneDiscover","backport:version","v9.1.0","v8.19.0"],"title":"[Discover]
Added context aware logic for logs view in discover to show Load
More…","number":211176,"url":"https://github.com/elastic/kibana/pull/211176","mergeCommit":{"message":"[Discover]
Added context aware logic for logs view in discover to show Load More…
(#211176)\n\n## Summary\n\nCloses -
https://github.com/elastic/kibana/issues/166679\n\n## What's included
?\n\n- The PR adds a feature in Logs View of Observability (to start
with) to\nhide the regular pagination toolbar from the footer and show
Load More\nonly when the user has scrolled to the bottom of the page.\n-
The table would always load the items in batches of default set 500 \n-
This PR also add 2 helper functions `useThrottleFn`
and\n`useDebounceFn`. Current React help library which KIbana uses
called\n-`react-use` does not have these and we cannot use Lodash
variant of\nthese. We need such hooks which are React safe. Hence added
these 2\n\n\n## What's pending ?\n\n- [x] Unit tests for the 2 new
helper React hooks\n- [x] Unit tests for data table footer component\n-
[x] Unit tests for Profile Resolution\n- [x] Functional Serverless
Tests\n- [x] Functional Stateful
Tests\n\n\n![Feb-14-2025\n15-25-18](https://github.com/user-attachments/assets/fa66de6e-b3bd-46b4-a0ed-e30c4209a695)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Davis
McPhee <davismcphee@hotmail.com>\nCo-authored-by: Felix Stürmer
<weltenwort@users.noreply.github.com>\nCo-authored-by: Davis McPhee
<davis.mcphee@elastic.co>","sha":"591c5b73c00f8a4e5316aed9c1d32c7316e6dd34"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211176","number":211176,"mergeCommit":{"message":"[Discover]
Added context aware logic for logs view in discover to show Load More…
(#211176)\n\n## Summary\n\nCloses -
https://github.com/elastic/kibana/issues/166679\n\n## What's included
?\n\n- The PR adds a feature in Logs View of Observability (to start
with) to\nhide the regular pagination toolbar from the footer and show
Load More\nonly when the user has scrolled to the bottom of the page.\n-
The table would always load the items in batches of default set 500 \n-
This PR also add 2 helper functions `useThrottleFn`
and\n`useDebounceFn`. Current React help library which KIbana uses
called\n-`react-use` does not have these and we cannot use Lodash
variant of\nthese. We need such hooks which are React safe. Hence added
these 2\n\n\n## What's pending ?\n\n- [x] Unit tests for the 2 new
helper React hooks\n- [x] Unit tests for data table footer component\n-
[x] Unit tests for Profile Resolution\n- [x] Functional Serverless
Tests\n- [x] Functional Stateful
Tests\n\n\n![Feb-14-2025\n15-25-18](https://github.com/user-attachments/assets/fa66de6e-b3bd-46b4-a0ed-e30c4209a695)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Davis
McPhee <davismcphee@hotmail.com>\nCo-authored-by: Felix Stürmer
<weltenwort@users.noreply.github.com>\nCo-authored-by: Davis McPhee
<davis.mcphee@elastic.co>","sha":"591c5b73c00f8a4e5316aed9c1d32c7316e6dd34"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-03-13 14:58:38 +01:00
..
accessibility [8.x] [Console] UX Improvements for phase 2 (#190698) (#193169) 2024-09-18 01:22:58 -05:00
analytics [8.x] [kbn-scout] add test config category to reporting (#210167) (#210802) 2025-02-12 14:34:12 +01:00
api_integration [8.x] [ES|QL] Separate &#x60;FROM&#x60; autocomplete routine (#210465) (#210944) 2025-02-13 03:01:37 +01:00
common [8.x] FTR - optimize service initialization (#212421) (#213213) 2025-03-05 13:36:38 +01:00
examples [8.x] [kbn-scout] add test config category to reporting (#210167) (#210802) 2025-02-12 14:34:12 +01:00
functional [8.x] [Discover] Added context aware logic for logs view in discover to show Load More… (#211176) (#214229) 2025-03-13 14:58:38 +01:00
harden Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
health_gateway [8.x] [kbn-scout] add test config category to reporting (#210167) (#210802) 2025-02-12 14:34:12 +01:00
interactive_setup_api_integration [8.x] SKA: Relocate "platform" packages that remain on /packages (#208704) (#212474) 2025-02-28 10:12:01 +00:00
interactive_setup_functional [8.x] fix(tests, interactive setup): switch interactive setup tests config to non-deprecated &#x60;secure_password&#x60; setting (#205208) (#205214) 2024-12-27 12:37:53 -06:00
interpreter_functional [8.x] [kbn-scout] add test config category to reporting (#210167) (#210802) 2025-02-12 14:34:12 +01:00
node_roles_functional [8.x] [kbn-scout] add test config category to reporting (#210167) (#210802) 2025-02-12 14:34:12 +01:00
package [CI / FIPS] Convert smoke tests to use FIPS agent (#186858) 2024-06-26 12:55:51 -07:00
plugin_functional [8.x] [kbn-scout] add test config category to reporting (#210167) (#210802) 2025-02-12 14:34:12 +01:00
scripts [ci] Remove jenkins config (#173745) 2023-12-21 12:09:43 -06:00
server_integration [8.x] [kbn-scout] update category of server integration tests (#210783) (#210884) 2025-02-12 19:24:27 +01:00
ui_capabilities/newsfeed_err Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc [8.x] Sustainable Kibana Architecture: Categorise straightforward packages (#199630) (#201340) 2024-11-22 09:47:23 -06:00
tsconfig.json [8.x] SKA: Relocate "platform" packages that remain on /packages (#208704) (#212474) 2025-02-28 10:12:01 +00:00