forcedotcom / forcedotcom/devops-center-feedback

Promoting Changes on Custom Objects

Open
#254 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
61
Forks
2
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
We ran into some issues when promoting changes to custom objects where only the object metadata file was changed - profile search layout changes and name field changes. The changes are reflected in GitHub and the promotion appears to complete successfully, but the object changes are not actually deployed.

**To Reproduce**
Steps to reproduce the behavior:
1. Create a work item in DevOps Center
2. In a development environment, change the Name field type a custom object from text to auto-number
3. Add the object change to the work item and commit
4. Query the Submit Components related to the work item:
```sql
SELECT sf_devops__Change_Submission__c, sf_devops__Empty__c, sf_devops__File_Path__c, sf_devops__Operation__c, sf_devops__Source_Component__c, sf_devops__Source_Remote_Change__c
FROM sf_devops__Submit_Component__c
WHERE sf_devops__Change_Submission__r.sf_devops__Work_Item__r.Name = '{work item name}'
```
5. The sf_devops__File_Path__c points to a file that is not the custom object's metadata file
6. When promoting the work item, the custom object's Name field type is not updated in the target environment

**Expected behavior**
1. The sf_devops__File_Path__c references the custom object's metadata file
2. Promoting the work item causes the custom object to be updated based on the changes that were made

**Screenshots**
Incorrect file path on Submit Component:
![incorrect-file-path](https://user-images.githubusercontent.com/124517677/222553483-1ce0cdbc-c4a4-417b-bd84-39a12b0683e7.png)

Corrected file path:
![corrected-file-path](https://user-images.githubusercontent.com/124517677/222553975-a05f945e-4ea0-45fe-9844-54c92a84e8d0.png)

**Additional context**
We are able to work around this by manually updating the File Path on the Submit Component that references the custom object. We first have to inactivate the validation rule that prevents this change, and then activate again when we are done making the change.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.