Commit 65e1324
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 65e1324
2 files changed
Lines changed: 58 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
538 | 581 | | |
539 | 582 | | |
540 | 583 | | |
| |||
1086 | 1129 | | |
1087 | 1130 | | |
1088 | 1131 | | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
1089 | 1135 | | |
1090 | 1136 | | |
1091 | 1137 | | |
| |||
1138 | 1184 | | |
1139 | 1185 | | |
1140 | 1186 | | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
1141 | 1190 | | |
1142 | 1191 | | |
1143 | 1192 | | |
| |||
1201 | 1250 | | |
1202 | 1251 | | |
1203 | 1252 | | |
1204 | | - | |
| 1253 | + | |
1205 | 1254 | | |
1206 | 1255 | | |
1207 | 1256 | | |
| |||
1213 | 1262 | | |
1214 | 1263 | | |
1215 | 1264 | | |
| 1265 | + | |
1216 | 1266 | | |
1217 | 1267 | | |
1218 | 1268 | | |
| |||
| 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