Commit daf2e1d
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 0928392 commit daf2e1d
2 files changed
Lines changed: 58 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
509 | 552 | | |
510 | 553 | | |
511 | 554 | | |
| |||
1036 | 1079 | | |
1037 | 1080 | | |
1038 | 1081 | | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
1039 | 1085 | | |
1040 | 1086 | | |
1041 | 1087 | | |
| |||
1088 | 1134 | | |
1089 | 1135 | | |
1090 | 1136 | | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1091 | 1140 | | |
1092 | 1141 | | |
1093 | 1142 | | |
| |||
1151 | 1200 | | |
1152 | 1201 | | |
1153 | 1202 | | |
1154 | | - | |
| 1203 | + | |
1155 | 1204 | | |
1156 | 1205 | | |
1157 | 1206 | | |
| |||
1163 | 1212 | | |
1164 | 1213 | | |
1165 | 1214 | | |
| 1215 | + | |
1166 | 1216 | | |
1167 | 1217 | | |
1168 | 1218 | | |
| |||
| 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