Skip to content
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

[Archive Migrations] example_pipeline #140789

Merged
merged 1 commit into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions scripts/archive_migration_functions.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

# ??? Should we migrate
# x-pack/test/functional/es_archives/timelion/feature_controls
# !!! No, do not migrate, it's config(s) is / are not enabled.
# 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
# index-pattern
# 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 @@ -23,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.