mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[ip location processor] Add mmdb suffix to db file names (#196788)
## Summary Simply adds the mmdb suffix to the db names. Closes https://github.com/elastic/kibana/issues/196745
This commit is contained in:
parent
bf7c5aaf29
commit
f789ba61d4
1 changed files with 4 additions and 2 deletions
|
@ -27,12 +27,14 @@ import { PropertiesField } from './common_fields/properties_field';
|
|||
import type { GeoipDatabase } from '../../../../../../../common/types';
|
||||
import { getTypeLabel } from '../../../../../sections/manage_processors/constants';
|
||||
|
||||
const extension = '.mmdb';
|
||||
|
||||
const fieldsConfig: FieldsConfig = {
|
||||
/* Optional field config */
|
||||
database_file: {
|
||||
type: FIELD_TYPES.COMBO_BOX,
|
||||
deserializer: to.arrayOfStrings,
|
||||
serializer: (v: string[]) => (v.length ? v[0] : undefined),
|
||||
deserializer: (v: unknown) => to.arrayOfStrings(v).map((str) => str?.split(extension)[0]),
|
||||
serializer: (v: string[]) => (v.length ? `${v[0]}${extension}` : undefined),
|
||||
label: i18n.translate('xpack.ingestPipelines.pipelineEditor.ipLocationForm.databaseFileLabel', {
|
||||
defaultMessage: 'Database file (optional)',
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue