Migrating import cleanup
|Assignee:||Tuukka Lehtonen||% Done:|
|Category:||Migration||Spent time:||2.00 hours|
|Release notes:||Cleaned up code in org.simantics.db.layer0.migration.|
|Tags:||refactor, import, migration|
|Velocity based estimate||-|
|Release||Simantics 1.18.1||Release relationship||Auto|
Migrating import code in org.simantics.db.layer0 can use some enhancements from the developer point of view:
MigrationUtils.getProperty(MigrationState, String key, T defaultValue)would simplify code in many places
MigrationStateKeys.CURRENT_ROOT_RESOURCESinstead of just having
MigrationStateKeys.CURRENT_RESOURCEwould make migration step code more portable to different cases, such as manual shared library migration through SCL console.
Minor improvement and refactoring of MigrationStateImpl code.
- Added javadoc to some MigrationStateKeys
- Consolidated duplicate code from MigrationStateImpl
- Added MigrationUtillity.getProperty(MigrationState state, String key, T defaultValue)
- Added MigrationStateKeys.CURRENT_ROOT_RESOURCES and code to MigrationStateImpl that takes care of (re)setting its value when asked for