Skip to content

Commit a291a87

Browse files
committed
created flag to only start holdout
1 parent c154f2c commit a291a87

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

Diff for: .github/workflows/demo_provisioning_scripts/DemoBuilder.py

+22-1
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ def create_flags(self):
156156
self.flag_exp_new_search_engine()
157157
print(" - D4 - Funnel Experiment: New Shorten Collection Page")
158158
self.flag_exp_shorten_collections_page()
159+
print(" - Flag to Create Q4 Increase Total Price Holdout")
160+
self.flag_holdout_q4_increase_incart_price()
159161
print(" - E1 - Migration: Database (Migration Tool)")
160162
self.flag_database_migration()
161163

@@ -474,7 +476,7 @@ def run_q4_increase_incart_price_holdout(self):
474476
primary_metric_key= "in-cart-total-price",
475477
randomization_unit="users",
476478
attributes=["tier"],
477-
prerequisiteflagkey="release-new-search-engine"
479+
prerequisiteflagkey="q-4-increase-average-total-in-cart-price-ld-holdout"
478480
)
479481
############################################################################################################
480482

@@ -1330,6 +1332,25 @@ def flag_exp_new_search_engine(self):
13301332
},
13311333
],
13321334
tags=["experiment", "ecommerce"],
1335+
on_variation=0,
1336+
off_variation=1,
1337+
)
1338+
1339+
def flag_holdout_q4_increase_incart_price(self):
1340+
res = self.ldproject.create_flag(
1341+
"q-4-increase-average-total-in-cart-price-ld-holdout",
1342+
"Flag to Create Q4 Increase Total Price Holdout",
1343+
"Description: Flag to create holdout for q4 increase incart price",
1344+
[
1345+
{
1346+
"value": True,
1347+
"name": "In holdout"
1348+
},
1349+
{
1350+
"value": False,
1351+
"name": "Not In holdout"
1352+
},
1353+
],
13331354
purpose="holdout",
13341355
on_variation=0,
13351356
off_variation=1,

0 commit comments

Comments
 (0)