-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
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
synccommand won't rescan the code to pull missing data; - the
bccommand 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
FileIdcolumn is found in that table, then use its value - otherwise trace back that table to the table with a
FileIdcolumn (e.g.ClassMethods > Classes) and get theFileIdvalue - set
0or-1to theFiles.Sizecolumn 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::isIncompletemethod, which would count records in theFilestable that hasSize=-1 or 0and return true, when such records were found or false otherwise - the
bccommand would callisIncompletemethod on both databases and if throw an exception asking ti resync