Skip to content

Commit 541680e

Browse files
authored
Merge pull request #1084 from salesforcecli/btrn11/bundle-install-list-missing-bundle-version-id
@W-20177615@ Fix package bundle version id not showing bundle install list (plugin)
2 parents e69155f + 6b5e8e7 commit 541680e

File tree

11 files changed

+368
-790
lines changed

11 files changed

+368
-790
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@oclif/core": "^4",
99
"@salesforce/core": "^8.23.4",
1010
"@salesforce/kit": "^3.2.4",
11-
"@salesforce/packaging": "^4.18.0",
11+
"@salesforce/packaging": "^4.18.1",
1212
"@salesforce/sf-plugins-core": "^12.2.5",
1313
"chalk": "^5.6.2"
1414
},

schemas/package-bundle-install-list.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"type": "string"
3434
}
3535
},
36-
"PackageBundleVersionID": {
36+
"PackageBundleVersionId": {
3737
"type": "string"
3838
},
3939
"DevelopmentOrganization": {
@@ -46,7 +46,7 @@
4646
"DevelopmentOrganization",
4747
"Id",
4848
"InstallStatus",
49-
"PackageBundleVersionID",
49+
"PackageBundleVersionId",
5050
"ValidationError"
5151
]
5252
},

schemas/package-bundle-install-report.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"type": "string"
3434
}
3535
},
36-
"PackageBundleVersionID": {
36+
"PackageBundleVersionId": {
3737
"type": "string"
3838
},
3939
"DevelopmentOrganization": {
@@ -46,7 +46,7 @@
4646
"DevelopmentOrganization",
4747
"Id",
4848
"InstallStatus",
49-
"PackageBundleVersionID",
49+
"PackageBundleVersionId",
5050
"ValidationError"
5151
]
5252
},

schemas/package-bundle-install.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"type": "string"
2828
}
2929
},
30-
"PackageBundleVersionID": {
30+
"PackageBundleVersionId": {
3131
"type": "string"
3232
},
3333
"DevelopmentOrganization": {
@@ -40,7 +40,7 @@
4040
"DevelopmentOrganization",
4141
"Id",
4242
"InstallStatus",
43-
"PackageBundleVersionID",
43+
"PackageBundleVersionId",
4444
"ValidationError"
4545
]
4646
},

src/commands/package/bundle/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class PackageBundlesInstall extends SfCommand<BundleSObjects.PkgBundleVer
134134
throw messages.createError('bundleInstallError', [errorText]);
135135
}
136136
case BundleSObjects.PkgBundleVersionInstallReqStatus.success: {
137-
const bundleVersionId = result.PackageBundleVersionID || flags.bundle;
137+
const bundleVersionId = result.PackageBundleVersionId || flags.bundle;
138138
this.log(`Successfully installed bundle version ${bundleVersionId} to ${targetOrg.getUsername() ?? 'target org'}`);
139139
break;
140140
}

