Project

General

Profile

Bug #2840

[patch] Migrators are not run during startup on the models that reside in the workspace

Added by Simon Barner over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
02/15/2017
Due date:
% Done:

90%

Estimated time:

Description

Description

Migrators are only applied in the following cases

  1. When files are imported using the "File -> Import" functionality
  2. When files are copied into the workspace after AF3 has already started (note that this case has not been tested but I assume according to my understanding of the code)

Analysis:

EclipseResourceStorageService.postLoadContext() triggers the migration of the currently loaded model. However, during startup of AF3, the list of available migrators is still empty since the MigrationService has not been initialized / started .

Proposed fix

Move initialization of MigrationService right before initialization of EclipseResourceStorageService (see attached patch)

History

#1 Updated by Florian Hölzl over 3 years ago

  • Status changed from New to Resolved
  • Assignee changed from Florian Hölzl to Simon Barner
  • Target version set to AF3 2.12 RC3 (Documented, code reviewed, tested)
  • % Done changed from 0 to 90

The patch has been reviewed and applied. Issue can be closed.

#2 Updated by Simon Barner over 3 years ago

  • Status changed from Resolved to Closed
  • Assignee deleted (Simon Barner)

Tested successfully. Closing.

Also available in: Atom PDF