Commit c2e15b7
authored
Fix: Support
## Changes
Apply the `trigger_pause_status` preset to SQL Alerts, similar to how
it's already applied to Jobs and Pipelines.
## Why
Fixes databricks#4316. SQL Alerts were ignoring the `trigger_pause_status` preset
configured at the target level, while Jobs correctly respected it. This
caused alerts to remain unpaused even when `trigger_pause_status:
PAUSED` was set.
## Tests
Added unit tests covering:
- Alert with schedule (no explicit pause_status) → gets paused by preset
- Alert with schedule and explicit `UNPAUSED` → remains unpaused
- Alert without schedule → pause_status remains empty
Also, manually tested that this works as expected.trigger_pause_status preset in alerts (databricks#4323)1 parent 2c96f11 commit c2e15b7
3 files changed
Lines changed: 41 additions & 1 deletion
File tree
- bundle/config/mutator/resourcemutator
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
248 | 258 | | |
249 | 259 | | |
250 | 260 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
194 | 211 | | |
195 | 212 | | |
196 | 213 | | |
| |||
258 | 275 | | |
259 | 276 | | |
260 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
261 | 290 | | |
262 | 291 | | |
263 | 292 | | |
| |||
0 commit comments