AggregatedFetchScope: fix fetchAllAttributes for tags.
ClosedPublic

Authored by dfaure on Feb 3 2019, 2:22 PM.

Details

Summary

This is a third case for aggregation: the default is *true*,
so any subscriber with default settings was NOT calling
AggregatedTagFetchScope::setFetchAllAttributes, so
d->fetchAllAttributes > 0 was false, unexpectedly.

Count the number of subscribers who call with false, and return
false only if all of them agree with that.

Test Plan

tagtest

Diff Detail

Repository
R165 Akonadi
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 3 2019, 2:22 PM
dfaure created this revision.
dfaure updated this revision to Diff 50792.Feb 3 2019, 5:43 PM

also add lower-level unittest

dfaure added a subscriber: ervin.Feb 3 2019, 6:56 PM
dvratil accepted this revision.Feb 5 2019, 12:02 PM

Thanks!

This revision is now accepted and ready to land.Feb 5 2019, 12:02 PM
This revision was automatically updated to reflect the committed changes.
Restricted Application added a project: KDE PIM. · View Herald TranscriptFeb 5 2019, 8:26 PM