Skip to content

Commit

Permalink
[Archive Migration] xpack example pipelines
Browse files Browse the repository at this point in the history
Drop two fields from the orig archive.

Helps with: elastic#102552
  • Loading branch information
wayneseymour committed Sep 15, 2022
1 parent 368a40a commit be6b91c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions scripts/archive_migration_functions.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
#!/bin/bash

# ??? Should we migrate
# x-pack/test/functional/es_archives/spaces/multi_space
# ### Yes, it needs migration
# ### Saved Object type(s) that we care about:
# dashboard
# index-pattern
# visualization
# ### Test file(s) that use it:
# x-pack/test/functional/apps/discover/preserve_url.ts
# x-pack/test/functional/apps/visualize/preserve_url.ts
# x-pack/test/functional/apps/dashboard/group1/preserve_url.ts
# ### Config(s) that govern the test file(s):
# x-pack/test/functional/apps/dashboard/group1/config.ts
# x-pack/test/functional/apps/discover/config.ts
# x-pack/test/functional/apps/visualize/config.ts
# x-pack/test/functional/es_archives/logstash/example_pipelines
# !!! No, we've found 0 saved objects that are listed in the standard_list
# !!! It contains the following saved object(s)
# config
# space

standard_list="url,index-pattern,query,graph-workspace,tag,visualization,canvas-element,canvas-workpad,dashboard,search,lens,map,cases,uptime-dynamic-settings,osquery-saved-query,osquery-pack,infrastructure-ui-source,metrics-explorer-view,inventory-view,infrastructure-monitoring-log-view,apm-indices"

Expand All @@ -32,6 +23,29 @@ test_config="x-pack/test/functional/apps/dashboard/group1/config.ts"
# test_config="x-pack/test/functional/apps/discover/config.ts"
# test_config="x-pack/test/functional/apps/visualize/config.ts"

list_stragglers() {

echo "### OSS"
while read -r x; do
local a=$(grep -l '"index": ".kibana' "$x")
if [ -n "$a" ]; then
echo "${a%/mappings.json}"
fi
done <<<"$(find test/functional/fixtures/es_archiver -name mappings.json)"

echo
echo

echo "### X-PACK"
while read -r y; do
local b=$(grep -l '"index": ".kibana' "$y")
if [ -n "$b" ]; then
echo "${b%/mappings.json}"
fi
done <<<"$(find x-pack/test/functional/es_archives -name mappings.json)"

}

curl_so_count() {
local so=${1:-search-session}
local count
Expand Down
Binary file not shown.

0 comments on commit be6b91c

Please sign in to comment.