Skip to content
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

fix: child components not being deployed #220

Merged
merged 2 commits into from
Dec 3, 2020

Conversation

brpowell
Copy link
Contributor

@brpowell brpowell commented Dec 3, 2020

What does this PR do?

Fixes an issue where deploying individual child components like CustomField fails.

What issues does this PR fix or reference?

@W-8534562@

@brpowell brpowell requested a review from a team as a code owner December 3, 2020 21:06
@@ -183,7 +183,7 @@ export class ComponentSet implements Iterable<MetadataComponent> {
public getObject(): PackageManifestObject {
const typeMap = new Map<string, string[]>();
for (const key of this.components.keys()) {
const [typeId, fullName] = key.split('.');
const [typeId, fullName] = key.split(ComponentSet.KEY_DELIMETER);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem was the delimiter for the key was being split by a ., which is bad because . is used in the fullname of a child component, i.e. My_Object__c.My_Field__c. Changed it to a # instead.

@brpowell brpowell merged commit 86581e4 into develop Dec 3, 2020
@brpowell brpowell deleted the bp/childComponentsNotDeployedFix branch December 3, 2020 22:54
brpowell pushed a commit that referenced this pull request Dec 8, 2020
brpowell pushed a commit that referenced this pull request Dec 8, 2020
sfsholden pushed a commit that referenced this pull request May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants