Commit 98c7ba7
committed
fix(google-workspace-admin): fail the ChromeOS batch when a device does not change
batchChangeStatus returns HTTP 200 for the batch as a whole and reports each
device separately, so a device that stayed enabled is only visible through its
per-result error. The tool returned success unconditionally, which meant an
offboarding agent would carry on believing a Chromebook had been disabled or
deprovisioned when it had not.
The transform now partitions the results and fails the tool when any device
errored, naming each failing device and Google's reason. Both sides of the
split are also exposed as succeededDeviceIds and failedDeviceIds so a partial
failure can be retried for just the remainder instead of re-running the whole
batch — which matters for DEPROVISION, where a repeat on an already-deprovisioned
device is not harmless.1 parent 682f043 commit 98c7ba7
4 files changed
Lines changed: 61 additions & 3 deletions
File tree
- apps
- docs/content/docs/en/integrations
- sim
- blocks/blocks
- tools
- generated
- google_workspace_admin
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
| 793 | + | |
| 794 | + | |
793 | 795 | | |
794 | 796 | | |
795 | 797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1283 | 1283 | | |
1284 | 1284 | | |
1285 | 1285 | | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
1286 | 1294 | | |
1287 | 1295 | | |
1288 | 1296 | | |
| |||
Large diffs are not rendered by default.
Lines changed: 50 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
14 | 25 | | |
15 | | - | |
| 26 | + | |
16 | 27 | | |
17 | 28 | | |
18 | 29 | | |
| |||
101 | 112 | | |
102 | 113 | | |
103 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
104 | 139 | | |
105 | 140 | | |
106 | 141 | | |
107 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
108 | 145 | | |
109 | 146 | | |
110 | 147 | | |
| |||
132 | 169 | | |
133 | 170 | | |
134 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
135 | 183 | | |
136 | 184 | | |
0 commit comments