Use realtime indexing as fallback when DB has no property data
ClosedPublic

Authored by bruns on Nov 11 2019, 3:23 AM.

Details

Summary

In case the DB provides no data, try to fetch the properties directly
from the file using the new OnDemandIndexer class.

If required, start the extractor in the background, fetch UserMetaData
and wait for the extractor, then unite the results.

BUG: 410114
Depends on D25248

Test Plan
  1. suspend baloo (balooctl suspend)
  2. copy a file with properties (e.g. PNG) to a included location cp ~/foo.png ~/foo_2.png
  3. balooshow ~/foo.png ~/foo_2.png should only display "Cached properties" for the original file
  4. dolphin displays properties for both files (in the side panel)

Diff Detail

Repository
R824 Baloo Widgets
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Nov 11 2019, 3:23 AM
Restricted Application added a project: Baloo. · View Herald TranscriptNov 11 2019, 3:23 AM
bruns requested review of this revision.Nov 11 2019, 3:23 AM
This revision is now accepted and ready to land.Nov 13 2019, 8:40 PM
ngraham accepted this revision.Nov 13 2019, 8:47 PM

Pretty sweet.

This revision was automatically updated to reflect the committed changes.