Commit 2c1e747
fix(search): index only meetings from Google Calendar and mark declined invites
The listing never filtered by event type, so working-location, out-of-office,
focus-time and birthday entries were indexed as documents. With recurring
events expanded to instances, a daily working-location entry alone produced
dozens of near-identical documents per member. The listing now asks Google
for default events only and the connector drops any other type it still
receives, including on a direct fetch.
A shared calendar the member can read only as free/busy returns time blocks
with no title or description, which were indexed as "Untitled Event". An
event with neither is no longer a document.
Invitations the connected account declined stay indexed, since the agenda
and links are still something the person was sent, but the content now
carries a "Response: declined" line and the metadata records the response.
The metadata-only hash gains a declined suffix so already-indexed
invitations pick the line up on the next sync without waiting for an edit.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent 1cc4fb1 commit 2c1e747
3 files changed
Lines changed: 105 additions & 7 deletions
File tree
- apps
- docs/content/docs/search
- sim/connectors/google-calendar
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
Lines changed: 65 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 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 | + | |
192 | 256 | | |
193 | 257 | | |
194 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 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 | + | |
132 | 159 | | |
133 | 160 | | |
134 | 161 | | |
| |||
182 | 209 | | |
183 | 210 | | |
184 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
185 | 216 | | |
186 | 217 | | |
187 | 218 | | |
| |||
271 | 302 | | |
272 | 303 | | |
273 | 304 | | |
274 | | - | |
| 305 | + | |
275 | 306 | | |
276 | 307 | | |
277 | 308 | | |
278 | 309 | | |
279 | 310 | | |
280 | 311 | | |
| 312 | + | |
281 | 313 | | |
282 | 314 | | |
283 | 315 | | |
| |||
287 | 319 | | |
288 | 320 | | |
289 | 321 | | |
290 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
291 | 325 | | |
292 | 326 | | |
293 | 327 | | |
| |||
296 | 330 | | |
297 | 331 | | |
298 | 332 | | |
| 333 | + | |
299 | 334 | | |
300 | 335 | | |
301 | 336 | | |
| |||
393 | 428 | | |
394 | 429 | | |
395 | 430 | | |
| 431 | + | |
396 | 432 | | |
397 | 433 | | |
398 | 434 | | |
| |||
594 | 630 | | |
595 | 631 | | |
596 | 632 | | |
597 | | - | |
598 | | - | |
599 | 633 | | |
600 | 634 | | |
601 | 635 | | |
| |||
0 commit comments