Commit b6d1da4
fix(search): index only meetings from Google Calendar and mark declined invites (#7718)
* 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>
* fix(search): keep untitled Calendar meetings that name a room or attendees
Only an event with no title, description, location, organizer and no
attendees is the bare time block a free/busy reader receives.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>1 parent 1cc4fb1 commit b6d1da4
3 files changed
Lines changed: 138 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: 90 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 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
192 | 281 | | |
193 | 282 | | |
194 | 283 | | |
| |||
| 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 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
132 | 167 | | |
133 | 168 | | |
134 | 169 | | |
| |||
182 | 217 | | |
183 | 218 | | |
184 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
185 | 224 | | |
186 | 225 | | |
187 | 226 | | |
| |||
271 | 310 | | |
272 | 311 | | |
273 | 312 | | |
274 | | - | |
| 313 | + | |
275 | 314 | | |
276 | 315 | | |
277 | 316 | | |
278 | 317 | | |
279 | 318 | | |
280 | 319 | | |
| 320 | + | |
281 | 321 | | |
282 | 322 | | |
283 | 323 | | |
| |||
287 | 327 | | |
288 | 328 | | |
289 | 329 | | |
290 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
291 | 333 | | |
292 | 334 | | |
293 | 335 | | |
| |||
296 | 338 | | |
297 | 339 | | |
298 | 340 | | |
| 341 | + | |
299 | 342 | | |
300 | 343 | | |
301 | 344 | | |
| |||
393 | 436 | | |
394 | 437 | | |
395 | 438 | | |
| 439 | + | |
396 | 440 | | |
397 | 441 | | |
398 | 442 | | |
| |||
594 | 638 | | |
595 | 639 | | |
596 | 640 | | |
597 | | - | |
598 | | - | |
599 | 641 | | |
600 | 642 | | |
601 | 643 | | |
| |||
0 commit comments