Repository navigation
Commit aa0ccdc
feat(twister): add NewLink.updateOnly to update an existing thread only (#329)
Adds an opt-in `updateOnly` flag to `NewLink`. When set, `saveLink()` /
`saveLinks()` apply the link only as an update to a thread that already
exists for its `source`/`sources`, and never create a new one; when no
matching thread is found the link is skipped and `saveLink()` returns null.
Use it for signals that are only meaningful as an update to an item the
user already has. The Google calendar connector now sets it on the note it
emits for a cancelled occurrence of a recurring event: previously, when the
recurring series itself had not been imported yet (e.g. a newly split
series whose confirmed master had not synced, so only its cancelled future
occurrences arrived), that note materialized a titleless, scheduleless
"cancelled" thread for an event the user never saw. With updateOnly the
cancellation is only ever added to the event's existing thread.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent c517c4e commit aa0ccdc
4 files changed
Lines changed: 30 additions & 0 deletions
File tree
- .changeset
- connectors/google/src/calendar
- twister/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
1064 | 1068 | | |
1065 | 1069 | | |
1066 | 1070 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
536 | 544 | | |
537 | 545 | | |
538 | 546 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1366 | 1366 | | |
1367 | 1367 | | |
1368 | 1368 | | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
1369 | 1382 | | |
1370 | 1383 | | |
1371 | 1384 | | |
| |||
0 commit comments