Skip to content

Commit

Permalink
feat: display validated-async in version list and report
Browse files Browse the repository at this point in the history
  • Loading branch information
mradulsf committed Jun 21, 2024
1 parent 2a3f8c7 commit 6a72e0e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions messages/package_version_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ Code Coverage Met

Validation Skipped

# validatedAsync

Validated Async

# releaseVersion

Release Version
Expand Down
3 changes: 3 additions & 0 deletions schemas/package-version-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
"ValidationSkipped": {
"type": "boolean"
},
"ValidatedAsync": {
"type": "boolean"
},
"ConvertedFromVersionId": {
"type": "string"
},
Expand Down
3 changes: 3 additions & 0 deletions src/commands/package/version/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export type PackageVersionListDetails = Omit<
Alias: string;
IsOrgDependent: 'N/A' | 'Yes' | 'No';
CreatedBy: string;
ValidatedAsync: boolean;
};

export type PackageVersionListCommandResult = PackageVersionListDetails[];
Expand Down Expand Up @@ -194,6 +195,7 @@ export class PackageVersionListCommand extends SfCommand<PackageVersionListComma
CodeCoverage: codeCoverage,
HasPassedCodeCoverageCheck: hasPassedCodeCoverageCheck as string | boolean,
ValidationSkipped: record.ValidationSkipped,
ValidatedAsync: record.ValidatedAsync == null ?? false,
AncestorId: record.AncestorId,
AncestorVersion: ancestorVersion as string,
Alias: AliasStr,
Expand Down Expand Up @@ -244,6 +246,7 @@ const getColumnData = (
IsPasswordProtected: { header: messages.getMessage('installKey') },
IsReleased: { header: 'Released' },
ValidationSkipped: { header: messages.getMessage('validationSkipped') },
ValidatedAsync: { header: messages.getMessage('validatedAsync') },
AncestorId: { header: 'Ancestor' },
AncestorVersion: { header: 'Ancestor Version' },
Branch: { header: messages.getMessage('packageBranch') },
Expand Down
4 changes: 4 additions & 0 deletions src/commands/package/version/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ export class PackageVersionReportCommand extends SfCommand<PackageVersionReportR
key: pvlMessages.getMessage('validationSkipped'),
value: record.ValidationSkipped,
},
{
key: pvlMessages.getMessage('validatedAsync'),
value: record.ValidatedAsync == null ?? null,
},
{ key: messages.getMessage('ancestorId'), value: record.AncestorId },
{ key: messages.getMessage('ancestorVersion'), value: record.AncestorVersion },
{
Expand Down

0 comments on commit 6a72e0e

Please sign in to comment.