From 26789d1eb65e4af6381431c78d8cb003b3a3386a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Labesse=20K=C3=A9vin?= Date: Tue, 10 Dec 2019 12:29:25 +0100 Subject: [PATCH] Stackdriver: Make service list searchable (#20989) * remove non-searchable option * fix unit test Signed-off-by: Kevin Labesse * fix unit test --- .../stackdriver/components/Metrics.tsx | 1 - .../__snapshots__/QueryEditor.test.tsx.snap | 67 ++++++++++++++++--- 2 files changed, 56 insertions(+), 12 deletions(-) diff --git a/public/app/plugins/datasource/stackdriver/components/Metrics.tsx b/public/app/plugins/datasource/stackdriver/components/Metrics.tsx index f1cb3c07f27..02ba250215b 100644 --- a/public/app/plugins/datasource/stackdriver/components/Metrics.tsx +++ b/public/app/plugins/datasource/stackdriver/components/Metrics.tsx @@ -162,7 +162,6 @@ export class Metrics extends React.Component { onChange={this.onServiceChange} value={service} options={services} - isSearchable={false} placeholder="Select Services" className="width-15" /> diff --git a/public/app/plugins/datasource/stackdriver/components/__snapshots__/QueryEditor.test.tsx.snap b/public/app/plugins/datasource/stackdriver/components/__snapshots__/QueryEditor.test.tsx.snap index 1b2b4147e44..cec241d1f1e 100644 --- a/public/app/plugins/datasource/stackdriver/components/__snapshots__/QueryEditor.test.tsx.snap +++ b/public/app/plugins/datasource/stackdriver/components/__snapshots__/QueryEditor.test.tsx.snap @@ -31,17 +31,62 @@ Array [ > Select Services - +
+
+ +
+ +
+
+