File tree Expand file tree Collapse file tree 2 files changed +27
-23
lines changed
x-pack/plugins/security_solution/server/lib/detection_engine/routes/index Expand file tree Collapse file tree 2 files changed +27
-23
lines changed Original file line number Diff line number Diff line change @@ -180,26 +180,26 @@ const addFieldAliasesToIndices = async ({
180180 }
181181} ;
182182
183- const addIndexAliases = async ( {
184- esClient,
185- index,
186- aadIndexAliasName,
187- } : {
188- esClient : ElasticsearchClient ;
189- index : string ;
190- aadIndexAliasName : string ;
191- } ) => {
192- const { body : indices } = await esClient . indices . getAlias ( { name : index } ) ;
193- const aliasActions = {
194- actions : Object . keys ( indices ) . map ( ( concreteIndexName ) => {
195- return {
196- add : {
197- index : concreteIndexName ,
198- alias : aadIndexAliasName ,
199- is_write_index : false ,
200- } ,
201- } ;
202- } ) ,
203- } ;
204- await esClient . indices . updateAliases ( { body : aliasActions } ) ;
205- } ;
183+ // const addIndexAliases = async ({
184+ // esClient,
185+ // index,
186+ // aadIndexAliasName,
187+ // }: {
188+ // esClient: ElasticsearchClient;
189+ // index: string;
190+ // aadIndexAliasName: string;
191+ // }) => {
192+ // const { body: indices } = await esClient.indices.getAlias({ name: index });
193+ // const aliasActions = {
194+ // actions: Object.keys(indices).map((concreteIndexName) => {
195+ // return {
196+ // add: {
197+ // index: concreteIndexName,
198+ // alias: aadIndexAliasName,
199+ // is_write_index: false,
200+ // },
201+ // };
202+ // }),
203+ // };
204+ // await esClient.indices.updateAliases({ body: aliasActions });
205+ // };
Original file line number Diff line number Diff line change 27472747 version "0.0.0"
27482748 uid ""
27492749
2750+ "@kbn/alerts@link:bazel-bin/packages/kbn-alerts":
2751+ version "0.0.0"
2752+ uid ""
2753+
27502754"@kbn/analytics@link:bazel-bin/packages/kbn-analytics":
27512755 version "0.0.0"
27522756 uid ""
You can’t perform that action at this time.
0 commit comments