tasks / tasks

Bringing Astrid Tasks back from the dead
http://tasks.org
GNU General Public License v3.0
3.5k stars 499 forks source link

Bug with snoozing tasks and then setting another due date #2914

Open RayBB opened 2 months ago

RayBB commented 2 months ago

I'm not sure if this is really really a problem. However, I was having an issue with a recurring task that absolutely wouldn't give me notifications. I can't figure out exactly what was causing the issue but along the way I figured it out might be related to this.

Recreate problem:

  1. Create a task with a due date of 5:00pm
  2. get a notification at 5pm
  3. Snooze the task for 1 hour
  4. Set the new due date of the task for 5:02pm
  5. At 5:02pm you won't get a notification

Some might argue that since you snoozed it for an hour then you shouldn't get this notification. However, with the new swipe to snooze feature, I can imagine it happening more often where someone snoozes it and then realizes that they actually want another reminder sooner than the snooze.

PS: Here is the contents of the task (collected from nextcloud/tasks) that were having problems with the repeat notifications. However, I use nextcloud/tasks and raycast and tasks.org to all create tasks so I'm guessing it was some combo of the 3 that made a weird state of the task.

VERSION:2.0
PRODID:+//IDN tasks.org//android-130907//EN
BEGIN:VTODO
DTSTAMP:20240603T163156Z
UID:1225475497788812864
CREATED:20240509T220436Z
LAST-MODIFIED:20240603T163054Z
SUMMARY:Give encouraging words
DESCRIPTION:Check on them.\nHow are you feeling?
X-APPLE-SORT-ORDER:737156936
DUE;TZID=Europe/Amsterdam:20240603T183101
END:VTODO
BEGIN:VTIMEZONE
LAST-MODIFIED:20221105T024526Z
TZID:Europe/Amsterdam
BEGIN:DAYLIGHT
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
DTSTART:19810329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
DTSTART:19961027T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
END:VCALENDAR
abaker commented 2 months ago

Yeah snooze overrides all alarms. If you edit a snoozed task you'll see the snooze time under the list of alarms, and you can click on 'x' to remove it

abaker commented 2 months ago

I have some ideas for changes to make this more clear, like

RayBB commented 2 months ago

@abaker I just snoozed this test task for 1 hour. and I don't see it on the edit screen. Is it supposed to be there? Screenshot of snoozed task: image

btw: I think it is more intuitive default behavior that if a task is edited with a new due date then the snooze time is cleared. But maybe that adds complications somewhere else.

abaker commented 2 months ago

It appears you customized the edit screen to remove the reminders section. If you restore that section you'll see the snoozed reminder