Commit 102dbd6
committed
fix(docs): report a spread-only subBlocks array as unknown, not empty
extractUserSettableParamIds answered [] for a subBlocks array whose every
element spreads a fields array it cannot follow (NotionV2Block's
`[...NotionBlock.subBlocks, ...getTrigger(x).subBlocks]`). [] asserts the
block supplies nothing, so the hidden-param filter stripped every hidden
param from every tool the block owns - silently, with no parseError and so
no warning. That is the exact false-drop the null UNKNOWN state exists to
prevent.
Return null in that case and propagate it: extractBlockSuppliedParamIds no
longer folds it into [], and the block pass no longer collapses it with
`supplied.ids ?? []`. A config-level spread base still narrows the filter to
its readable fields plus the mapper's renames; with no base the filter is
switched off. An array with at least one inline id, a genuinely empty array,
and the existing throw/warn paths are unchanged - all 8 warned blocks warn
identically and every generated page is byte-identical.
Also pin the hidden-param filter on extractToolInfo's source-parsing path,
which had no coverage at all: deleting it outright left the suite green.1 parent 8d828cc commit 102dbd6
2 files changed
Lines changed: 127 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 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 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
114 | 164 | | |
115 | 165 | | |
116 | 166 | | |
| |||
275 | 325 | | |
276 | 326 | | |
277 | 327 | | |
278 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
279 | 342 | | |
280 | 343 | | |
281 | | - | |
282 | 344 | | |
283 | | - | |
284 | 345 | | |
285 | 346 | | |
286 | 347 | | |
287 | 348 | | |
288 | | - | |
| 349 | + | |
289 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
290 | 364 | | |
291 | 365 | | |
292 | 366 | | |
| |||
342 | 416 | | |
343 | 417 | | |
344 | 418 | | |
345 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
346 | 426 | | |
347 | 427 | | |
348 | 428 | | |
349 | 429 | | |
350 | 430 | | |
351 | | - | |
| 431 | + | |
352 | 432 | | |
353 | 433 | | |
354 | 434 | | |
355 | 435 | | |
356 | 436 | | |
357 | 437 | | |
358 | | - | |
| 438 | + | |
359 | 439 | | |
360 | 440 | | |
361 | 441 | | |
| |||
364 | 444 | | |
365 | 445 | | |
366 | 446 | | |
367 | | - | |
| 447 | + | |
368 | 448 | | |
369 | 449 | | |
370 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
706 | 711 | | |
707 | | - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
708 | 716 | | |
709 | 717 | | |
710 | 718 | | |
| |||
831 | 839 | | |
832 | 840 | | |
833 | 841 | | |
834 | | - | |
| 842 | + | |
835 | 843 | | |
836 | 844 | | |
837 | | - | |
| 845 | + | |
| 846 | + | |
838 | 847 | | |
839 | 848 | | |
840 | 849 | | |
| |||
843 | 852 | | |
844 | 853 | | |
845 | 854 | | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
846 | 864 | | |
847 | 865 | | |
848 | 866 | | |
| |||
1026 | 1044 | | |
1027 | 1045 | | |
1028 | 1046 | | |
1029 | | - | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1030 | 1050 | | |
1031 | 1051 | | |
1032 | 1052 | | |
| |||
1060 | 1080 | | |
1061 | 1081 | | |
1062 | 1082 | | |
| 1083 | + | |
1063 | 1084 | | |
1064 | 1085 | | |
1065 | 1086 | | |
| |||
1806 | 1827 | | |
1807 | 1828 | | |
1808 | 1829 | | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
1809 | 1843 | | |
1810 | | - | |
| 1844 | + | |
1811 | 1845 | | |
1812 | 1846 | | |
1813 | 1847 | | |
| |||
0 commit comments