-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulling source from scratch org recreates custom layouts in default directory #1683
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Thanks for the issue @ChloeCoon. I tried reproducing this but was unable to. I've got a few questions:
Thanks! |
@iowillhoit thanks for reaching out, here is the requested info:
Once you have that repo cloned, you should be able to create a scratch org, run source push and then immediately run source pull to repro the issue we're seeing. I've included what it looks like when I do these steps.
|
Excellent reproduction steps 🏆 Thank you @ChloeCoon! |
This issue has been linked to a new work item: W-11658886 |
This should be fixed in the current release candidate version of the sf v2 CLI. The issue is that Layouts and Profiles allow naming things with any character and it affects the API names returned by the metadata API (returned encoded), but they are not encoded in source tracking. This made it so that source tracking couldn't match existing metadata files so it would add them as new files in the default package directory. |
Summary
Anytime we run
sfdx force:source:pull
, some of our Layouts we have in our managed package get recreated into another directory (the default directory we have specified in sfdx-project.json). If we remove them from the default directory and try to push to the same scratch org, we get an error:The Layouts that we have this problem with have version numbers in their names like "AssignmentHistory__c-v1%2E34 Assignment History Layout.layout-meta.xml".
Steps To Reproduce:
sfdx force:source:pull
Expected result
I would expect nothing to be pulled down and no Layouts to be created
Actual result
The Layout is recreated in the default directory
System Information
Additional information
The text was updated successfully, but these errors were encountered: