Ticket #1160 (reopened defect)
no way to wait for index to finish updating/(re)building
|Reported by:||sascha_silbe||Owned by:||tomeu|
|Priority:||Unspecified by Maintainer||Milestone:||0.90|
|Component:||sugar-datastore||Version:||Git as of bugdate|
The datastore (re)builds the index in the background (idle loop), but has no API to wait for this to finish. That creates a race condition when using the datastore from a test suite:
The test suite needs to run from a clean directory every time (so it's deterministic), thus causing the datastore to do an index build on startup. The datastore is started automatically by DBus and the tests fire their API requests right away, so any API call that uses the index will fail to work as intended (for regular use).