jtxBoard icon indicating copy to clipboard operation
jtxBoard copied to clipboard

[BUG] Phantom task not displaying in Tasks list view

Open fcrvincent opened this issue 4 months ago • 4 comments

Describe the bug One task is listed in a collection but is not in the Tasks list view

To Reproduce Not sure how the phantom task was created. See phantom task's caldav:

BEGIN:VCALENDAR VERSION:2.0 PRODID:-//PYVOBJECT//NONSGML Version 1//EN X-WR-CALNAME;VALUE=TEXT:Tasks BEGIN:VTODO CREATED:20250306T124220Z DTSTAMP:20250822T094220Z DTSTART:20250306T124500 EXDATE:20250306T124500,20250401T124500 LAST-MODIFIED:20250822T094209Z PRIORITY:0 RRULE:FREQ=MONTHLY;COUNT=1;BYMONTHDAY=1 SEQUENCE:0 SUMMARY:Test UID:cd336969-6b0d-441f-964b-0a9885afcd3c END:VTODO END:VCALENDAR

And the tasks's exported ICS:

BEGIN:VCALENDAR VERSION:2.0 PRODID:+//IDN bitfire.at//ical4android BEGIN:VTODO DTSTAMP:20250822T095511Z UID:11f2d5dd-3a6c-435c-8336-acca28917856 SEQUENCE:0 CREATED:20250306T124220Z LAST-MODIFIED:20250822T094803Z SUMMARY:Test DTSTART:20250306T124500 RRULE:FREQ=MONTHLY;COUNT=1;BYMONTHDAY=1 EXDATE:20250306T124500,20250401T124500 PRIORITY:0 END:VTODO END:VCALENDAR

Expected behavior All tasks in a collection should be available for deletion/editing in the Tasks list view (without filter that is)

Screenshots

Image Image

Device and version

  • Device: Xiaomi A2 Lite
  • Android version: Android 10
  • jtx Board version: 2.12.00 ose
  • Downloaded from: f-Droid/Neostore

fcrvincent avatar Aug 22 '25 09:08 fcrvincent

Hi @fcrvincent , thanks for pointing that out. Basically it's easy to reproduce: If you create a recurring entry and then delete all instances, the actual series element is not accessible anymore as you could only access it through the instances. Not sure how to deal with that case yet.

patrickunterwegs avatar Aug 26 '25 11:08 patrickunterwegs

Thanks @patrickunterwegs; yes that must be it.

May be a solution could be to delete the series entry at the start of the application when no (non deleted) instance can be generated from it; a bit like a memory garbage collector.

fcrvincent avatar Aug 26 '25 12:08 fcrvincent

That could also be an option. But I tend to prefer a cleanup job that runs daily or weekly to check if there are any such entries and just delete them :-)

patrickunterwegs avatar Aug 27 '25 17:08 patrickunterwegs

That would be great and spare you my comments about phantom tasks :)

fcrvincent avatar Aug 27 '25 17:08 fcrvincent