Commit 36cfa9c
committed
fix(FR-2901): sync deployment revision state in Relay store after activate / auto-activate
Mutations that change deployment.currentRevisionId/deployingRevisionId
left the Relay store stale, so the row tags in the revision history
table and the Configuration Section's current/deploying indicators
could drift apart from the server.
- activateDeploymentRevision: extend the mutation response to include
deployingRevisionId and the full DeploymentRevisionDetail_revision
fragment on both currentRevision and deployingRevision, so the
normalized deployment record updates atomically.
- addModelRevision (autoActivate=true): AddRevisionPayload does not
expose deployment yet, so fire a best-effort fetchQuery on the same
fields the detail page reads after the mutation completes. The
parent's onRequestClose(true) callback still triggers fetchKey as a
safety net. A code comment documents the temporary nature so the
fetch can be removed once AddRevisionPayload.deployment lands.1 parent 473f3fb commit 36cfa9c
3 files changed
Lines changed: 35 additions & 62 deletions
File tree
- data
- react/src/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9725 | 9725 | | |
9726 | 9726 | | |
9727 | 9727 | | |
| 9728 | + | |
| 9729 | + | |
| 9730 | + | |
| 9731 | + | |
| 9732 | + | |
| 9733 | + | |
| 9734 | + | |
| 9735 | + | |
9728 | 9736 | | |
9729 | 9737 | | |
9730 | 9738 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
462 | 469 | | |
463 | 470 | | |
464 | 471 | | |
| |||
467 | 474 | | |
468 | 475 | | |
469 | 476 | | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
| 477 | + | |
| 478 | + | |
528 | 479 | | |
529 | | - | |
530 | | - | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
531 | 489 | | |
532 | 490 | | |
533 | 491 | | |
| |||
1201 | 1159 | | |
1202 | 1160 | | |
1203 | 1161 | | |
1204 | | - | |
| 1162 | + | |
1205 | 1163 | | |
1206 | 1164 | | |
1207 | 1165 | | |
| |||
1213 | 1171 | | |
1214 | 1172 | | |
1215 | 1173 | | |
| 1174 | + | |
1216 | 1175 | | |
1217 | 1176 | | |
1218 | 1177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
263 | 268 | | |
| 269 | + | |
264 | 270 | | |
265 | 271 | | |
266 | 272 | | |
| |||
0 commit comments