Commit d708e77
committed
[iris] Include default-budget users in scheduler state response
Users without an explicit user_budgets row inherit UserBudgetDefaults,
but get_scheduler_state only emitted SchedulerUserBudget entries from
the DB, so the dashboard rendered Spent/Limit/Utilization as '-' for
anyone running under defaults. Synthesize default entries for users
with active spend so the scheduler view matches the budget logic.1 parent 95bb136 commit d708e77
2 files changed
Lines changed: 23 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2526 | 2526 | | |
2527 | 2527 | | |
2528 | 2528 | | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
2529 | 2532 | | |
2530 | | - | |
2531 | | - | |
2532 | | - | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
2533 | 2542 | | |
2534 | 2543 | | |
2535 | 2544 | | |
2536 | | - | |
| 2545 | + | |
2537 | 2546 | | |
2538 | 2547 | | |
2539 | 2548 | | |
2540 | 2549 | | |
2541 | 2550 | | |
2542 | 2551 | | |
2543 | | - | |
2544 | | - | |
| 2552 | + | |
| 2553 | + | |
2545 | 2554 | | |
2546 | | - | |
| 2555 | + | |
2547 | 2556 | | |
2548 | 2557 | | |
2549 | 2558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1264 | 1264 | | |
1265 | 1265 | | |
1266 | 1266 | | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
1267 | 1274 | | |
1268 | 1275 | | |
0 commit comments