-
Notifications
You must be signed in to change notification settings - Fork 1.7k
magento/devdocs#: Configure migration. Changes. #5184
magento/devdocs#: Configure migration. Changes. #5184
Conversation
An admin must run tests on this PR before it can be merged. |
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.
Hi @atwixfirster. Thank you for this way of thinking. First of all, your advice is very useful. However, we don't have a convincing explanation of why should we overcomplicate the process and create a separate module. Let me shed some light on it.
First of all, by copying *.xml.dist files to *.xml we don't edit the core, we just add new files. The same happens when you copy phpunit.xml.dist to phpunit.xml in case of configuring the automated tests.
In this particular case, I would say, the problem is in bringing manual changes to the vendor
directory. Ideally, this directory should be modified only by composer. It's not a sort of "good" practice but MUST in case if you use continuous delivery for your environments.
If you use continuous delivery, you install the codebase from scratch on every deployment (the vendor directory is generated by composer completely). That's why all your changes in vendor/magento/data-migration-tool/
will be lost.
There are two obvious ways of solving this issue:
- a separate module in
app/code
directory with proper configs under version control. - a separate module installable via composer with the proper configs (in this case you need an extra repository or modified
composer install
flow).
Providing changes in vendor/magento/data-migration-tool is acceptable only in case if you run the migration process locally and if you are not going to put your changes under version control.
36bdbb6
to
d343b7d
Compare
Hi, @rogyar ! Thank you VERY MUCH for the explanation. I've implemented your suggestions. Could you please verify them and let me know what do you think? Have a wonderful day! |
d343b7d
to
ca3898b
Compare
Awesome, thank you |
@jeff-matthews, all your suggestions have been implemented. Please review. Many thanks as always :) |
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.
Almost there @atwixfirster ;). Just a few more edits please.
@atwixfirster, there are also some markdown syntax errors:
|
@jeff-matthews, let's try again :) Thanks |
Confirmed! Thanks @atwixfirster. |
running tests |
Hi @atwixfirster, thank you for your contribution! |
Purpose of this pull request
Regarding to Magento best practices we should not edit core files except when you contribute 😸
Configure migration contains recommendation to directly edit Data Migration Tool config files. This pull request replaces mentioned recommendations regarding to Magento best practices.
Affected DevDocs pages
whatsnew
Added best practices for configuring the migration tool.