Open maringuu opened 1 year ago
To make our life easier it is a good Idea to start with the leafs of the dependency tree. If we must change the schema we don't have to adapt any other plugins. Of course when we then later upgrade some inner nodes we have to update the leafs but this should be easier since the leafs code will get cleaned up during the upgrade.
Another benefit is that we can detect outdated dependencies easily in the new Runner class.
=====================
See https://github.com/fkie-cad/FACT_core/pull/987#pullrequestreview-1365009170
The minor part of the plugin version should be updated if the major version is 0. If the major version is >=1 and the result schema is different than the old one semver requires us to bump the major version.
If the result schema is different we have to migrate the results in the database.
Here is my WIP script which was intended for the device_tree plugin before #1027 existed. The alembic script did exactly what #1027 does but in the database.