Magento Data patches have been highly used and most of the time I don’t see it as required, so I would like to know when it’s a good scenario to use it from your point of view.
Bad usage
- Client manually creates and deletes CMS pages or CMS blocks and the new code will update the previous content.
- Client manually creates and deletes attributes and the data patch will change them.
- Every time a new change is required via the admin panel a new data patch is created.
Good usage
- Module creates a new CMS page or block, required for the module function.
- Module creates a new attribute, required for the module function and excludes it running the uninstall CLI command.
What would be the best practices to use it?