Disallow "Remove" action in DevOps Center for certain types of metadata
Describe the bug Delete a Record Type, select it and then try to deploy it. This results in a blocking error.
To Reproduce Steps to reproduce the behavior:
- Delete an existing record type
- Add it to a work item
- Try to deploy it via the devops center
Following error appears: __DEPLOY__The deployment of the work items into the next stage failed. Resubmission__c.Topics_to_be_discussed of Type RecordType failed to deploy due to Cannot delete record type through API
Expected behavior Dont allow to select a remove-action of a record type or enable somehow a way to remove the record type via destructiveChanges.
Screenshots
Additional context
See #202 for a similar issue
This issue has been linked to a new work item: W-11499983
Hi @Schuchie Thank you for bring this to our attention. I have opened a bug for our development team to look into it.
Hi @Schuchie, our team will look into a more permanent solution that will not allow customers to select changes that are not supported by the Metadata API. This will be addressed in a future release. As a work around, you could try one of these options:
- Never the work item and start a new WI excluding the changes that failed to promote. The caveat with this is that the Record Type change will be visible every time you pull changes.
- Add the failing file to the .forceIgnore, commit and deploy. ForceIgnore will allow you to move the Work Item forward and prevent the deployment of this file.