@salesforce/source-tracking 1.4.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.5.0](https://github.com/forcedotcom/source-tracking/compare/v1.4.2...v1.5.0) (2022-05-04)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- polling optimizations ([e39afd4](https://github.com/forcedotcom/source-tracking/commit/e39afd409ffa321ac7cf91aab3f850dea5dcb45e))
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- 2 more types ([c5554f1](https://github.com/forcedotcom/source-tracking/commit/c5554f18c21283c85589ab0ea1c9e632be1bbeaf))
|
|
14
|
+
|
|
5
15
|
### [1.4.2](https://github.com/forcedotcom/source-tracking/compare/v1.4.1...v1.4.2) (2022-04-29)
|
|
6
16
|
|
|
7
17
|
### Bug Fixes
|
|
@@ -125,6 +125,10 @@ export declare class RemoteSourceTrackingService extends ConfigFile<RemoteSource
|
|
|
125
125
|
* @param pollingTimeout maximum amount of time in seconds to poll for SourceMembers
|
|
126
126
|
*/
|
|
127
127
|
pollForSourceTracking(expectedMembers: RemoteSyncInput[]): Promise<void>;
|
|
128
|
+
/**
|
|
129
|
+
* Filter out known source tracking issues
|
|
130
|
+
* This prevents the polling from waiting on things that may never return
|
|
131
|
+
*/
|
|
128
132
|
private calculateExpectedSourceMembers;
|
|
129
133
|
private calculateTimeout;
|
|
130
134
|
private querySourceMembersFrom;
|
|
@@ -432,12 +432,17 @@ class RemoteSourceTrackingService extends core_1.ConfigFile {
|
|
|
432
432
|
});
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
+
/**
|
|
436
|
+
* Filter out known source tracking issues
|
|
437
|
+
* This prevents the polling from waiting on things that may never return
|
|
438
|
+
*/
|
|
435
439
|
calculateExpectedSourceMembers(expectedMembers) {
|
|
436
440
|
const outstandingSourceMembers = new Map();
|
|
437
|
-
// filter known Source tracking issues
|
|
438
441
|
expectedMembers
|
|
439
|
-
.filter(
|
|
440
|
-
|
|
442
|
+
.filter(
|
|
443
|
+
// eslint-disable-next-line complexity
|
|
444
|
+
(fileResponse) => {
|
|
445
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
441
446
|
// unchanged files will never be in the sourceMembers. Not really sure why SDR returns them.
|
|
442
447
|
return fileResponse.state !== source_deploy_retrieve_1.ComponentStatus.Unchanged &&
|
|
443
448
|
// if a listView is the only change inside an object, the object won't have a sourceMember change. We won't wait for those to be found
|
|
@@ -457,21 +462,29 @@ class RemoteSourceTrackingService extends core_1.ConfigFile {
|
|
|
457
462
|
].includes(fileResponse.type) &&
|
|
458
463
|
// don't wait for standard fields on standard objects
|
|
459
464
|
!(fileResponse.type === 'CustomField' && !((_a = fileResponse.filePath) === null || _a === void 0 ? void 0 : _a.includes('__c'))) &&
|
|
465
|
+
// deleted fields
|
|
466
|
+
!(fileResponse.type === 'CustomField' && !((_b = fileResponse.filePath) === null || _b === void 0 ? void 0 : _b.includes('_del__c'))) &&
|
|
467
|
+
// built-in report type ReportType__screen_flows_prebuilt_crt
|
|
468
|
+
!(fileResponse.type === 'ReportType' && ((_c = fileResponse.filePath) === null || _c === void 0 ? void 0 : _c.includes('screen_flows_prebuilt_crt'))) &&
|
|
460
469
|
// they're settings to mdapi, and FooSettings in sourceMembers
|
|
461
470
|
!fileResponse.type.includes('Settings') &&
|
|
462
471
|
// mdapi encodes these, sourceMembers don't have encoding
|
|
463
|
-
!((fileResponse.type === 'Layout' ||
|
|
464
|
-
|
|
472
|
+
!((fileResponse.type === 'Layout' ||
|
|
473
|
+
fileResponse.type === 'BusinessProcess' ||
|
|
474
|
+
fileResponse.type === 'Profile' ||
|
|
475
|
+
fileResponse.type === 'HomePageComponent' ||
|
|
476
|
+
fileResponse.type === 'HomePageLayout') &&
|
|
477
|
+
((_d = fileResponse.filePath) === null || _d === void 0 ? void 0 : _d.includes('%'))) &&
|
|
465
478
|
// namespaced labels and CMDT don't resolve correctly
|
|
466
|
-
!(['CustomLabels', 'CustomMetadata'].includes(fileResponse.type) && ((
|
|
479
|
+
!(['CustomLabels', 'CustomMetadata'].includes(fileResponse.type) && ((_e = fileResponse.filePath) === null || _e === void 0 ? void 0 : _e.includes('__'))) &&
|
|
467
480
|
// don't wait on workflow children
|
|
468
481
|
!fileResponse.type.startsWith('Workflow') &&
|
|
469
482
|
// aura xml aren't tracked as SourceMembers
|
|
470
|
-
!((
|
|
471
|
-
!((
|
|
472
|
-
!((
|
|
473
|
-
!((
|
|
474
|
-
!((
|
|
483
|
+
!((_f = fileResponse.filePath) === null || _f === void 0 ? void 0 : _f.endsWith('.cmp-meta.xml')) &&
|
|
484
|
+
!((_g = fileResponse.filePath) === null || _g === void 0 ? void 0 : _g.endsWith('.tokens-meta.xml')) &&
|
|
485
|
+
!((_h = fileResponse.filePath) === null || _h === void 0 ? void 0 : _h.endsWith('.evt-meta.xml')) &&
|
|
486
|
+
!((_j = fileResponse.filePath) === null || _j === void 0 ? void 0 : _j.endsWith('.app-meta.xml')) &&
|
|
487
|
+
!((_k = fileResponse.filePath) === null || _k === void 0 ? void 0 : _k.endsWith('.intf-meta.xml'));
|
|
475
488
|
})
|
|
476
489
|
.map((member) => {
|
|
477
490
|
(0, metadataKeys_1.getMetadataKeyFromFileResponse)(member)
|
package/package.json
CHANGED