kibana/test
Julia Rechkunova f2f2a0a689
[Discover] Add EBT events for next resolved contextual profiles (#203124)
- Closes https://github.com/elastic/kibana/issues/200257

## Summary

This PR adds `discover_profile_resolved` EBT events when a new
contextual profile is resolved at any level (root, data source, or
document level).

Events will be triggered from Discover pages and dashboards.

Please note that duplicate events will not be sent in the current
implementation. Only when profile ID is changing.

<img width="1710" alt="Screenshot 2024-12-06 at 17 39 23"
src="https://github.com/user-attachments/assets/54eef630-8bcc-4185-917f-d251c003df65">

<img width="1699" alt="Screenshot 2024-12-06 at 17 38 36"
src="https://github.com/user-attachments/assets/541522eb-9cc5-47b6-a51a-81186232b7e5">


## Testing

Add logging to `trackContextualProfileResolvedEvent` or do the
following:

Enable "Usage collection" global setting.

Navigate to Discover and observe `kibana-browser` requests in Network
tab.


### Checklist

- [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: Davis McPhee <davismcphee@hotmail.com>
2024-12-13 06:31:42 -06:00
..
accessibility [Console] UX Improvements for phase 2 (#190698) 2024-09-17 16:35:20 +03:00
analytics Add filters option to ftr_helper api (#196886) 2024-10-23 19:18:05 +02:00
api_integration Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-esql (#202722) 2024-12-09 11:33:55 +01:00
common Categorise Kibana plugins - Wave 2 (#199302) 2024-11-08 12:45:20 +01:00
examples [OneDiscover] Contextual App Menu Extension Point (#195448) 2024-10-30 13:35:15 +01:00
functional [Discover] Add EBT events for next resolved contextual profiles (#203124) 2024-12-13 06:31:42 -06:00
harden Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
health_gateway Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
interactive_setup_api_integration FIPS FTR Overrides and test skips (#192053) 2024-09-10 13:17:40 -04:00
interactive_setup_functional chore(security, eslint): apply platform security-specific rules to all exclusively owned paths. (#195711) 2024-10-11 09:49:12 +02:00
interpreter_functional Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
node_roles_functional Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
package [CI / FIPS] Convert smoke tests to use FIPS agent (#186858) 2024-06-26 12:55:51 -07:00
plugin_functional [EuiProvider] Hide unwanted toast until a fix can be done !! (#203244) 2024-12-06 19:59:55 +01:00
scripts [ci] Remove jenkins config (#173745) 2023-12-21 12:09:43 -06:00
server_integration Enabling Full FTR, Integration, and Unit tests to the FIPS Test Pipeline (#192632) 2024-11-19 08:31:47 -05:00
ui_capabilities/newsfeed_err Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc Sustainable Kibana Architecture: Categorise straightforward packages (#199630) 2024-11-22 10:33:25 +01:00
tsconfig.json Remove bsearch endpoint (#197150) 2024-12-06 07:23:46 -07:00