From 77fe338b4cd7ce98139bfd81a494ebe629da6231 Mon Sep 17 00:00:00 2001 From: Travis Long Date: Thu, 25 Apr 2024 07:40:23 -0500 Subject: [PATCH] Bug 1892726 - Update Server Knobs configuration snippets (#2197) * Bug 1892726 - Update Server Knobs configuration snippets With the recent additions to Glean v60.0.0, the configuration snippets needed some updates to match the current configuration schema. * Bug 1892726 - Part 2: Add configuration snippets for pings This adds Server Knobs configuration snippets to the Ping detail page. --- src/pages/MetricDetail.svelte | 2 +- src/pages/PingDetail.svelte | 36 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/src/pages/MetricDetail.svelte b/src/pages/MetricDetail.svelte index 81b7d5d9c..c18e6fe47 100644 --- a/src/pages/MetricDetail.svelte +++ b/src/pages/MetricDetail.svelte @@ -316,7 +316,7 @@ diff --git a/src/pages/PingDetail.svelte b/src/pages/PingDetail.svelte index b771689aa..113c3c664 100644 --- a/src/pages/PingDetail.svelte +++ b/src/pages/PingDetail.svelte @@ -10,6 +10,7 @@ import VariantSelector from "../components/VariantSelector.svelte"; import AuthenticatedLink from "../components/AuthenticatedLink.svelte"; import Commentary from "../components/Commentary.svelte"; + import CopyButton from "../components/CopyButton.svelte"; import HelpHoverable from "../components/HelpHoverable.svelte"; import ItemList from "../components/ItemList.svelte"; import Label from "../components/Label.svelte"; @@ -88,6 +89,41 @@ /> + + + + + + + + + + +
+ Sampling Configuration Snippet + + + Click the button to copy a snippet for use in a + + Mozilla Experimenter configuration. + + + +
+