[Security Solution][Endpoint][Response Actions] response action history execute action filter behind FF (#150016)

> **Note**
> **This PR ensures `execute` action filter doesn't show in `8.7`**

## Summary

![Screenshot 2023-02-01 at 11 37
54](https://user-images.githubusercontent.com/1849116/216020161-fda46fee-80b2-49af-b923-49aa2576e501.png)

This PR hides the `execute` action in the response action history filter
dropdown.
Small leftover from elastic/kibana/pull/149589

The [unit tests still use the updated list of
commands](a373ac7336/x-pack/plugins/security_solution/public/management/components/endpoint_response_actions_list/response_actions_log.test.tsx (L688))
and do not need to change.
This commit is contained in:
Ashokaditya 2023-02-01 13:36:46 +01:00 committed by GitHub
parent 5389639943
commit b47cbf7b83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,6 +242,15 @@ export const useActionsLogFilter = ({
return false;
}
// TODO: remove this when `execute` is no longer behind FF
// planned for 8.8
if (
commandName === 'execute' &&
!ExperimentalFeaturesService.get().responseActionExecuteEnabled
) {
return false;
}
return true;
}).map((commandName) => ({
key: commandName,