Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Infrastructure UI] Track host cloud provider on table entry click (e…
…lastic#150685) ## 📓 Summary Closes elastic#150681 The tracked event when clicking an entry from the Hosts table was not applying correctly the default `unknow` string for the `cloud_provider` parameter. Now it defaults to it in case the value is not passed or is null. ## 🧪 Testing - Navigate to the Hosts view - Open the console dev tools - Click on a host name from the table and navigate to the host detail. - Verify the following error does not appear in the log ``` Uncaught Error: Failed to validate payload coming from "Event Type 'Host Entry Clicked'": [cloud_provider]: {"expected":"string","actual":"object","value":null} ``` Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co> (cherry picked from commit 26eddec)
- Loading branch information