Skip to content

Commit

Permalink
[8.7] [Security Solution] Fixes certain Related Integrations showing …
Browse files Browse the repository at this point in the history
…as `not installed` even when they are (#149646) (#151536)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Security Solution] Fixes certain Related Integrations showing as
`not installed` even when they are
(#149646)](#149646)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Garrett
Spong","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-02-16T23:53:26Z","message":"[Security
Solution] Fixes certain Related Integrations showing as `not installed`
even when they are (#149646)\n\n## Summary\r\n\r\nResolves
#149644 by adding a\r\nfallback
for package policies without a
policy_template.","sha":"ba5634eda6b18ae3d809ba50d21878526c97a8dc","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Endpoint
Response","Feature:Detection Rules","Team:
SecuritySolution","Team:Detection
Rules","backport:prev-minor","v8.6.0","v8.7.0","v8.8.0"],"number":149646,"url":"https://github.com/elastic/kibana/pull/149646","mergeCommit":{"message":"[Security
Solution] Fixes certain Related Integrations showing as `not installed`
even when they are (#149646)\n\n## Summary\r\n\r\nResolves
#149644 by adding a\r\nfallback
for package policies without a
policy_template.","sha":"ba5634eda6b18ae3d809ba50d21878526c97a8dc"}},"sourceBranch":"main","suggestedTargetBranches":["8.6","8.7"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/149646","number":149646,"mergeCommit":{"message":"[Security
Solution] Fixes certain Related Integrations showing as `not installed`
even when they are (#149646)\n\n## Summary\r\n\r\nResolves
#149644 by adding a\r\nfallback
for package policies without a
policy_template.","sha":"ba5634eda6b18ae3d809ba50d21878526c97a8dc"}}]}]
BACKPORT-->

Co-authored-by: Garrett Spong <[email protected]>
  • Loading branch information
kibanamachine and spong authored Feb 17, 2023
1 parent 165b09e commit ca32791
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const getIntegrationsInfoFromPolicy = (
packageInfo: InstalledPackageBasicInfo
): InstalledIntegrationBasicInfo[] => {
return policy.inputs.map((input) => {
const integrationName = normalizeString(input.policy_template); // e.g. 'cloudtrail'
const integrationName = normalizeString(input.policy_template ?? input.type); // e.g. 'cloudtrail'
const integrationTitle = `${packageInfo.package_title} ${capitalize(integrationName)}`; // e.g. 'AWS Cloudtrail'
return {
integration_name: integrationName,
Expand Down

0 comments on commit ca32791

Please sign in to comment.