@salesforce/plugin-devops-center 0.1.0-beta.1 → 0.1.0-beta.3
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/lib/common/base/abstractReportOnPromote.js +13 -19
- package/lib/common/base/abstractReportOnPromote.js.map +1 -1
- package/lib/common/selectors/asyncOperationResultsSelector.js +3 -1
- package/lib/common/selectors/asyncOperationResultsSelector.js.map +1 -1
- package/lib/common/selectors/deployComponentsSelector.js +2 -1
- package/lib/common/selectors/deployComponentsSelector.js.map +1 -1
- package/lib/common/selectors/deployProgressSummarySelector.js +2 -1
- package/lib/common/selectors/deployProgressSummarySelector.js.map +1 -1
- package/lib/common/selectors/deploymentResultsSelector.d.ts +1 -1
- package/lib/common/selectors/deploymentResultsSelector.js +3 -1
- package/lib/common/selectors/deploymentResultsSelector.js.map +1 -1
- package/lib/common/selectors/environmentSelector.js +2 -1
- package/lib/common/selectors/environmentSelector.js.map +1 -1
- package/lib/common/selectors/namedCredentialSelector.js +2 -1
- package/lib/common/selectors/namedCredentialSelector.js.map +1 -1
- package/lib/common/selectors/pipelineStageSelector.js +2 -1
- package/lib/common/selectors/pipelineStageSelector.js.map +1 -1
- package/lib/common/selectors/selectorUtils.d.ts +3 -0
- package/lib/common/selectors/selectorUtils.js +36 -0
- package/lib/common/selectors/selectorUtils.js.map +1 -0
- package/lib/common/selectors/workItemSelector.js +2 -1
- package/lib/common/selectors/workItemSelector.js.map +1 -1
- package/lib/common/utils.js +3 -4
- package/lib/common/utils.js.map +1 -1
- package/lib/configMeta.d.ts +5 -0
- package/lib/configMeta.js +8 -0
- package/lib/configMeta.js.map +1 -1
- package/messages/commonErrors.md +16 -0
- package/messages/config.md +4 -0
- package/messages/resume.output.md +1 -2
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
|
@@ -34,27 +34,21 @@ class ReportOnPromoteCommand extends sf_plugins_core_1.SfCommand {
|
|
|
34
34
|
? (await deployPipelineCache_1.DeployPipelineCache.create()).getLatestKeyOrThrow()
|
|
35
35
|
: this.flags['job-id'];
|
|
36
36
|
const org = this.flags['devops-center-username'];
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
displayer.printOpSummary();
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
jobId: asyncJobId,
|
|
46
|
-
status: operationResult.sf_devops__Status__r.sf_devops__Status__c,
|
|
47
|
-
message: operationResult.sf_devops__Status__r.sf_devops__Message__c,
|
|
48
|
-
errorDetails: operationResult.sf_devops__Status__r.sf_devops__Error_Details__c,
|
|
49
|
-
};
|
|
37
|
+
// query the deployment result related to the promote operation.
|
|
38
|
+
const operationResult = await (0, deploymentResultsSelector_1.selectOneDeploymentResultByAsyncJobId)(org.getConnection(), asyncJobId);
|
|
39
|
+
if (operationResult && !this.jsonEnabled()) {
|
|
40
|
+
const displayer = new outputServiceFactory_1.OutputServiceFactory().forPromotionReport(this.flags, operationResult, this.operationName);
|
|
41
|
+
displayer.printOpSummary();
|
|
50
42
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
if (error.name === 'SingleRecordQuery_NoRecords') {
|
|
54
|
-
throw messages.createError('error.InvalidAorId', [asyncJobId]);
|
|
55
|
-
}
|
|
56
|
-
throw err;
|
|
43
|
+
else if (!operationResult) {
|
|
44
|
+
throw messages.createError('error.InvalidAorId', [asyncJobId]);
|
|
57
45
|
}
|
|
46
|
+
return {
|
|
47
|
+
jobId: asyncJobId,
|
|
48
|
+
status: operationResult.sf_devops__Status__r.sf_devops__Status__c,
|
|
49
|
+
message: operationResult.sf_devops__Status__r.sf_devops__Message__c,
|
|
50
|
+
errorDetails: operationResult.sf_devops__Status__r.sf_devops__Error_Details__c,
|
|
51
|
+
};
|
|
58
52
|
}
|
|
59
53
|
}
|
|
60
54
|
exports.ReportOnPromoteCommand = ReportOnPromoteCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstractReportOnPromote.js","sourceRoot":"","sources":["../../../src/common/base/abstractReportOnPromote.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2CAAiD;AACjD,iEAAwD;AAExD,0EAAuE;AAEvE,oDAA+D;AAE/D,wFAAiG;AAEjG,kFAA+E;AAE/E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAM3F,MAAsB,sBAAmD,SAAQ,2BAAgC;IAOxG,KAAK,CAAC,IAAI;QACf,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,mEAAmE;QACnE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC;YACjC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK;YACtB,SAAS,EAAG,KAAK,CAAC,IAAsC,CAAC,SAAS;SACnE,CAAC,CAAC;QACH,mEAAmE;QACnE,IAAI,CAAC,KAAK,GAAG,KAAiB,CAAC;IACjC,CAAC;IAED;;OAEG;IACO,KAAK,CAAC,kBAAkB;QAChC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC;YAC9C,CAAC,CAAC,CAAC,MAAM,yCAAmB,CAAC,MAAM,EAAE,CAAC,CAAC,mBAAmB,EAAE;YAC5D,CAAC,CAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAY,CAAC;QACrC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAQ,CAAC;QAExD,
|
|
1
|
+
{"version":3,"file":"abstractReportOnPromote.js","sourceRoot":"","sources":["../../../src/common/base/abstractReportOnPromote.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2CAAiD;AACjD,iEAAwD;AAExD,0EAAuE;AAEvE,oDAA+D;AAE/D,wFAAiG;AAEjG,kFAA+E;AAE/E,eAAQ,CAAC,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,CAAC,UAAU,CAAC,CAAC,CAAC;SAChE;QAED,OAAO;YACL,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,eAAe,CAAC,oBAAoB,CAAC,oBAAoB;YACjE,OAAO,EAAE,eAAe,CAAC,oBAAoB,CAAC,qBAAqB;YACnE,YAAY,EAAE,eAAe,CAAC,oBAAoB,CAAC,2BAA2B;SAC/E,CAAC;IACJ,CAAC;;AAjDH,wDAkDC;AAjDe,gCAAS,GAAG;IACxB,wBAAwB,EAAE,IAAA,2BAAmB,GAAE;CAChD,CAAC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectAsyncOperationResultById = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
*
|
|
12
13
|
* Returns an Async Operation Result record filtering by project name.
|
|
@@ -15,7 +16,8 @@ async function selectAsyncOperationResultById(con, aorId) {
|
|
|
15
16
|
const queryStr = `SELECT sf_devops__Status__c, sf_devops__Message__c, sf_devops__Error_Details__c
|
|
16
17
|
FROM sf_devops__Async_Operation_Result__c
|
|
17
18
|
WHERE Id = '${aorId}'`;
|
|
18
|
-
|
|
19
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
20
|
+
return resp.records[0];
|
|
19
21
|
}
|
|
20
22
|
exports.selectAsyncOperationResultById = selectAsyncOperationResultById;
|
|
21
23
|
//# sourceMappingURL=asyncOperationResultsSelector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncOperationResultsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/asyncOperationResultsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH;;;GAGG;AACI,KAAK,UAAU,8BAA8B,CAAC,GAAe,EAAE,KAAa;IACjF,MAAM,QAAQ,GAAG;;kCAEe,KAAK,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"asyncOperationResultsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/asyncOperationResultsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAE/C;;;GAGG;AACI,KAAK,UAAU,8BAA8B,CAAC,GAAe,EAAE,KAAa;IACjF,MAAM,QAAQ,GAAG;;kCAEe,KAAK,GAAG,CAAC;IAEzC,MAAM,IAAI,GAAsC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAClF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC;AAPD,wEAOC"}
|
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectDeployComponentsByAsyncOpId = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
async function selectDeployComponentsByAsyncOpId(con, asyncOpId) {
|
|
11
12
|
const queryStr = `SELECT sf_devops__Source_Component__c, sf_devops__Operation__c, sf_devops__File_Path__c
|
|
12
13
|
FROM sf_devops__Deploy_Component__c
|
|
13
14
|
WHERE sf_devops__Deployment_Result__r.sf_devops__Status__c = '${asyncOpId}'`;
|
|
14
|
-
const resp = await
|
|
15
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
15
16
|
return resp.records;
|
|
16
17
|
}
|
|
17
18
|
exports.selectDeployComponentsByAsyncOpId = selectDeployComponentsByAsyncOpId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployComponentsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deployComponentsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"deployComponentsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deployComponentsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAExC,KAAK,UAAU,iCAAiC,CACrD,GAAe,EACf,SAAiB;IAEjB,MAAM,QAAQ,GAAG;;oFAEiE,SAAS,GAAG,CAAC;IAE/F,MAAM,IAAI,GAAiC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC7E,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC;AAVD,8EAUC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectDeployAORSummaryDataById = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
* Returns the data necessary to create the deploy summary (or part of it).
|
|
12
13
|
*/
|
|
@@ -17,7 +18,7 @@ async function selectDeployAORSummaryDataById(con, aorId) {
|
|
|
17
18
|
(SELECT Name FROM sf_devops__Work_Items__r)
|
|
18
19
|
FROM sf_devops__Async_Operation_Result__c
|
|
19
20
|
WHERE Id = '${aorId}'`;
|
|
20
|
-
const resp = await
|
|
21
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
21
22
|
return resp.records[0];
|
|
22
23
|
}
|
|
23
24
|
exports.selectDeployAORSummaryDataById = selectDeployAORSummaryDataById;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployProgressSummarySelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deployProgressSummarySelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"deployProgressSummarySelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deployProgressSummarySelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAU/C;;GAEG;AACI,KAAK,UAAU,8BAA8B,CAClD,GAAe,EACf,KAAa;IAEb,MAAM,QAAQ,GAAG;;;;;kCAKe,KAAK,GAAG,CAAC;IAEzC,MAAM,IAAI,GAA0C,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC;AAbD,wEAaC"}
|
|
@@ -4,4 +4,4 @@ import { DeploymentResult } from '../types';
|
|
|
4
4
|
*
|
|
5
5
|
* Returns deployment result record filtering by async job id.
|
|
6
6
|
*/
|
|
7
|
-
export declare function selectOneDeploymentResultByAsyncJobId(con: Connection, asyncJobId: string): Promise<DeploymentResult>;
|
|
7
|
+
export declare function selectOneDeploymentResultByAsyncJobId(con: Connection, asyncJobId: string): Promise<DeploymentResult | null>;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectOneDeploymentResultByAsyncJobId = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
*
|
|
12
13
|
* Returns deployment result record filtering by async job id.
|
|
@@ -18,7 +19,8 @@ async function selectOneDeploymentResultByAsyncJobId(con, asyncJobId) {
|
|
|
18
19
|
sf_devops__Status__r.sf_devops__Status__c, sf_devops__Status__r.sf_devops__Error_Details__c
|
|
19
20
|
FROM sf_devops__Deployment_Result__c
|
|
20
21
|
WHERE sf_devops__Status__r.Id = '${asyncJobId}'`;
|
|
21
|
-
|
|
22
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr, true);
|
|
23
|
+
return resp.totalSize > 0 ? resp.records[0] : null;
|
|
22
24
|
}
|
|
23
25
|
exports.selectOneDeploymentResultByAsyncJobId = selectOneDeploymentResultByAsyncJobId;
|
|
24
26
|
//# sourceMappingURL=deploymentResultsSelector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploymentResultsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deploymentResultsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH;;;GAGG;AACI,KAAK,UAAU,qCAAqC,CACzD,GAAe,EACf,UAAkB;IAElB,MAAM,QAAQ,GAAG;;;;;uDAKoC,UAAU,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"deploymentResultsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deploymentResultsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAE/C;;;GAGG;AACI,KAAK,UAAU,qCAAqC,CACzD,GAAe,EACf,UAAkB;IAElB,MAAM,QAAQ,GAAG;;;;;uDAKoC,UAAU,GAAG,CAAC;IAEnE,MAAM,IAAI,GAAkC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;IACpF,OAAO,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACrD,CAAC;AAbD,sFAaC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectPipelineStageByEnvironment = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
* Returns the named credential and pipeline stage name associated with the envId sent
|
|
12
13
|
*/
|
|
@@ -15,7 +16,7 @@ async function selectPipelineStageByEnvironment(con, envId) {
|
|
|
15
16
|
(SELECT Name FROM sf_devops__Pipeline_Stages__r)
|
|
16
17
|
FROM sf_devops__Environment__c
|
|
17
18
|
WHERE Id = '${envId}'`;
|
|
18
|
-
const resp = await
|
|
19
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
19
20
|
return resp.records[0];
|
|
20
21
|
}
|
|
21
22
|
exports.selectPipelineStageByEnvironment = selectPipelineStageByEnvironment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environmentSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/environmentSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"environmentSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/environmentSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAQ/C;;GAEG;AACI,KAAK,UAAU,gCAAgC,CAAC,GAAe,EAAE,KAAa;IACnF,MAAM,QAAQ,GAAG;;;kCAGe,KAAK,GAAG,CAAC;IAEzC,MAAM,IAAI,GAAgC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC;AARD,4EAQC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectNamedCredentialByName = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
* Given a named credential it returns the org url (endpoint) associated with it
|
|
12
13
|
*/
|
|
@@ -17,7 +18,7 @@ async function selectNamedCredentialByName(con, name) {
|
|
|
17
18
|
WHERE DeveloperName = '${name}'
|
|
18
19
|
AND NamespacePrefix = 'sf_devops'
|
|
19
20
|
LIMIT 1`;
|
|
20
|
-
const resp = await
|
|
21
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
21
22
|
return resp.records[0];
|
|
22
23
|
}
|
|
23
24
|
exports.selectNamedCredentialByName = selectNamedCredentialByName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namedCredentialSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/namedCredentialSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"namedCredentialSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/namedCredentialSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAE/C;;GAEG;AACI,KAAK,UAAU,2BAA2B,CAAC,GAAe,EAAE,IAAY;IAC7E,MAAM,QAAQ,GAAG;;;6BAGU,IAAI;;YAErB,CAAC;IAEX,MAAM,IAAI,GAAiC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC;AAVD,kEAUC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectPipelineStagesByProject = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
*
|
|
12
13
|
* Returns an array of a pipeline stages filtering by project name.
|
|
@@ -15,7 +16,7 @@ async function selectPipelineStagesByProject(con, projectName) {
|
|
|
15
16
|
const queryStr = `SELECT Id, sf_devops__Pipeline__r.sf_devops__Project__c, sf_devops__Branch__r.sf_devops__Name__c, (SELECT Id FROM sf_devops__Pipeline_Stages__r)
|
|
16
17
|
FROM sf_devops__Pipeline_Stage__c
|
|
17
18
|
WHERE sf_devops__Pipeline__r.sf_devops__Project__r.Name = '${projectName}'`;
|
|
18
|
-
const resp = await
|
|
19
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
19
20
|
return resp.records;
|
|
20
21
|
}
|
|
21
22
|
exports.selectPipelineStagesByProject = selectPipelineStagesByProject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelineStageSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/pipelineStageSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"pipelineStageSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/pipelineStageSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAE/C;;;GAGG;AACI,KAAK,UAAU,6BAA6B,CAAC,GAAe,EAAE,WAAmB;IACtF,MAAM,QAAQ,GAAG;;iFAE8D,WAAW,GAAG,CAAC;IAE9F,MAAM,IAAI,GAA+B,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC3E,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC;AAPD,sEAOC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023, salesforce.com, inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Licensed under the BSD 3-Clause license.
|
|
6
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.runSafeQuery = void 0;
|
|
10
|
+
const core_1 = require("@salesforce/core");
|
|
11
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
12
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
|
|
13
|
+
async function runSafeQuery(con, queryStr, allowNullResults = false) {
|
|
14
|
+
// Parameters verification
|
|
15
|
+
if (!con) {
|
|
16
|
+
throw messages.createError('error.connection-required');
|
|
17
|
+
}
|
|
18
|
+
if (typeof queryStr !== 'string' || queryStr.trim().length === 0) {
|
|
19
|
+
throw messages.createError('error.query-string-required');
|
|
20
|
+
}
|
|
21
|
+
// Run the query and verify for results
|
|
22
|
+
try {
|
|
23
|
+
// We query for 10000 results and we use autoFetch to queryMore automatically.
|
|
24
|
+
const result = await con.query(queryStr, { autoFetch: true, maxFetch: 10000 });
|
|
25
|
+
if ((result.totalSize > 0 && result.records) || (result.totalSize === 0 && allowNullResults)) {
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
throw messages.createError('error.query-failed', [error.name]);
|
|
31
|
+
}
|
|
32
|
+
// If we arrive here, it means the query has no results.
|
|
33
|
+
throw messages.createError('error.no-results-found');
|
|
34
|
+
}
|
|
35
|
+
exports.runSafeQuery = runSafeQuery;
|
|
36
|
+
//# sourceMappingURL=selectorUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectorUtils.js","sourceRoot":"","sources":["../../../src/common/selectors/selectorUtils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAAwD;AAGxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAEpF,KAAK,UAAU,YAAY,CAChC,GAAe,EACf,QAAgB,EAChB,gBAAgB,GAAG,KAAK;IAExB,0BAA0B;IAC1B,IAAI,CAAC,GAAG,EAAE;QACR,MAAM,QAAQ,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;KACzD;IACD,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;QAChE,MAAM,QAAQ,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAAC;KAC3D;IAED,uCAAuC;IACvC,IAAI;QACF,8EAA8E;QAC9E,MAAM,MAAM,GAAmB,MAAM,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAC/F,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,KAAK,CAAC,IAAI,gBAAgB,CAAC,EAAE;YAC5F,OAAO,MAAM,CAAC;SACf;KACF;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,QAAQ,CAAC,WAAW,CAAC,oBAAoB,EAAE,CAAE,KAAe,CAAC,IAAI,CAAC,CAAC,CAAC;KAC3E;IAED,wDAAwD;IACxD,MAAM,QAAQ,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;AACvD,CAAC;AA1BD,oCA0BC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectWorkItemsByChangeBundles = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
* Returns the work items included in the change bundles sent
|
|
12
13
|
*/
|
|
@@ -15,7 +16,7 @@ async function selectWorkItemsByChangeBundles(con, changeBundles) {
|
|
|
15
16
|
(SELECT Name FROM sf_devops__Work_Items__r)
|
|
16
17
|
FROM sf_devops__Change_Bundle__c
|
|
17
18
|
WHERE Id IN (${changeBundles.map((id) => "'" + id + "'").join(', ')})`;
|
|
18
|
-
const resp = await
|
|
19
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
19
20
|
return resp.records;
|
|
20
21
|
}
|
|
21
22
|
exports.selectWorkItemsByChangeBundles = selectWorkItemsByChangeBundles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workItemSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/workItemSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"workItemSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/workItemSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAQ/C;;GAEG;AACI,KAAK,UAAU,8BAA8B,CAClD,GAAe,EACf,aAAuB;IAEvB,MAAM,QAAQ,GAAG;;;mCAGgB,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IAEzF,MAAM,IAAI,GAAsC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAClF,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC;AAXD,wEAWC"}
|
package/lib/common/utils.js
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.getFormattedDeployComponentsByAyncOpId = exports.formatFieldName = exports.sObjectToArrayOfKeyValue = exports.matchesSfId = exports.containsSfId = exports.getAsyncOperationStreamer = exports.fetchAsyncOperationResult = exports.fetchAndValidatePipelineStage = exports.validateTestFlags = void 0;
|
|
10
10
|
const core_1 = require("@salesforce/core");
|
|
11
|
-
const ts_types_1 = require("@salesforce/ts-types");
|
|
12
11
|
const common_1 = require("../common");
|
|
13
12
|
const pipelineStageSelector_1 = require("../common/selectors/pipelineStageSelector");
|
|
14
13
|
const asyncOpStream_1 = require("../streamer/processors/asyncOpStream");
|
|
@@ -52,10 +51,10 @@ async function fetchAndValidatePipelineStage(targetOrg, projectName, branchName)
|
|
|
52
51
|
}
|
|
53
52
|
catch (err) {
|
|
54
53
|
const error = err;
|
|
55
|
-
if (error.
|
|
54
|
+
if (error.name === 'Query-failedError') {
|
|
56
55
|
throw messages.createError('error.DevopsAppNotInstalled');
|
|
57
56
|
}
|
|
58
|
-
throw
|
|
57
|
+
throw err;
|
|
59
58
|
}
|
|
60
59
|
if (!stages.length) {
|
|
61
60
|
throw messages.createError('error.ProjectNotFound', [projectName]);
|
|
@@ -75,7 +74,7 @@ async function fetchAsyncOperationResult(con, aorId) {
|
|
|
75
74
|
}
|
|
76
75
|
catch (err) {
|
|
77
76
|
const error = err;
|
|
78
|
-
if (error.name === '
|
|
77
|
+
if (error.name === 'No-results-foundError') {
|
|
79
78
|
throw messages.createError('error.InvalidAorId', [aorId]);
|
|
80
79
|
}
|
|
81
80
|
throw err;
|
package/lib/common/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/common/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/common/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAA6D;AAG7D,sCAAqD;AACrD,qFAA0F;AAC1F,wEAAoE;AACpE,6DAA0D;AAE1D,6FAA2F;AAE3F,mFAAyF;AAEzF,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAE3F;;;;;;GAMG;AACH,SAAgB,iBAAiB,CAAC,SAA8B,EAAE,KAAyB;IACzF,IAAI,SAAS,KAAK,kBAAS,CAAC,iBAAiB,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QAC3E,MAAM,QAAQ,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;KACtD;SAAM,IAAI,SAAS,KAAK,kBAAS,CAAC,iBAAiB,IAAI,KAAK,EAAE;QAC7D,MAAM,QAAQ,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;KACrD;AACH,CAAC;AAND,8CAMC;AAED;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,6BAA6B,CACjD,SAAc,EACd,WAAmB,EACnB,UAAkB;IAElB,IAAI,MAAuB,CAAC;IAC5B,IAAI;QACF,MAAM,GAAG,MAAM,IAAA,qDAA6B,EAAC,SAAS,CAAC,aAAa,EAAE,EAAE,WAAW,CAAC,CAAC;KACtF;IAAC,OAAO,GAAG,EAAE;QACZ,MAAM,KAAK,GAAG,GAAY,CAAC;QAC3B,IAAI,KAAK,CAAC,IAAI,KAAK,mBAAmB,EAAE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,OAAO,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,eAAe,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,KAAkC,EAAE,CAAC,CAAC;aAC7F;SACF;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,UAAU,CAAC,CAAC;AACjB,CAAC;AAdD,4DAcC;AAED;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,SAAiB;IAC/C,OAAO,SAAS,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AAClF,CAAC;AAFD,0CAEC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,sCAAsC,CAC1D,GAAe,EACf,SAAiB;IAEjB,MAAM,UAAU,GAAsB,MAAM,IAAA,4DAAiC,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAE9F,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;QAC/B,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACxE,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;IAEH,OAAO,UAAU,CAAC;AACpB,CAAC;AAZD,wFAYC"}
|
package/lib/configMeta.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ConfigValue } from '@salesforce/core';
|
|
1
2
|
export declare enum ConfigVars {
|
|
2
3
|
TARGET_DEVOPS_CENTER = "target-devops-center"
|
|
3
4
|
}
|
|
@@ -9,5 +10,9 @@ declare const _default: {
|
|
|
9
10
|
key: ConfigVars;
|
|
10
11
|
description: string;
|
|
11
12
|
hidden: boolean;
|
|
13
|
+
input: {
|
|
14
|
+
validator: (value: ConfigValue) => boolean;
|
|
15
|
+
failedMessage: (value: ConfigValue) => string;
|
|
16
|
+
};
|
|
12
17
|
}[];
|
|
13
18
|
export default _default;
|
package/lib/configMeta.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ConfigVars = void 0;
|
|
10
|
+
const child_process_1 = require("child_process");
|
|
10
11
|
const core_1 = require("@salesforce/core");
|
|
11
12
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
12
13
|
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'config');
|
|
@@ -23,6 +24,13 @@ exports.default = [
|
|
|
23
24
|
key: ConfigVars.TARGET_DEVOPS_CENTER,
|
|
24
25
|
description: messages.getMessage(ConfigVars.TARGET_DEVOPS_CENTER),
|
|
25
26
|
hidden: false,
|
|
27
|
+
input: {
|
|
28
|
+
validator: (value) => {
|
|
29
|
+
const result = (0, child_process_1.spawnSync)('sf', ['force:org:display', '-u', value]);
|
|
30
|
+
return result.status === 0;
|
|
31
|
+
},
|
|
32
|
+
failedMessage: (value) => messages.getMessage('error.OrgNotAuthenticated', [value]),
|
|
33
|
+
},
|
|
26
34
|
},
|
|
27
35
|
];
|
|
28
36
|
//# sourceMappingURL=configMeta.js.map
|
package/lib/configMeta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configMeta.js","sourceRoot":"","sources":["../src/configMeta.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"configMeta.js","sourceRoot":"","sources":["../src/configMeta.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iDAA0C;AAC1C,2CAAyD;AAEzD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,QAAQ,CAAC,CAAC;AAErF,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,2DAA6C,CAAA;AAC/C,CAAC,EAFW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAErB;AAED;;;GAGG;AACH,kBAAe;IACb;QACE,GAAG,EAAE,UAAU,CAAC,oBAAoB;QACpC,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,oBAAoB,CAAC;QACjE,MAAM,EAAE,KAAK;QACb,KAAK,EAAE;YACL,SAAS,EAAE,CAAC,KAAkB,EAAW,EAAE;gBACzC,MAAM,MAAM,GAAG,IAAA,yBAAS,EAAC,IAAI,EAAE,CAAC,mBAAmB,EAAE,IAAI,EAAE,KAAe,CAAC,CAAC,CAAC;gBAC7E,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC;YAC7B,CAAC;YACD,aAAa,EAAE,CAAC,KAAkB,EAAU,EAAE,CAC5C,QAAQ,CAAC,UAAU,CAAC,2BAA2B,EAAE,CAAC,KAAe,CAAC,CAAC;SACtE;KACF;CACF,CAAC"}
|
package/messages/commonErrors.md
CHANGED
|
@@ -29,3 +29,19 @@ Job ID %s is not resumable with status %s.
|
|
|
29
29
|
# error.ClientTimeout
|
|
30
30
|
|
|
31
31
|
The command has timed out, although it's still running. To check the status of the current operation, run "%s %s report".
|
|
32
|
+
|
|
33
|
+
# error.no-results-found
|
|
34
|
+
|
|
35
|
+
No results found
|
|
36
|
+
|
|
37
|
+
# error.query-failed
|
|
38
|
+
|
|
39
|
+
Query failed: %s
|
|
40
|
+
|
|
41
|
+
# error.connection-required
|
|
42
|
+
|
|
43
|
+
Connection is required
|
|
44
|
+
|
|
45
|
+
# error.query-string-required
|
|
46
|
+
|
|
47
|
+
Query string is required and must be a non-empty string
|
package/messages/config.md
CHANGED
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-devops-center",
|
|
3
3
|
"description": "The DevOps Center CLI plugin provides a command-line alternative to performing equivalent actions in the DevOps Center graphical UI",
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.3",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@oclif/core": "^2.4.0",
|
|
9
|
-
"@salesforce/core": "^3.
|
|
9
|
+
"@salesforce/core": "^3.34.1",
|
|
10
10
|
"@salesforce/kit": "^1.8.2",
|
|
11
11
|
"@salesforce/sf-plugins-core": "^2.2.4",
|
|
12
12
|
"tslib": "^2"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@oclif/plugin-command-snapshot": "^3.3.
|
|
15
|
+
"@oclif/plugin-command-snapshot": "^3.3.9",
|
|
16
16
|
"@oclif/test": "^2.3.7",
|
|
17
17
|
"@salesforce/cli-plugins-testkit": "^3.2.25",
|
|
18
18
|
"@salesforce/dev-config": "^3.1.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"eslint-plugin-header": "^3.0.0",
|
|
34
34
|
"eslint-plugin-import": "2.27.5",
|
|
35
35
|
"eslint-plugin-jsdoc": "^39.6.4",
|
|
36
|
-
"eslint-plugin-sf-plugin": "^1.
|
|
36
|
+
"eslint-plugin-sf-plugin": "^1.14.0",
|
|
37
37
|
"husky": "^7.0.4",
|
|
38
38
|
"mocha": "^9.2.2",
|
|
39
39
|
"nyc": "^15.1.0",
|