Simplify KNSBackend fetch logic

Authored by leinir on Jun 15 2017, 9:45 AM.

Description

Simplify KNSBackend fetch logic

This code removes the custom pagination in KNSBackend in favour
of using the internal pagination in KNSCore::Engine. It further
removes the explicit call to request data, as this is already
done by setting the search term, which caused duplicated
results to be returned. Further, remove results already
returned when KNS requests the view to be cleared, further
reducing duplicate view entries.

nb: The fact setting the search term starts a new search is
undocumented, which will need fixing (some thorough
documentation work is ongoing in kns as part of a gsoc project)

BUG: 380138
Differential Revision: https://phabricator.kde.org/D6191

Details

Committed
leinirJun 22 2017, 10:23 AM
Differential Revision
D6191: Simplify KNSBackend fetch logic
Parents
R134:8f1ff90762c5: Ignore updates for which we didn't get latest commit
Branches
Unknown
Tags
Unknown