Skip to content

Commit

Permalink
chore: check strategy instead
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiand391 committed Feb 7, 2025
1 parent bd67cf8 commit 9c15136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/convert/metadataConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function getMergeConfigOutputs(
const defaultDirectory = output.defaultDirectory;
const mergeSet = new ComponentSet(undefined, registry);
for (const component of output.mergeWith) {
if (component.type.id === 'digitalexperience' && !component.parent?.content) {
if (component.type.strategies?.adapter === 'digitalExperience' && !component.parent?.content) {
// DE is addressable without its parent (DEB)
mergeSet.add(component);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/convert/transformers/defaultMetadataTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const getContentSourceDestination = (
if (mergeWith?.content) {
if (component.content && component.tree.isDirectory(component.content)) {
// DEs are always inside a dir.
if (component.type.id === 'digitalexperience') {
if (component.type.strategies?.adapter === 'digitalExperience') {
return join(mergeWith.content, basename(source));
} else {
const relative = trimUntil(source, basename(component.content));
Expand Down

2 comments on commit 9c15136

@svc-cli-bot
Copy link
Collaborator

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: 9c15136 Previous: bd67cf8 Ratio
eda-componentSetCreate-linux 225 ms 232 ms 0.97
eda-sourceToMdapi-linux 2034 ms 2058 ms 0.99
eda-sourceToZip-linux 1872 ms 1883 ms 0.99
eda-mdapiToSource-linux 2627 ms 2639 ms 1.00
lotsOfClasses-componentSetCreate-linux 531 ms 487 ms 1.09
lotsOfClasses-sourceToMdapi-linux 3633 ms 3635 ms 1.00
lotsOfClasses-sourceToZip-linux 2902 ms 2984 ms 0.97
lotsOfClasses-mdapiToSource-linux 3464 ms 3535 ms 0.98
lotsOfClassesOneDir-componentSetCreate-linux 839 ms 835 ms 1.00
lotsOfClassesOneDir-sourceToMdapi-linux 6372 ms 6332 ms 1.01
lotsOfClassesOneDir-sourceToZip-linux 4995 ms 5161 ms 0.97
lotsOfClassesOneDir-mdapiToSource-linux 6235 ms 6403 ms 0.97

This comment was automatically generated by workflow using github-action-benchmark.

@svc-cli-bot
Copy link
Collaborator

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: 9c15136 Previous: bd67cf8 Ratio
eda-componentSetCreate-win32 689 ms 733 ms 0.94
eda-sourceToMdapi-win32 4159 ms 4230 ms 0.98
eda-sourceToZip-win32 3268 ms 3310 ms 0.99
eda-mdapiToSource-win32 6002 ms 6120 ms 0.98
lotsOfClasses-componentSetCreate-win32 1476 ms 1421 ms 1.04
lotsOfClasses-sourceToMdapi-win32 8418 ms 8499 ms 0.99
lotsOfClasses-sourceToZip-win32 5276 ms 5618 ms 0.94
lotsOfClasses-mdapiToSource-win32 8347 ms 8503 ms 0.98
lotsOfClassesOneDir-componentSetCreate-win32 2478 ms 2634 ms 0.94
lotsOfClassesOneDir-sourceToMdapi-win32 14791 ms 15280 ms 0.97
lotsOfClassesOneDir-sourceToZip-win32 9180 ms 9709 ms 0.95
lotsOfClassesOneDir-mdapiToSource-win32 15147 ms 15004 ms 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.