magento / magento/data-migration-tool
Custom Config File Path
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 339
- Forks
- 195
- PR merge metrics
- No merged PRs in 30d
Description
The only way to define a custom config files is by providing a full path or magento/data-migration-tool module install relative path:
- This contradicts the Docs that Claims you can use Magento install relative path:
The changes here go against what @victor-v-rad said in a similar config issue:
Yes, not only file name should be changed in config.xml file but path also. The only thing is file path can be relative to Data Migration Tool directory or full path. It wont work if you set relative the Magento install directory in <map_file> option in config.xml file. So would suggest to change the text to something like "Change the file path and name in the
<options>node in theconfig.xmlfile to the new file path and name accordingly"
https://github.com/magento/devdocs/pull/6732#pullrequestreview-365807119
Related:
- https://github.com/magento/devdocs/pull/6775
- https://github.com/magento/data-migration-tool/issues/757
It would help to be able to define a custom config file relative to the Magento install path. I'm working within a cloud environment and the full path changes based on the environment.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading src/Migration/Reader/Map.php around lines 83-84 and src/Migration/Reader/Settings.php around lines 96-98, then compare their path handling with the linked migration configuration documentation. The work is done when a custom config path can be specified relative to the Magento installation as described, without requiring an environment-specific full path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100