Add configurable UPC and RA setup flows
This commit is contained in:
@@ -28,3 +28,25 @@ In `runtime.json`:
|
||||
- `IDAS`, `RTM`, and future top-level product sections: product-wise defaults, available codes, supported flows, bidding config, matching config, and future product-specific controls.
|
||||
|
||||
Regression config now lives entirely inside `runtime.json`.
|
||||
|
||||
## UPC session setup
|
||||
|
||||
Session creation uses the root `config.json`, independently of regression settings.
|
||||
Set `products.UPC.enabled` to `true` to include UPC. Under
|
||||
`products.UPC.session_variants`, enable all three variants or only the ones required:
|
||||
|
||||
| Variant | ME instance ID | UI name |
|
||||
| --- | --- | --- |
|
||||
| DAILY | 58 | UPC ANYDAY |
|
||||
| WEEKLY | 59 | UPC WEEKLY |
|
||||
| MONTHLY | 60 | UPC MONTHLY |
|
||||
|
||||
Each variant has an `enabled` flag. UPC remains disabled by default; all three
|
||||
variants are preselected for when it is enabled. Set `UPC.run_session` and
|
||||
`UPC.run_token` to `true` when both session and token creation are required. Each selected variant uses the
|
||||
existing session creation flow and inherits `setup.session.start_offset_minutes`
|
||||
and `setup.session.end_time`. Optional `UPC.session` settings override those
|
||||
defaults, and a variant's `session` settings can override them individually.
|
||||
|
||||
Run session-only setup with `python -m pytest tests/setup/sessions/test_session.py`.
|
||||
Selected UPC cases appear as `UPC_DAILY`, `UPC_WEEKLY`, and `UPC_MONTHLY`.
|
||||
|
||||
Reference in New Issue
Block a user