Skip to content

Commit

Permalink
updates basename for backing indices
Browse files Browse the repository at this point in the history
  • Loading branch information
dplumlee committed Nov 22, 2021
1 parent 7b62d68 commit 7adb090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion x-pack/plugins/rule_registry/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ export const config: PluginConfigDescriptor = {
export type RuleRegistryPluginConfig = TypeOf<typeof config.schema>;

export const INDEX_PREFIX = '.alerts' as const;
export const INDEX_PREFIX_FOR_BACKING_INDICES = '.internal.alerts' as const;
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { INDEX_PREFIX, INDEX_PREFIX_FOR_BACKING_INDICES } from '../config';
import { INDEX_PREFIX } from '../config';
import { IndexOptions } from './index_options';
import { joinWithDash, joinWith } from './utils';

Expand Down Expand Up @@ -34,10 +34,7 @@ export class IndexInfo {
)
: joinWithDash(INDEX_PREFIX, `${registrationContext}.${dataset}`);
this.basePattern = joinWithDash(this.baseName, '*');
this.baseNameForBackingIndices = joinWithDash(
INDEX_PREFIX_FOR_BACKING_INDICES,
`${registrationContext}.${dataset}`
);
this.baseNameForBackingIndices = joinWith('')(`.internal`, this.baseName);
}

/**
Expand Down

0 comments on commit 7adb090

Please sign in to comment.