-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Adjust .editorconfig to correct the automatic formatting of db_schema_whitelist.json files #31166
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
Conversation
…_whitelist.json files
Hi @DmitryFurs. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests 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 |
Hi @ihor-sviziev, thank you for the review. |
@DmitryFurs thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
@magento create issue |
@magento run Static Tests |
@magento run all tests |
@magento run Database Compare, Functional Tests CE, Integration Tests |
@magento run Functional Tests CE, Integration Tests |
@magento run Functional Tests CE |
✔️ QA passed |
… of db_schema_whitelist.json files #31166
Hi @DmitryFurs, thank you for your contribution! |
Description (*)
Since the .editorconfig file was changed to use two spaces for json files, this leads to problems with db_schema_whitelist.json files. All schemas are generated by the cli setup:db-declaration:generate-whitelist command and put json content formatted by the json_decode function with JSON_PRETTY_PRINT constant. This mechanism displays an indent of 4 spaces and does not add a new line at the bottom of the file. But when we change our file db_schema.xml and run setup:db-declaration:generate-whitelist cli command, it updates the contents of the db_schema_whitelist.json file, and when we opened it in the IDE, the .editorconfig add a new line at the bottom and we can't delete it, because it is always adding at the end on saving the file.
Related Pull Requests
#30062
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Resolved issues: