Commit 73b4765
fix(linear): allowlist mutable IssueUpdateInput fields, drop synced-read fields (#36)
When a user edited a synced /linear/issues/<uuid>.json file in place — the
canonical workflow for the demo's bidirectional flow — buildIssueUpdate
forwarded every field as IssueUpdateInput. The path-mapper's read shape
includes denormalized fields that Linear's read API returns but
IssueUpdateInput does NOT accept (state_name, assignee_name,
priority_label, created_at, updated_at, _connection, _webhook,
descriptionData on some read paths). Linear rejected with:
Field "state_name" is not defined by type "IssueUpdateInput".
Did you mean "stateId"?
The denylist approach (drop only id/identifier/createdAt/...) was too
narrow — it missed every snake_case denormalized field, and would miss
any new field the path-mapper ever adds. Flip to an explicit allowlist
matching IssueUpdateInput's actual schema, mirroring how
buildIssueCreate already handles IssueCreateInput. Anything not in the
allowlist is silently dropped; only mutable fields reach the mutation.
Caught and reproduced on op_31 of workspace rw_517d60b6 during the demo
verification immediately after cloud#467 deployed.
Regression test pins the synced-read shape that hit op_31.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 56e5e1c commit 73b4765
2 files changed
Lines changed: 87 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 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 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
109 | 150 | | |
110 | 151 | | |
111 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | 211 | | |
228 | 212 | | |
229 | 213 | | |
230 | | - | |
| 214 | + | |
231 | 215 | | |
232 | 216 | | |
233 | 217 | | |
| |||
240 | 224 | | |
241 | 225 | | |
242 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
243 | 262 | | |
244 | 263 | | |
245 | 264 | | |
246 | 265 | | |
247 | 266 | | |
248 | 267 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
253 | 273 | | |
254 | 274 | | |
255 | 275 | | |
| |||
259 | 279 | | |
260 | 280 | | |
261 | 281 | | |
262 | | - | |
| 282 | + | |
263 | 283 | | |
264 | 284 | | |
265 | 285 | | |
266 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
267 | 290 | | |
268 | 291 | | |
269 | 292 | | |
| |||
0 commit comments