Skip to content

Commit

Permalink
[Tests] remove _type from OpenSearch Archiver
Browse files Browse the repository at this point in the history
_type was removed in opensearch-project/OpenSearch#2239

OpenSearch Archiver loads data to OpenSearch from data.json into OpenSearch for
E2E tests and integration tests but will need to verify if this causes breakage in
migration from older versions of the application.

Issue resolved:
n/a

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
  • Loading branch information
kavilla committed Feb 25, 2022
1 parent fa47ac3 commit 309a63f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export function createGenerateDocRecordsStream({
// always rewrite the .kibana_* index to .kibana_1 so that
// when it is loaded it can skip migration, if possible
index: hit._index.startsWith('.kibana') ? '.kibana_1' : hit._index,
type: hit._type,
// TODO: verify this is no longer needed from legacy migrations
// Removed in: https://github.com/opensearch-project/OpenSearch/pull/2239
// type: hit._type,
id: hit._id,
source: hit._source,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export function createIndexDocRecordsStream(
{
[operation]: {
_index: doc.index,
_type: doc.type,
// TODO: verify this is no longer needed from legacy migrations
// Removed in: https://github.com/opensearch-project/OpenSearch/pull/2239
// _type: doc.type,
_id: doc.id,
},
},
Expand Down

0 comments on commit 309a63f

Please sign in to comment.