Commit 0883def
committed
fix: fall back to bundled policy when remote document has no matching policy
When a remote compatibility document was fetched successfully but had no
policy matching the current driver/T3 Code version, the enrichment path
treated that as 'no advisory' and stripped any existing bundled advisory,
restoring the provider to ready status even if the bundled map marked it
as broken.
Now createProviderCompatibilityAdvisory tries the provided (remote)
document first, and if it yields no matching policy, falls through to
the bundled document. This matches the documented intent that the bundled
file is the fallback when the remote map has no applicable policy.1 parent e035af7 commit 0883def
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
| 207 | + | |
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
212 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
213 | 227 | | |
214 | 228 | | |
215 | 229 | | |
| |||
0 commit comments