Open
Description
As Code-Inside code is updated we might end up in a situation (e.g. introduced by a #37 or #38), where the sync
command will discover more information about the code, than before. Since the actual scanned code base is the same, then:
- the
sync
command won't rescan the code to pull missing data; - the
bc
command won't notice new/changed information in the database.
TODO:
- in a PHP/SQL migration script:
- figure out in which table the data is now incomplete (e.g.
ClassMethods
) - if a
FileId
column is found in that table, then use its value - otherwise trace back that table to the table with a
FileId
column (e.g.ClassMethods > Classes
) and get theFileId
value - set
0
or-1
to theFiles.Size
column for files with the above-found IDs
- figure out in which table the data is now incomplete (e.g.
- next time the sync runs it will reparse these files, because of a filesize difference and add all missing info to the database
- add the public
KnowledgeBase::isIncomplete
method, which would count records in theFiles
table that hasSize=-1 or 0
and return true, when such records were found or false otherwise - the
bc
command would callisIncomplete
method on both databases and if throw an exception asking ti resync