-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Use modelVersions instead of hashes to track changes in SO types #176803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
gsoldevila
merged 29 commits into
elastic:main
from
gsoldevila:kbn-169734-fips-compliant-migrations
Mar 25, 2024
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
495ba1d
Use modelVersions instead of hashes to track changes in SO types
gsoldevila f491fda
Remove unnecessary mocks
gsoldevila 12078dc
Parametrize `hashToVersionMap` in KibanaMigrator
gsoldevila fa538b8
Add integration tests for the md5 to modelVersion transition
gsoldevila 9d993a7
Deep compare root fields' mappings to detect changes
gsoldevila 341543e
Use `mappingVersions` instead of `migrationMappingPropertyHashes`
gsoldevila 6c7243c
Ensure HASH_TO_VERSION_MAP is up to date
gsoldevila 1e5e7c8
Fix outdated tests
gsoldevila 20a79fe
Only populate _meta if existing
gsoldevila 4bc9118
Merge the new _meta properties too
gsoldevila 0c1dc73
Fix outdated tests
gsoldevila a71466f
UPDATE_INDEX_MAPPINGS can never detect a change in root fields mappings
gsoldevila 114176f
Make `hashToVersionMap` mandatory, move its declaration
gsoldevila 46dbe85
Remove `docVersions` from v2 meta
gsoldevila 136bae5
Consider FIPS-compliant v2 state as `v2-partially-migrated`
gsoldevila 04b5638
Update ZDT tests to get rid of v2 hashes
gsoldevila b056d7d
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine 1bcfb66
Add a type without model versions to the tests
gsoldevila 4909084
Update zdt tests, as v2 state is `v2-partially-migrated` by default
gsoldevila f6cf1dc
Fix `udpated` typo
gsoldevila c099cc7
Update hashToVersionMap with latest changes
gsoldevila 31cdd22
Fix remaining `udpated` typo
gsoldevila 52f3e40
Update outdated `hashToVersionMap`
gsoldevila 53baf7c
Rely on modelVersions that bring `mappings_addition`
gsoldevila 4e91b51
Consider a type has changed only if the new model versions include `m…
gsoldevila 05fa106
Update with latest mappings changes
gsoldevila 257d4a1
Update outdated tests
gsoldevila f6b6eb0
Store latest model versions in _meta
gsoldevila 26283c5
Fix outdated test
gsoldevila File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.