Skip to content

Commit 82a6d2d

Browse files
fix: potential undefined in SDREvent orgId
* fix: potential undefined in SDREvent orgId * chore: auto-update metadata coverage in METADATA_SUPPORT.md * chore: auto-update metadata coverage in METADATA_SUPPORT.md * test: record perf * test: longer time for slow windows ut * test: record perf * refactor: less satisfactory generic * chore: auto-update metadata coverage in METADATA_SUPPORT.md * test: record perf --------- Co-authored-by: svc-cli-bot <[email protected]>
1 parent bfba650 commit 82a6d2d

File tree

14 files changed

+274
-885
lines changed

14 files changed

+274
-885
lines changed

.mocharc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"watch-files": ["src", "test"],
77
"recursive": true,
88
"reporter": "spec",
9-
"timeout": 5000
9+
"timeout": 10000
1010
}

CHANGELOG.md

Lines changed: 222 additions & 841 deletions
Large diffs are not rendered by default.

METADATA_SUPPORT.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,18 +554,23 @@ v58 introduces the following new types. Here's their current level of support
554554

555555
|Metadata Type|Support|Notes|
556556
|:---|:---|:---|
557+
|AIScoringModelDefVersion||Not supported, but support could be added|
558+
|AIScoringModelDefinition||Not supported, but support could be added|
557559
|Ai4mSettings|||
560+
|AssessmentConfiguration||Not supported, but support could be added|
558561
|ClaimMgmtFoundationEnabledSettings|||
559562
|CodeBuilderSettings|||
560563
|DataWeaveResource|||
561564
|DynamicFormsSettings|||
565+
|ExperiencePropertyTypeBundle|||
566+
|FundraisingConfig||Not supported, but support could be added|
562567
|LicensingSettings|||
563568
|OmniChannelPricingSettings|||
564-
|PaymentsBuyerAPIEnabledSettings|||
565-
|PriceSheetDefinition||Not supported, but support could be added|
566569
|ProcessFlowMigration||Not supported, but support could be added|
567-
|ProductSpecificationRecType||Not supported, but support could be added|
570+
|ProductSpecificationType||Not supported, but support could be added|
571+
|SkillType||Not supported, but support could be added|
568572
|Web3Settings|||
573+
|WebStoreBundle||Not supported, but support could be added|
569574

570575
## Additional Types
571576

@@ -616,4 +621,3 @@ v58 introduces the following new types. Here's their current level of support
616621
- InternalOrganization
617622
- UiViewDefinition
618623
- MobileSecurityPolicySet
619-
- ExperiencePropertyTypeBundle

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,4 @@
185185
"output": []
186186
}
187187
}
188-
}
188+
}

src/client/metadataApiDeploy.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ export class MetadataApiDeploy extends MetadataTransfer<
374374
// eslint-disable-next-line @typescript-eslint/require-await
375375
protected async post(result: MetadataApiDeployStatus): Promise<DeployResult> {
376376
const lifecycle = Lifecycle.getInstance();
377+
const connection = await this.getConnection();
377378
try {
378-
const connection = await this.getConnection();
379379
const apiVersion = connection.getApiVersion();
380380
// Creates an array of unique metadata types that were deployed, uses Set to avoid duplicates.
381381
let listOfMetadataTypesDeployed: string[];
@@ -428,7 +428,11 @@ export class MetadataApiDeploy extends MetadataTransfer<
428428
);
429429
// only do event hooks if source, (NOT a metadata format) deploy
430430
if (this.options.components) {
431-
await lifecycle.emit('scopedPostDeploy', { deployResult, orgId: this.orgId } as ScopedPostDeploy);
431+
// this may not be set if you resume a deploy so that `pre` is skipped.
432+
if (!this.orgId) {
433+
this.orgId = connection.getAuthInfoFields().orgId;
434+
}
435+
await lifecycle.emit<ScopedPostDeploy>('scopedPostDeploy', { deployResult, orgId: this.orgId });
432436
}
433437
return deployResult;
434438
}
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": 335.35674599997583
4+
"duration": 345.28876100000343
55
},
66
{
77
"name": "sourceToMdapi",
8-
"duration": 8162.298194999981
8+
"duration": 8330.387101
99
},
1010
{
1111
"name": "sourceToZip",
12-
"duration": 6008.431779000006
12+
"duration": 5822.162848000007
1313
},
1414
{
1515
"name": "mdapiToSource",
16-
"duration": 6042.633933999983
16+
"duration": 6123.899523999979
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": 724.9735790000123
4+
"duration": 675.3449159999727
55
},
66
{
77
"name": "sourceToMdapi",
8-
"duration": 11907.511557999998
8+
"duration": 11995.010080000007
99
},
1010
{
1111
"name": "sourceToZip",
12-
"duration": 9097.891867999977
12+
"duration": 9518.928809000005
1313
},
1414
{
1515
"name": "mdapiToSource",
16-
"duration": 7404.288763000019
16+
"duration": 7432.586432000011
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": 1204.1515890000155
4+
"duration": 1170.5348080000258
55
},
66
{
77
"name": "sourceToMdapi",
8-
"duration": 18205.620580000017
8+
"duration": 17969.274023000035
99
},
1010
{
1111
"name": "sourceToZip",
12-
"duration": 14699.381414000003
12+
"duration": 14706.58613000001
1313
},
1414
{
1515
"name": "mdapiToSource",
16-
"duration": 13408.557602000015
16+
"duration": 13242.275161000027
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": 272.83077500000945
4+
"duration": 260.3101150000002
55
},
66
{
77
"name": "sourceToMdapi",
8-
"duration": 5076.5884930000175
8+
"duration": 6198.695180999988
99
},
1010
{
1111
"name": "sourceToZip",
12-
"duration": 5100.472668000002
12+
"duration": 5268.037049999999
1313
},
1414
{
1515
"name": "mdapiToSource",
16-
"duration": 4650.940291000006
16+
"duration": 4821.471162000002
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": 516.7272080000257
4+
"duration": 564.117453999992
55
},
66
{
77
"name": "sourceToMdapi",
8-
"duration": 9294.126565000013
8+
"duration": 10235.299335999996
99
},
1010
{
1111
"name": "sourceToZip",
12-
"duration": 8794.876434000005
12+
"duration": 8152.812848000001
1313
},
1414
{
1515
"name": "mdapiToSource",
16-
"duration": 6552.890683999984
16+
"duration": 6198.941200000001
1717
}
1818
]

0 commit comments

Comments
 (0)