Skip to content

Commit

Permalink
Merge branch 'main' into edit-reusable-policies
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic authored Aug 28, 2024
2 parents 020d204 + 450f30d commit 22c3f95
Show file tree
Hide file tree
Showing 92 changed files with 3,138 additions and 2,901 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { EcsFlat } from '@elastic/ecs';
import { EuiComboBoxOptionOption } from '@elastic/eui';

import { EcsFieldMetadata } from './types';
import { EcsFieldMetadata, PartitionedFieldMetadata, SortConfig } from './types';
import * as i18n from './translations';

export const EcsFlatTyped = EcsFlat as unknown as Record<string, EcsFieldMetadata>;
Expand Down Expand Up @@ -42,3 +42,18 @@ export const ilmPhaseOptionsStatic: EuiComboBoxOptionOption[] = [
export const EMPTY_STAT = '--';

export const INTERNAL_API_VERSION = '1';

export const defaultSort: SortConfig = {
sort: {
direction: 'desc',
field: 'docsCount',
},
};

export const EMPTY_METADATA: PartitionedFieldMetadata = {
all: [],
ecsCompliant: [],
custom: [],
incompatible: [],
sameFamily: [],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

export const MIN_PAGE_SIZE = 10;
Loading

0 comments on commit 22c3f95

Please sign in to comment.