Re: "Open Invitations" and akonadi_search_resource

Carl Schwan <[email protected]>
Newsgroups gmane.comp.kde.devel.pim
Message-ID <WmfoC2VihhjmKNPX1zB6cNDAO6IjxiUeGtcDpt5DCcj-NsbRtrD9jj2eVK33sm5KmwDnkDwwG_BOKsR96icEO93jAtzilMnugB4xWGW7JOE=@carlschwan.eu>
Le dimanche 17 juillet 2022 à 5:20 AM, Glen Ditchfield <[email protected]> a écrit :

> In KOrganizer, when I select the "Update Folder" item from the right-
> click menu of the "Open Invitations" search folder, Akonadi (not
> KOrganizer) prints
>
> org.kde.pim.akonadicontrol: Agent instance with identifier
> "akonadi_search_resource" does not exist
>
> Whatever happened to akonadi_search_resource? I haven't found any
> information about it. Was it something that wasn't ported forward
> during some major upgrade? Was there ever a version of KOrganizer where
> "Open Invitations" worked? Is there any potentially useful old code or
> documentation available somewhere?

Hi,

For Kalendar, we looked into it a while ago. The issue with the invitations
is that:
- ETMCalendar supports them
- but a proxy model in akonadi-calendar filter them out
  https://invent.kde.org/pim/akonadi-calendar/-/blob/master/src/calfilterpartstatusproxymodel_p.cpp#L102

I suppose the akonadi_search_resource was supposed to display these invitations
so the filter model made sure we didn't display the invitation twice. But since
this resource disappeared/broke, we now don't have any invitations displayed
anymore.

I wonder if we shouldn't just change the condition in calfilterpartstatusproxymodel
to by default only hide invitations where we are attendees and that we explicitly
declined and maybe add an API to display all invitations (in case the user wants to also
see the declined invitations).

In Kalendar we are alreadying hiding "Open Invitations" as it does nothing currently
and I also wonder if it would then make sense to completely remove it in akonadi-calendar
and just display the invitation normally like any other event.

What do you think?
Cheers,
Carl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.