Repository navigation
fix(backend): cancel the reminder when the developer API deletes a task - #15043
Conversation
|
Verified — this closes a real gap, and the fix is correct. What I checked at c53c370:
Two non-blocking notes:
Thanks for the clean, well-scoped fix and the clear reproduction in the issue. 🤖 Automated review on behalf of the maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Verified on current main (1ef3b91). Developer API delete_action_item removes the row and returns success without sync_action_item_reminder. Create and PATCH in the same file already sync, and the Tasks API delete sends the cancel. A task deleted through an integration keeps reminding. The one-line cancel after the delete reuses the existing import. The new test in test_dev_api_lock_bypass.py fails on main because the helper is never called. I am not merging. |
Fixes #15042
The developer API's task delete removed the task but never sent the reminder cancel, while its create and PATCH already keep reminders in sync and the Tasks API delete sends the cancel. A task deleted through an integration kept reminding the user.
The delete now calls
sync_action_item_reminder(..., completed=True)after the row is removed, the same helper the PATCH path already imports here. That sends the cancel. The notification dispatch boundary check still holds.One test added to
tests/unit/test_dev_api_lock_bypass.py. On main it fails becausesync_action_item_reminderis never called. With the fix it passes, along with the other tests in the file.Line-Count-Exception: backend/routers/developer.py | 2548 -> 2549 | cancel the reminder of a task deleted through the developer API
Failure-Class: none