Commit 5106918
committed
refactor(fetch-all): simplify pageId branch in fetchAllNotionData
- Skip applyFetchAllTransform in the single-page path: bulk-mode sorting,
deduplication, and status-based child resolution are not needed for a
single page retrieved directly by ID. Passing pageId+statusFilter no longer
silently drops the page when statuses don't match.
- Preserve includeRemoved guard: pages with status "Remove" are still
filtered out when includeRemoved=false.
- Remove dead candidateIds logic: only consumed by fetch-ready; return [] unconditionally.
- Remove redundant defensivelyFiltered step that re-applied the same Remove
filter already handled above.1 parent 20fbf4c commit 5106918
1 file changed
+9
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | 84 | | |
86 | 85 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
97 | 90 | | |
98 | 91 | | |
99 | 92 | | |
| |||
107 | 100 | | |
108 | 101 | | |
109 | 102 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 103 | + | |
117 | 104 | | |
118 | 105 | | |
119 | 106 | | |
120 | 107 | | |
121 | 108 | | |
122 | 109 | | |
123 | | - | |
124 | | - | |
| 110 | + | |
| 111 | + | |
125 | 112 | | |
126 | 113 | | |
127 | 114 | | |
| |||
0 commit comments