[Feature] Add RELATED-TO;RELTYPE=CHILD property to parent Journal items for sub Notes #493
Replies: 2 comments 1 reply
-
Hey @rogercreagh , The long answer is:
So I stronly recommend you to not use both relationship types and stick with the PARENT! |
Beta Was this translation helpful? Give feedback.
-
OK. That's interesting that you've been down the same path and gone on further. I see the disadvantages and now thinking about it, it only requires a simple join to check for child items in a related table (1 to many) in the local database. The only issue is if I'm not doing a full sync from the server and just collect a new or updated item which now has child items - I won't know about them until I do a full sync. But even then I could just do a check to ask the server for any items that have a related-to property with the parent of the new/updated item. I started off thinking that doing a more or less full sync every time was a waste of resources and time but I've found on testing that getting 300 items from the server in one batch is only a fraction of a second slower than just getting one. (2.7 secs as against 2.5). What I don't fully understand is why jtxB is usually taking 45secs to sync through Davx5 even if I turn off all other calendars and collections in Davx5. If I sync all four calendars on the server it takes over a minute - and none of them are particularly large it seems to me. That is what set me thinking to avoid full sync when possible, but in practice it looks like directly polling the server without Davx5 is acceptably not slow. (using php curl put/get) |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Currently sub-notes for Journal items have a
RELATED-TO:
property set to the parent item (the Journal item) uidHowever there is no corresponding
RELATED-TO;RELTYPE=CHILD:
set on the journal item.This means that if you are fetching only VJOURNAL items with a DTSTART, or with a specific UID, you have no way of knowing that there are related Journal Items with no DTSTART (ie Notes)
I guess this is not a problem with jtxB as I think you are always dealing with the entire set of VJOURNAL items so will always find the child items to tie back to the parent.
Are you setting the RELATED-TO child parameter for Journal items with a child ToDo?
Describe the solution you'd like
If an item has a parent-child relationship with another item of the same type (eg Journal and Note - both VJOURNAL items) or a different type (eg Journal and Todo) then both parent and child should have the relevant RELATED-TO property set.
Describe alternatives you've considered
Not being able to find related child items without looking through the entire dataset.
Beta Was this translation helpful? Give feedback.
All reactions