logic: refresh info generator fixes and tests

* fixed case where "to-index" state of a file has changed and thus the file needs to be re-indexed
* clear and re-index files that depend on changed non-indexed files
* clear and re-index files referenced by unchanged but cleared (due to referencing a changed file) files
* fixed: updated files with changed timestamp that do not have content in the db will now count as changed
* refined refresh info generator tests
* updated checklists for manual project setup tests
This commit is contained in:
mlangkabel
2018-09-14 16:02:01 +02:00
parent 5b7938eda6
commit 5517cd4ccf
10 changed files with 604 additions and 173 deletions
@@ -811,7 +811,7 @@ std::shared_ptr<TextAccess> SqliteIndexStorage::getFileContentByPath(const std::
LOG_ERROR(std::to_string(e.errorCode()) + ": " + e.errorMessage());
}
return TextAccess::createFromFile(FilePath(filePath));
return TextAccess::createFromString("");
}
void SqliteIndexStorage::setFileIndexed(Id fileId, bool indexed)