-
Notifications
You must be signed in to change notification settings - Fork 9.4k
migrateDataFromAnotherTable() does not work for declarative schema #34394
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
Comments
Hi @DmitryFurs. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento/ext-vertex please take a look at this issue. |
Hi @engcom-November. Thank you for working on this issue.
|
This is the exact same issue I've described here |
It was a feature when some one implemented his mind. But currently fix for one bug add two new bugs in different places 🤔 |
@ihor-sviziev I try to reproduce this issue and I do finely after some tries. also please see #3835 (comment) I prepared draft PR #34457 that probably can fix this issue |
@kandy Will this also resolve the issue with invalid merging of Product Type configuration? |
@lbajsarowicz no, I think it unrelated issues |
Faced similar issue in DI when wanted to add new items in different area |
Is there any news here? Thanks! |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hello @DmitryFurs @navarr, We have discussed this issue with developers internally and come to the below conclusion: As per the analysis for the issue, the We have one different example as well to demonstrate the expected behavior of DI. The module-specific configuration will override the same expected behavior. Thanks |
@engcom-Hotel I think everyone in this thread understands that's the expected behavior of XML merge as it exists today However, I think the point of the ticket is that database triggers especially should not be disappear if a module tries to add one This has two potential solutions to that regard:
Personally, I've never understood why app/etc/di.xml exists or is treated differently. |
@engcom-Hotel I completely agree with @navarr |
Hello @navarr @DmitryFurs, We are under discussion on this issue internally. Will keep you posted on this soon. Thanks |
Moving this ticket "On hold" |
@engcom-Hotel @engcom-Echo any updates? Why task was closed w/o any comments? |
As per the Internal team they are not able to reproduce the issue hence they have closed jira form their side. Thanks. |
Were there any changes made to the way di.xml entries are loaded, or did internal just give up on fixing this architectural issue? |
Preconditions
Steps to reproduce
Expected result
Actual result
Additional Info
During the investigation, it was found that the vertexinc/module-tax module was installed together with Magneto.
This module adds its own trigger to create a table in a declarative schema

When you breakpoint in the Magento\Framework\Setup\Declaration\Schema\Operations\CreateTable class, you can see that the trigger added in app/etc/di.xml is missing from the list of added ones, and there is only vertexinc present there

After vertexinc was commented out

and the setup:upgrade started again, vertexinc disappeared and migrateDataFromAnotherTable appeared

After the setup:upgrade was completed, the rows were copied to the new table.
Most likely the reason lies somewhere in the merger app/etc/di.xml and others di.xml files, in our case it is vendor/vertexinc/module-tax/etc/di.xml
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: