From 39147abb0827422244262f7f8a1c2f1a31d7954b Mon Sep 17 00:00:00 2001 From: Christopher Hawke Date: Mon, 30 Jun 2025 15:54:59 -0400 Subject: [PATCH 1/3] feat(spec): add winsorizedAmount to abtesting --- specs/bundled/abtesting.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specs/bundled/abtesting.yml b/specs/bundled/abtesting.yml index d326ca2e3a8..146ba8d6bc7 100644 --- a/specs/bundled/abtesting.yml +++ b/specs/bundled/abtesting.yml @@ -723,6 +723,11 @@ components: format: double description: Standard deviation for this currency. example: 12.3 + winsorizedAmount: + type: number + format: double + description: The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile. + example: 115 currencies: type: object description: A/B test currencies. @@ -732,11 +737,13 @@ components: revenue: 120 mean: 53.7 standardDeviation: 12.3 + winsorizedAmount: 23 EUR: currency: EUR revenue: 100 mean: 43.7 standardDeviation: 10.3 + winsorizedAmount: 10 additionalProperties: $ref: '#/components/schemas/currency' x-additionalPropertiesName: currency code From 2480f6e09af4ee7be4d1bed2a54c676ac3097556 Mon Sep 17 00:00:00 2001 From: Christopher Hawke Date: Mon, 30 Jun 2025 15:57:28 -0400 Subject: [PATCH 2/3] feat(spec): abtesting winsorized value --- specs/abtesting/common/parameters.yml | 7 +++++++ specs/bundled/abtesting.yml | 9 +-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/specs/abtesting/common/parameters.yml b/specs/abtesting/common/parameters.yml index f58bd7e47b8..41ae614dca3 100644 --- a/specs/abtesting/common/parameters.yml +++ b/specs/abtesting/common/parameters.yml @@ -69,11 +69,13 @@ currencies: revenue: 120.0 mean: 53.7 standardDeviation: 12.3 + winsorizedAmount: 23.0 EUR: currency: EUR revenue: 100.0 mean: 43.7 standardDeviation: 10.3 + winsorizedAmount: 10.0 additionalProperties: $ref: '#/currency' x-additionalPropertiesName: currency code @@ -100,6 +102,11 @@ currency: format: double description: Standard deviation for this currency. example: 12.3 + winsorizedAmount: + type: number + format: double + description: The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile. + example: 23.0 filterEffects: type: object diff --git a/specs/bundled/abtesting.yml b/specs/bundled/abtesting.yml index 146ba8d6bc7..4d3bfe13441 100644 --- a/specs/bundled/abtesting.yml +++ b/specs/bundled/abtesting.yml @@ -630,7 +630,7 @@ components: PathInPath: name: path in: path - description: Path of the endpoint, for example `1/newFeature`. + description: Path of the endpoint, anything after "/1" must be specified. required: true schema: type: string @@ -723,11 +723,6 @@ components: format: double description: Standard deviation for this currency. example: 12.3 - winsorizedAmount: - type: number - format: double - description: The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile. - example: 115 currencies: type: object description: A/B test currencies. @@ -737,13 +732,11 @@ components: revenue: 120 mean: 53.7 standardDeviation: 12.3 - winsorizedAmount: 23 EUR: currency: EUR revenue: 100 mean: 43.7 standardDeviation: 10.3 - winsorizedAmount: 10 additionalProperties: $ref: '#/components/schemas/currency' x-additionalPropertiesName: currency code From 42c8ec00102349b9b2d2f9345f67107e21e03783 Mon Sep 17 00:00:00 2001 From: Christopher Hawke Date: Mon, 30 Jun 2025 16:02:17 -0400 Subject: [PATCH 3/3] fix: inadvertent change --- specs/bundled/abtesting.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/bundled/abtesting.yml b/specs/bundled/abtesting.yml index 4d3bfe13441..d326ca2e3a8 100644 --- a/specs/bundled/abtesting.yml +++ b/specs/bundled/abtesting.yml @@ -630,7 +630,7 @@ components: PathInPath: name: path in: path - description: Path of the endpoint, anything after "/1" must be specified. + description: Path of the endpoint, for example `1/newFeature`. required: true schema: type: string