-
Notifications
You must be signed in to change notification settings - Fork 84
Description
Summary
After custom object deletions in a scratch org, files related to profile are not updated by sfdx force:source:pull command.
Steps To Reproduce:
- Create a new scratch org.
- Open the new scratch org.
- Create a new Custom Object.
- Retrieve modified metadata with
sfdx force:source:pull - Verify the profile files are referencing, for instance, the new custom object layouts.
- In the scratch org, delete the created Custom Object
- Retrieve the metadata using
sfdx force:source:pullagain
Expected result
The *.profile-meta.xml files doesn't contain any reference to deleted custom object assets.
Actual result
The *.profile-meta.xml files keeps references to deleted custom object assets. This will cause failure to any upcoming sfdx force:source:push execution.
Additional information
Retrieved metadata using sfdx force:source:pull

Retrieved metadata after custom object deletion.

Content of profile-meta.xml files after custom object deletion and pulling of scratch org source code.

ERROR: result of sfdx force:source:push -f into a new scratch org with the last pulled source code version:

SFDX CLI Version: sfdx-cli/6.50.0-9817aece8a (darwin-x64) node-v8.9.4
OS and version: darwin18 (MacOS Mojave)
