Skip to content

Commit 44dae0c

Browse files
mshanemcSF-CLI-BOT
andauthored
fix: show individual cft in a retrieve (#728)
* fix: show individual cft in a retrieve * test: record perf Co-authored-by: SF-CLI-BOT <[email protected]>
1 parent c76bae0 commit 44dae0c

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/client/metadataApiRetrieve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class RetrieveResult implements MetadataTransferResult {
100100
state: this.localComponents.has(retrievedComponent) ? ComponentStatus.Changed : ComponentStatus.Created,
101101
};
102102

103-
if (!type.children) {
103+
if (!type.children || Object.values(type.children.types).some((t) => t.unaddressableWithoutParent)) {
104104
for (const filePath of retrievedComponent.walkContent()) {
105105
this.fileResponses.push(Object.assign({}, baseResponse, { filePath }));
106106
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[
22
{
33
"name": "componentSetCreate",
4-
"duration": 227.84873699999298
4+
"duration": 217.93947700003628
55
},
66
{
77
"name": "sourceToMdapi",
8-
"duration": 5575.808999000001
8+
"duration": 5880.5675030000275
99
},
1010
{
1111
"name": "sourceToZip",
12-
"duration": 5121.344982999988
12+
"duration": 5136.219725999981
1313
},
1414
{
1515
"name": "mdapiToSource",
16-
"duration": 4306.255004000006
16+
"duration": 4138.7591559999855
1717
}
1818
]
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[
22
{
33
"name": "componentSetCreate",
4-
"duration": 464.14559599998756
4+
"duration": 431.07157500006724
55
},
66
{
77
"name": "sourceToMdapi",
8-
"duration": 8464.103521000012
8+
"duration": 8174.430239000008
99
},
1010
{
1111
"name": "sourceToZip",
12-
"duration": 7716.617144000018
12+
"duration": 7697.708233000012
1313
},
1414
{
1515
"name": "mdapiToSource",
16-
"duration": 5273.308957000001
16+
"duration": 4943.100770000019
1717
}
1818
]
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[
22
{
33
"name": "componentSetCreate",
4-
"duration": 782.2161900000065
4+
"duration": 748.0606320000952
55
},
66
{
77
"name": "sourceToMdapi",
8-
"duration": 12909.834803000005
8+
"duration": 12974.12760899996
99
},
1010
{
1111
"name": "sourceToZip",
12-
"duration": 11247.063521999982
12+
"duration": 10737.532497000066
1313
},
1414
{
1515
"name": "mdapiToSource",
16-
"duration": 12979.326094000018
16+
"duration": 12639.02305800002
1717
}
1818
]

0 commit comments

Comments
 (0)