-
Notifications
You must be signed in to change notification settings - Fork 25
feat: apply fixes prototype #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: apply fixes prototype #63
Conversation
…to feature/migration-logging-refactor
…are/SwagMigrationAssistant into feature/migration-logging-refactor
|
@DennisGarding I dont really understand how this should work. Can you give an example of how this would be called? |
MalteJanz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open questions from my side that I think this prototype should answer:
- Get it implemented in an actual data migration, e.g. you mentioned the
AbstractWriteras a place to put this new logic, try to get it working there - Intentionally break some data in your source system (e.g. remove the email of one customer in SW5). Then migrate them to SW6. You should find a log entry about it and the customer shouldn't be migrated. Then manually add a fix to
swag_migration_fixesand migrate again. Is the customer then migrated properly? - After 2. fix the SW5 customer in the source system (assign him a different email than used in the fix). Then migrate again. Takes the new source data or the old fix priority?
|
would be great if you could add a proper PR description that documents your insights and decisions from this prototype and also answers these questions 🙂 : |
MalteJanz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for the prototype, nice job 👍
…are/SwagMigrationAssistant into 12365/apply-fixes-prototype
vintagesucks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…are/SwagMigrationAssistant into 12365/apply-fixes-prototype
35709d7
into
feature/migration-logging-refactor

closes: #12365
Implement apply migration fix before write the converted data to DB
Answered Questions:
Works now: see src/Migration/Service/MigrationDataWriter.php line 106 - 107
Works fine and the customer is migrated.
Currently, there is no functionality to prioritize the source data. The fix is always applied. There is a Ticket to implement this! See Ticket: shopware/shopware#11819