Enhancement #5704

Migrating import cleanup

Added by Tuukka Lehtonen about 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:2015-03-05
Priority:4Due date:2015-03-05
Assignee:Tuukka Lehtonen% Done:

100%

Category:MigrationSpent time:2.00 hours
Target version:1.18.1
Release notes:Cleaned up code in org.simantics.db.layer0.migration.
Tags: refactor, import, migration
Story points-
Velocity based estimate-
ReleaseSimantics 1.18.1Release relationshipAuto

Description

Migrating import code in org.simantics.db.layer0 can use some enhancements from the developer point of view:
  • Adding MigrationUtils.getProperty(MigrationState, String key, T defaultValue) would simplify code in many places
  • Introduce MigrationStateKeys.CURRENT_ROOT_RESOURCES instead of just having MigrationStateKeys.CURRENT_RESOURCE would make migration step code more portable to different cases, such as manual shared library migration through SCL console.

Related issues

Copied to Platform - Bug #5883: Migrating import cleanup Closed 2015-03-05 2015-03-05

Associated revisions

Revision 31037
Added by Tuukka Lehtonen about 2 years ago

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

refs #5704

Revision 31038
Added by Tuukka Lehtonen about 2 years ago

Merged trunk@31037 to branches/simantics-1.18 on 2015-03-05 for 1.18.1 release.

refs #5704

History

#1 Updated by Tuukka Lehtonen about 2 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

#2 Updated by Tuukka Lehtonen about 2 years ago

  • Status changed from Resolved to Closed

#3 Updated by Tuukka Lehtonen almost 2 years ago

  • Release notes set to Cleaned up code in org.simantics.db.layer0.migration.

Also available in: Atom PDF