-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Disable dynamic/Implement static mappings (#10638) * Disable dynamic mappings * Disable automatic type creation * Centralize .kibana mappings * Use dynamic strict instead of false * Register mappings per plugin * Check for registered mapping conflicts * Expose mappings on server scope instead of module * Stub elasticsearch mappings class * Add tests for KibanaMappings class * [mappings tests] to.an -> to.be.an * Return on mapping conflict and include plugin id if provided * [uiExports] Add mappings uiExport type * Use uiExports config in mappings tests * Clean up ui_mappings test * Revert plugin require ordering * Pull uiExports mappings from kibana object isntead of kbnServer * [test] Update index mapping to look for keyword
- Loading branch information
Showing
16 changed files
with
338 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/core_plugins/elasticsearch/lib/__tests__/fixtures/mappings.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
'_default_': { | ||
'dynamic': 'strict' | ||
}, | ||
config: { | ||
dynamic: true, | ||
properties: { | ||
buildNum: { | ||
type: 'keyword' | ||
} | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
src/core_plugins/elasticsearch/lib/kibana_index_mappings.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.