From 3d11d8fc300ff02c13571a971d4de509706e7b4a Mon Sep 17 00:00:00 2001 From: Bowei Xu Date: Tue, 23 Jul 2019 11:22:52 -0700 Subject: [PATCH] Add search attributes for Up teams (#2257) --- config/dynamicconfig/development.yaml | 6 ++++++ docker/dynamicconfig/development_es.yaml | 8 +++++++- schema/elasticsearch/visibility/index_template.json | 8 +++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/config/dynamicconfig/development.yaml b/config/dynamicconfig/development.yaml index 8e5359e7885..1e589d94499 100644 --- a/config/dynamicconfig/development.yaml +++ b/config/dynamicconfig/development.yaml @@ -18,6 +18,12 @@ frontend.validSearchAttributes: StartTime: 2 WorkflowID: 1 WorkflowType: 1 + project: 1 + service: 1 + environment: 1 + addon: 1 + addon-type: 1 + user: 1 constraints: {} system.minRetentionDays: - value: 0 diff --git a/docker/dynamicconfig/development_es.yaml b/docker/dynamicconfig/development_es.yaml index 65093def9f3..4dcdd109573 100644 --- a/docker/dynamicconfig/development_es.yaml +++ b/docker/dynamicconfig/development_es.yaml @@ -20,4 +20,10 @@ frontend.validSearchAttributes: CustomIntField: 2 CustomBoolField: 3 CustomDoubleField: 4 - CustomDatetimeField: 5 \ No newline at end of file + CustomDatetimeField: 5 + project: 1 + service: 1 + environment: 1 + addon: 1 + addon-type: 1 + user: 1 \ No newline at end of file diff --git a/schema/elasticsearch/visibility/index_template.json b/schema/elasticsearch/visibility/index_template.json index a03b7e8e31c..c534843003a 100644 --- a/schema/elasticsearch/visibility/index_template.json +++ b/schema/elasticsearch/visibility/index_template.json @@ -50,7 +50,13 @@ "CustomIntField": { "type": "long"}, "CustomBoolField": { "type": "boolean"}, "CustomDoubleField": { "type": "double"}, - "CustomDatetimeField": { "type": "date"} + "CustomDatetimeField": { "type": "date"}, + "project": { "type": "keyword"}, + "service": { "type": "keyword"}, + "environment": { "type": "keyword"}, + "addon": { "type": "keyword"}, + "addon-type": { "type": "keyword"}, + "user": { "type": "keyword"} } } }