forcedotcom / devops-center-feedback

61 stars 2 forks source link

Disallow "Remove" action in DevOps Center for certain types of metadata #203

Open Schuchie opened 2 years ago

Schuchie commented 2 years ago

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:

  1. Delete an existing record type
  2. Add it to a work item
  3. Try to deploy it via the devops center

Following error appears: DEPLOYThe 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

RupertBarrow commented 2 years ago

See #202 for a similar issue

git2gus[bot] commented 2 years ago

This issue has been linked to a new work item: W-11499983

GilsonCanario commented 2 years ago

Hi @Schuchie Thank you for bring this to our attention. I have opened a bug for our development team to look into it.

GilsonCanario commented 2 years ago

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:

  1. 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.
  2. 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.