src/commands/package/bundle/install/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class PackageBundleInstallListCommand extends SfCommand<PackageBundleInst
7878
const data = results.map((r) => ({
7979
Id: r.Id ?? 'N/A',
8080
Status: r.InstallStatus ?? 'Unknown',
81-
'Package Bundle Version Id': r.PackageBundleVersionID ?? 'N/A',
81+
'Package Bundle Version Id': r.PackageBundleVersionId ?? 'N/A',
8282
'Development Organization': r.DevelopmentOrganization ?? 'N/A',
8383
'Created Date': r.CreatedDate ?? 'N/A',
8484
'Created By': r.CreatedById ?? 'N/A',

src/commands/package/bundle/install/report.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class PackageBundleInstallReportCommand extends SfCommand<ReportCommandRe
7676
},
7777
{
7878
name: messages.getMessage('package-bundle-version-id'),
79-
value: record.PackageBundleVersionID || 'N/A',
79+
value: record.PackageBundleVersionId || 'N/A',
8080
},
8181
{
8282
name: messages.getMessage('development-organization'),

test/commands/bundle/bundleInstall.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { PackageBundlesInstall } from '../../../src/commands/package/bundle/inst
2424
const pkgBundleInstallErrorResult: BundleSObjects.PkgBundleVersionInstallReqResult = {
2525
Id: '08c3i000000fylXXXX',
2626
InstallStatus: BundleSObjects.PkgBundleVersionInstallReqStatus.error,
27-
PackageBundleVersionID: '1Q83i000000fxw1AAA',
27+
PackageBundleVersionId: '1Q83i000000fxw1AAA',
2828
DevelopmentOrganization: '00D3i000000TNHXXXX',
2929
ValidationError: 'Installation failed due to validation errors',
3030
CreatedDate: '2022-11-03 09:21',
@@ -38,7 +38,7 @@ const pkgBundleInstallErrorResult: BundleSObjects.PkgBundleVersionInstallReqResu
3838
const pkgBundleInstallSuccessResult: BundleSObjects.PkgBundleVersionInstallReqResult = {
3939
Id: '08c3i000000fylgAAA',
4040
InstallStatus: BundleSObjects.PkgBundleVersionInstallReqStatus.success,
41-
PackageBundleVersionID: '1Q83i000000fxw1AAA',
41+
PackageBundleVersionId: '1Q83i000000fxw1AAA',
4242
DevelopmentOrganization: '00D3i000000TNHYCA4',
4343
ValidationError: '',
4444
CreatedDate: '2022-11-03 09:46',
@@ -49,7 +49,7 @@ const pkgBundleInstallSuccessResult: BundleSObjects.PkgBundleVersionInstallReqRe
4949
const pkgBundleInstallQueuedResult: BundleSObjects.PkgBundleVersionInstallReqResult = {
5050
Id: '08c3i000000fylgBBB',
5151
InstallStatus: BundleSObjects.PkgBundleVersionInstallReqStatus.queued,
52-
PackageBundleVersionID: '1Q83i000000fxw1AAA',
52+
PackageBundleVersionId: '1Q83i000000fxw1AAA',
5353
DevelopmentOrganization: '00D3i000000TNHYCA4',
5454
ValidationError: '',
5555
CreatedDate: '2022-11-03 10:00',
@@ -100,7 +100,7 @@ describe('package:bundle:install - tests', () => {
100100
expect(res).to.deep.equal({
101101
Id: '08c3i000000fylgAAA',
102102
InstallStatus: 'Success',
103-
PackageBundleVersionID: '1Q83i000000fxw1AAA',
103+
PackageBundleVersionId: '1Q83i000000fxw1AAA',
104104
DevelopmentOrganization: '00D3i000000TNHYCA4',
105105
ValidationError: '',
106106
CreatedDate: '2022-11-03 09:46',
@@ -125,7 +125,7 @@ describe('package:bundle:install - tests', () => {
125125
expect(res).to.deep.equal({
126126
Id: '08c3i000000fylgAAA',
127127
InstallStatus: 'Success',
128-
PackageBundleVersionID: '1Q83i000000fxw1AAA',
128+
PackageBundleVersionId: '1Q83i000000fxw1AAA',
129129
DevelopmentOrganization: '00D3i000000TNHYCA4',
130130
ValidationError: '',
131131
CreatedDate: '2022-11-03 09:46',
@@ -151,7 +151,7 @@ describe('package:bundle:install - tests', () => {
151151
expect(res).to.deep.equal({
152152
Id: '08c3i000000fylgAAA',
153153
InstallStatus: 'Success',
154-
PackageBundleVersionID: '1Q83i000000fxw1AAA',
154+
PackageBundleVersionId: '1Q83i000000fxw1AAA',
155155
DevelopmentOrganization: '00D3i000000TNHYCA4',
156156
ValidationError: '',
157157
CreatedDate: '2022-11-03 09:46',
@@ -176,7 +176,7 @@ describe('package:bundle:install - tests', () => {
176176
expect(res).to.deep.equal({
177177
Id: '08c3i000000fylgBBB',
178178
InstallStatus: 'Queued',
179-
PackageBundleVersionID: '1Q83i000000fxw1AAA',
179+
PackageBundleVersionId: '1Q83i000000fxw1AAA',
180180
DevelopmentOrganization: '00D3i000000TNHYCA4',
181181
ValidationError: '',
182182
CreatedDate: '2022-11-03 10:00',

test/commands/bundle/bundleInstallList.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('package:bundle:install:list - tests', () => {
4747
{
4848
Id: 'test-id-1',
4949
InstallStatus: BundleSObjects.PkgBundleVersionInstallReqStatus.success,
50-
PackageBundleVersionID: 'bundle-version-id-1',
50+
PackageBundleVersionId: 'bundle-version-id-1',
5151
DevelopmentOrganization: 'dev-org-1',
5252
CreatedDate: '2023-01-01T00:00:00Z',
5353
CreatedById: 'user-id-1',
@@ -85,7 +85,7 @@ describe('package:bundle:install:list - tests', () => {
8585
{
8686
Id: 'test-id-1',
8787
InstallStatus: BundleSObjects.PkgBundleVersionInstallReqStatus.error,
88-
PackageBundleVersionID: 'bundle-version-id-1',
88+
PackageBundleVersionId: 'bundle-version-id-1',
8989
DevelopmentOrganization: 'dev-org-1',
9090
CreatedDate: '2023-01-01T00:00:00Z',
9191
CreatedById: 'user-id-1',

test/commands/bundle/bundleInstallReport.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('package:bundle:install:report - tests', () => {
4545
const mockResult: BundleSObjects.PkgBundleVersionInstallReqResult = {
4646
Id: requestId,
4747
InstallStatus: BundleSObjects.PkgBundleVersionInstallReqStatus.queued,
48-
PackageBundleVersionID: '0Ho0x0000000000001',
48+
PackageBundleVersionId: '0Ho0x0000000000001',
4949
DevelopmentOrganization: '[email protected]',
5050
ValidationError: '',
5151
CreatedDate: '2025-01-01T00:00:00.000+0000',
@@ -73,7 +73,7 @@ describe('package:bundle:install:report - tests', () => {
7373
const mockResult: BundleSObjects.PkgBundleVersionInstallReqResult = {
7474
Id: requestId,
7575
InstallStatus: BundleSObjects.PkgBundleVersionInstallReqStatus.success,
76-
PackageBundleVersionID: '0Ho0x0000000000001',
76+
PackageBundleVersionId: '0Ho0x0000000000001',
7777
DevelopmentOrganization: '[email protected]',
7878
ValidationError: '',
7979
CreatedDate: '2025-01-01T00:00:00.000+0000',

0 commit comments

Comments
 (0)