From b12dee208787f73b77f4659c55aeb7efe01159e4 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:26:41 -0700 Subject: [PATCH] [Backport 2.x] Moves ui-metadata field from state to template index (#637) Moves ui-metadata field from state to template index (#636) * moving ui-metadata from state to template index * incrementing schema versions --------- (cherry picked from commit 28cf7933d44595bd392b512235d29ad7f3a2744f) Signed-off-by: Joshua Palis Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- src/main/resources/mappings/global-context.json | 6 +++++- src/main/resources/mappings/workflow-state.json | 6 +----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/resources/mappings/global-context.json b/src/main/resources/mappings/global-context.json index 61b8a5487..544b4a9af 100644 --- a/src/main/resources/mappings/global-context.json +++ b/src/main/resources/mappings/global-context.json @@ -1,7 +1,7 @@ { "dynamic": false, "_meta": { - "schema_version": 2 + "schema_version": 3 }, "properties": { "workflow_id": { @@ -85,6 +85,10 @@ "last_provisioned_time": { "type": "date", "format": "strict_date_time||epoch_millis" + }, + "ui_metadata": { + "type": "object", + "enabled": false } } } diff --git a/src/main/resources/mappings/workflow-state.json b/src/main/resources/mappings/workflow-state.json index fedce568c..a42e3b749 100644 --- a/src/main/resources/mappings/workflow-state.json +++ b/src/main/resources/mappings/workflow-state.json @@ -1,7 +1,7 @@ { "dynamic": false, "_meta": { - "schema_version": 1 + "schema_version": 2 }, "properties": { "schema_version": { @@ -46,10 +46,6 @@ "type": "keyword" } } - }, - "ui_metadata": { - "type": "object", - "enabled": false } } }