From c3e2a8f238a8f943ac6427fd5cae101d1d028d7d Mon Sep 17 00:00:00 2001 From: Georgii Gorbachev Date: Wed, 25 Aug 2021 14:10:46 +0200 Subject: [PATCH] Address comments --- .../rule_registry/server/alert_data_client/alerts_client.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x-pack/plugins/rule_registry/server/alert_data_client/alerts_client.ts b/x-pack/plugins/rule_registry/server/alert_data_client/alerts_client.ts index 47ff1bce8bcf0..d8e3a3bae7b02 100644 --- a/x-pack/plugins/rule_registry/server/alert_data_client/alerts_client.ts +++ b/x-pack/plugins/rule_registry/server/alert_data_client/alerts_client.ts @@ -676,10 +676,6 @@ export class AlertsClient { const toReturn = validAuthorizedFeatures.flatMap((feature) => { const indices = this.ruleDataService.findIndicesByFeature(feature, Dataset.alerts); if (feature === 'siem') { - // TODO: Remove space id from the index name and make sure the app works well. - // We should not include space id into the index name, because a - // namespace goes into the index name, and it's user-defined in general. - // The user can set a custom namespace per rule instance which could be != space id. return indices.map((i) => `${i.baseName}-${this.spaceId}`); } else { return indices.map((i) => i.baseName);