Fix context not disappearing from the treeview upon removal.
ClosedPublic

Authored by dfaure on Feb 19 2019, 12:04 AM.

Details

Summary

It turns out that Akonadi emits itemRemoved without any payload
in the item, while AkonadiFakeData was emitting full items.

So my wrong implementation in the LiveQueryIntegrator (which required
a payload) was working with fake data but not with real Akonadi.

Just comparing the item ID like we do for tasks and projects is much
simpler anyway.

Diff Detail

Repository
R4 Zanshin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dfaure requested review of this revision.Feb 19 2019, 12:04 AM
dfaure created this revision.
dfaure updated this revision to Diff 52289.Feb 22 2019, 12:15 PM

reconstructItemDependencies is actually needed, say the tests

ervin accepted this revision.Mar 2 2019, 10:28 AM
This revision is now accepted and ready to land.Mar 2 2019, 10:28 AM
dfaure updated this revision to Diff 52968.Mar 2 2019, 12:30 PM

push v2 (scripted)

ervin accepted this revision.Mar 2 2019, 3:28 PM
This revision was automatically updated to reflect the committed changes.