Prevent cycle creation at the repository level

Authored by ervin.

Description

Prevent cycle creation at the repository level

Summary:
We do some checking in the presentation layer, but in some views where
items might show up several times the model index based heuristic can't
work. So instead let's make TaskRepository::associate() do all the
checking and return an error when needed.

We should really think about porting the repository tests to the fake
akonadi too.

Reviewers: franckarrecot, dfaure, bensi

Reviewed By: bensi

Differential Revision: https://phabricator.kde.org/D717

Details

Committed
ervinDec 29 2015, 9:22 PM
Reviewer
bensi
Differential Revision
D717: Prevent cycle creation at the repository level
Parents
R4:e2b7e9910b22: Make sure the migrator saves its settings
Branches
Unknown
Tags
Unknown