Commit 5ec0997
committed
fix(webapp,run-engine): clear stale metric rows on query change, document override cap
Address review findings on the queue metrics PR:
- useMetricResourceQuery kept the previous query's rows when the signature
changed with no cache entry for the new key, so showLoading (isLoading &&
!rows) stayed false and a chart painted the old time range as if it were the
new one. A stale `failed` also survived, rendering an "invalid" chart state
over a healthy new query. Reset both when the signature actually changes;
interval and on-focus refreshes reuse the signature and are unaffected.
- Document in the OpenAPI spec that the queue concurrency override rejects
limits above the environment maximum with a 400 instead of capping them.
- Correct the enqueueSystem TTL comment: the pending-version promotion does
pass includeTtl, so it is not in the "must not add TTL" set.1 parent 26783dd commit 5ec0997
3 files changed
Lines changed: 20 additions & 8 deletions
File tree
- apps/webapp/app/hooks
- docs
- internal-packages/run-engine/src/engine/systems
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3001 | 3001 | | |
3002 | 3002 | | |
3003 | 3003 | | |
3004 | | - | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
| 3007 | + | |
3005 | 3008 | | |
3006 | 3009 | | |
3007 | 3010 | | |
| |||
3010 | 3013 | | |
3011 | 3014 | | |
3012 | 3015 | | |
3013 | | - | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
3014 | 3019 | | |
3015 | 3020 | | |
3016 | 3021 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments