Commit 5ea7077
committed
fix(dashboard-agent): read the alerts API's real response shape
create_alert reached for an `alert` envelope the route never sent, so it
always reported undefined, and the 403 branch keyed on `reason` where the
route sends `code` — the "email isn't set up on this instance" wording was
unreachable. The unit fixtures were written against both invented shapes, so
they hid it; they now mirror the route's bodies exactly.
The subscribe path also inlined its deduplication key instead of calling
`watchAlertDeduplicationKey`, the one record of whose channel it is.1 parent 6244f58 commit 5ea7077
3 files changed
Lines changed: 22 additions & 10 deletions
File tree
- apps/webapp/app/routes
- internal-packages/dashboard-agent/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
182 | | - | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2237 | 2237 | | |
2238 | 2238 | | |
2239 | 2239 | | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
2240 | 2249 | | |
2241 | 2250 | | |
2242 | 2251 | | |
2243 | 2252 | | |
2244 | | - | |
| 2253 | + | |
2245 | 2254 | | |
2246 | 2255 | | |
2247 | 2256 | | |
| |||
2251 | 2260 | | |
2252 | 2261 | | |
2253 | 2262 | | |
2254 | | - | |
| 2263 | + | |
2255 | 2264 | | |
2256 | 2265 | | |
2257 | 2266 | | |
2258 | | - | |
| 2267 | + | |
2259 | 2268 | | |
2260 | 2269 | | |
2261 | 2270 | | |
2262 | 2271 | | |
2263 | 2272 | | |
2264 | 2273 | | |
| 2274 | + | |
2265 | 2275 | | |
2266 | 2276 | | |
2267 | 2277 | | |
2268 | 2278 | | |
2269 | | - | |
| 2279 | + | |
2270 | 2280 | | |
2271 | 2281 | | |
2272 | 2282 | | |
2273 | 2283 | | |
2274 | 2284 | | |
2275 | 2285 | | |
2276 | 2286 | | |
2277 | | - | |
| 2287 | + | |
2278 | 2288 | | |
2279 | 2289 | | |
2280 | 2290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
0 commit comments