Commit ca96cf3
authored
BlueprintBuilder: remove SledEditor::baseboard_id() (#9405)
`SledEditor` was storing each sled's baseboard ID, but:
* it's only available via `PlanningInput`, and putting it directly into
the blueprint is difficult for mostly-irrelevant reasons
* there was only one caller of `SledEditor::baseboard_id()`:
`sled_ensure_mupdate_override()` (to match up sled ID <-> baseboard ID)
* `sled_ensure_mupdate_override()` itself only has one caller, the
planner, which already knows the baseboard ID of the sled it's ensuring
So this PR removes `SledEditor::baseboard_id()` entirely, and has the
planner pass the baseboard ID in. (On the update watercooler today we
also mentioned the possibility of a separate
`BlueprintBuilder::clear_pending_mgs_updates(baseboard_id)` method, but
that's tricky to implement because some nontrivial logic for "should we
clear pending MGS updates" is nested inside `SledEditor` itself.)1 parent 69dc064 commit ca96cf3
File tree
3 files changed
+12
-43
lines changed- nexus/reconfigurator/planning/src
- blueprint_builder
- blueprint_editor
3 files changed
+12
-43
lines changedLines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
634 | | - | |
635 | 634 | | |
636 | 635 | | |
637 | 636 | | |
| |||
652 | 651 | | |
653 | 652 | | |
654 | 653 | | |
655 | | - | |
656 | 654 | | |
657 | 655 | | |
658 | 656 | | |
| |||
1299 | 1297 | | |
1300 | 1298 | | |
1301 | 1299 | | |
| 1300 | + | |
1302 | 1301 | | |
1303 | 1302 | | |
1304 | 1303 | | |
| |||
1312 | 1311 | | |
1313 | 1312 | | |
1314 | 1313 | | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | 1314 | | |
1323 | 1315 | | |
1324 | 1316 | | |
| |||
Lines changed: 7 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
| |||
162 | 160 | | |
163 | 161 | | |
164 | 162 | | |
165 | | - | |
166 | 163 | | |
167 | 164 | | |
168 | 165 | | |
| |||
171 | 168 | | |
172 | 169 | | |
173 | 170 | | |
174 | | - | |
| 171 | + | |
175 | 172 | | |
176 | 173 | | |
177 | 174 | | |
| |||
191 | 188 | | |
192 | 189 | | |
193 | 190 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 191 | + | |
| 192 | + | |
202 | 193 | | |
203 | 194 | | |
204 | 195 | | |
| |||
215 | 206 | | |
216 | 207 | | |
217 | 208 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | 209 | | |
228 | 210 | | |
229 | 211 | | |
| |||
261 | 243 | | |
262 | 244 | | |
263 | 245 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
268 | 249 | | |
269 | 250 | | |
270 | 251 | | |
| |||
506 | 487 | | |
507 | 488 | | |
508 | 489 | | |
509 | | - | |
510 | 490 | | |
511 | 491 | | |
512 | 492 | | |
| |||
526 | 506 | | |
527 | 507 | | |
528 | 508 | | |
529 | | - | |
530 | 509 | | |
531 | 510 | | |
532 | 511 | | |
| |||
541 | 520 | | |
542 | 521 | | |
543 | 522 | | |
544 | | - | |
545 | 523 | | |
546 | 524 | | |
547 | 525 | | |
| |||
557 | 535 | | |
558 | 536 | | |
559 | 537 | | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
| 538 | + | |
564 | 539 | | |
565 | 540 | | |
566 | 541 | | |
| |||
569 | 544 | | |
570 | 545 | | |
571 | 546 | | |
572 | | - | |
573 | 547 | | |
574 | 548 | | |
575 | 549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1835 | 1835 | | |
1836 | 1836 | | |
1837 | 1837 | | |
1838 | | - | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
1839 | 1841 | | |
1840 | 1842 | | |
1841 | 1843 | | |
| |||
1844 | 1846 | | |
1845 | 1847 | | |
1846 | 1848 | | |
| 1849 | + | |
1847 | 1850 | | |
1848 | 1851 | | |
1849 | 1852 | | |
| |||
0 commit comments