-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Add availability to leave empty config for events.xml #19145
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
Add availability to leave empty config for events.xml #19145
Conversation
Hi @lisovyievhenii. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
The branch name was incorrectly named. Don't pay attention on it |
@magento-engcom-team please consider that this will make the code less strict. I already mentioned that in the issue that it is not really an issue. To me it makes no sense to make the code less strict, just for debugging. |
@arnoudhgz all other xsd schemas support an empty configuration. So it makes sense to add this fix into events.xsd schema, to make it similar to others |
@lisovyievhenii I think the others should be made more strict... But it is not my call, I just want it here as a side note for the reviewer, since Magento never replied on my issues with this in the issue. Sorry, accidentally clicked the close button, reopened again 👍 |
Could you please re-run tests or say why it was failed? |
I'm going to re-run the tests internally. |
Hi @lisovyievhenii. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Description (*)
The node in events.xml file cannot have no any children nodes.
Fixed Issue
#15931: events.xml cant have no childrens, others can [Magento 2.2.4]
Manual testing scenarios (*)
php bin.magento cache:flush
Expected result
Upgrade + Flush + Clean should run fine trough, page is loading afterwards in developer mode
Actual result
Cache Flush triggers the error:
Contribution checklist (*)
Backport for: #19146