Skip to content

Commit

Permalink
[es-archiver] Use alias for Kibana mappings (#101537)
Browse files Browse the repository at this point in the history
In 7.x, when saved objects point to an index and not an alias it will
assume it's pre-6.8 and perform a legacy migration. This causes issues
with the removal of oss builds. This update prevents that from happening
by using an alias.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
  • Loading branch information
Tyler Smalley authored Jun 8, 2021
1 parent 356b7d6 commit ec212c0
Show file tree
Hide file tree
Showing 62 changed files with 246 additions and 71 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
5 changes: 4 additions & 1 deletion test/functional/fixtures/es_archiver/discover/mappings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"dynamic": "strict",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
3 changes: 2 additions & 1 deletion test/functional/fixtures/es_archiver/mgmt/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"type": "index",
"value": {
"aliases": {
".kibana": {}
},
"index": ".kibana",
"index": ".kibana_1",
"mappings": {
"dynamic": "strict",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
5 changes: 4 additions & 1 deletion test/functional/fixtures/es_archiver/timelion/mappings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
5 changes: 4 additions & 1 deletion test/functional/fixtures/es_archiver/visualize/mappings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"settings": {
"index": {
"number_of_shards": "1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"dynamic": "strict",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "index",
"value": {
"index": ".kibana",
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
Expand Down
Loading

0 comments on commit ec212c0

Please sign in to comment.