Commit 3393dca
committed
fix(spp_simulation): fix metric rendering, CEL profile context, and fallback logic
- Load CEL profile in _get_ideal_population_ids so the executor runs with
the correct base domain and model context (matches _execute_targeting)
- Fix _compute_metric_results_html to read "rate" and "ratio" keys for
coverage and ratio metrics instead of always reading "value"
- Fix distribution stats to use explicit None check so zero values render
as numbers instead of dashes
- Add "scenario_id.target_type" to @api.depends for _compute_summary_html
- Set amount_mode = "fixed" in the multiplier-to-fixed fallback branch so
the wizard item is created with an explicit mode
- Fix aggregate metric to use metric.aggregation as the result key so that
sum/avg/min/max aggregations read the correct value from the CEL result1 parent a923947 commit 3393dca
3 files changed
Lines changed: 29 additions & 6 deletions
File tree
- spp_simulation
- models
- services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
315 | | - | |
| 316 | + | |
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
| |||
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
395 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
396 | 403 | | |
397 | 404 | | |
398 | 405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
364 | 368 | | |
365 | 369 | | |
366 | 370 | | |
367 | | - | |
| 371 | + | |
368 | 372 | | |
369 | 373 | | |
370 | 374 | | |
| |||
587 | 591 | | |
588 | 592 | | |
589 | 593 | | |
| 594 | + | |
590 | 595 | | |
591 | 596 | | |
592 | 597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
61 | 72 | | |
62 | 73 | | |
63 | 74 | | |
| |||
0 commit comments