-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Archive Migration] index pattern without timefield #125870
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
LeeDr
merged 11 commits into
elastic:main
from
LeeDr:kbnArchiverindex_pattern_without_timefield
Feb 21, 2022
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
35511c1
kbn_archive date_nanos
9986bb6
kbn_archive date_nanos in context and discover
afb53ab
kbn_archiver more date_nanos tests
a82bc27
split out kbnArchiver for index_pattern_without_timefield
c6cb706
remove date_nanos files from a different PR
0d4da1f
update another test for usage of the same archives
0203ae8
set default index pattern for test
b77cc66
merge
30bcf60
remove duplicate const kibanaServer
35c16fc
Merge branch 'main' into kbnArchiverindex_pattern_without_timefield
kibanamachine c13acea
Merge branch 'main' into kbnArchiverindex_pattern_without_timefield
kibanamachine 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
15 changes: 0 additions & 15 deletions
15
test/functional/fixtures/es_archiver/index_pattern_without_timefield/data.json
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
30 changes: 30 additions & 0 deletions
30
test/functional/fixtures/kbn_archiver/index_pattern_without_timefield.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { | ||
| "attributes": { | ||
| "fields": "[]", | ||
| "timeFieldName": "@timestamp", | ||
| "title": "with-timefield" | ||
| }, | ||
| "coreMigrationVersion": "7.17.1", | ||
| "id": "with-timefield", | ||
| "migrationVersion": { | ||
| "index-pattern": "7.11.0" | ||
| }, | ||
| "references": [], | ||
| "type": "index-pattern", | ||
| "version": "WzEzLDJd" | ||
| } | ||
|
|
||
| { | ||
| "attributes": { | ||
| "fields": "[]", | ||
| "title": "without-timefield" | ||
| }, | ||
| "coreMigrationVersion": "7.17.1", | ||
| "id": "without-timefield", | ||
| "migrationVersion": { | ||
| "index-pattern": "7.11.0" | ||
| }, | ||
| "references": [], | ||
| "type": "index-pattern", | ||
| "version": "WzEyLDJd" | ||
| } |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you can see in
test/functional/fixtures/kbn_archiver/index_pattern_without_timefield.jsonthere are actually two index patterns in that archivewith-timefieldandwithout-timefield. The previous test runs failed because thewith-timefieldindex pattern ended up being the default one in Discover. I added code here to set the default to the one the test needs (it's faster than having the test select it in the UI).