Skip to content

Commit

Permalink
Merge pull request #709 from forcedotcom/btrn/1-15
Browse files Browse the repository at this point in the history
feat: add package version name and version to pu list command
  • Loading branch information
btrn11 authored Jan 15, 2025
2 parents 3facbc7 + a69641d commit e52ff0c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/interfaces/packagingInterfacesAndType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,18 @@ export type PackagePushRequestListQueryOptions = {
export type PackagePushRequestListResult = {
Id: string;
PackageVersionId: string;
PackageVersion: {
Name: string;
MajorVersion: string;
MinorVersion: string;
};
Status: string;
ScheduledDateTime: string;
ScheduledStartTime: string;
StartTime: string;
EndTime: string;
NumOrgsScheduled: number;
NumOrgsUpgradedSuccess: number;
NumOrgsUpgradedFail: number;
OrgsScheduled: number;
OrgsUpgradeSucceeded: number;
OrgsUpgradeFailed: number;
};

export type PackagePushScheduleQueryOptions = {
Expand Down
5 changes: 4 additions & 1 deletion src/package/packagePushUpgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ function constructWhereList(options?: PackagePushRequestListQueryOptions): strin

function getListQuery(): string {
// WHERE, if applicable
return 'SELECT Id, PackageVersionId, Status, ScheduledStartTime, StartTime, EndTime FROM PackagePushRequest ' + '%s';
return (
'SELECT Id, PackageVersionId, PackageVersion.Name, PackageVersion.MajorVersion, PackageVersion.MinorVersion, Status, ScheduledStartTime, StartTime, EndTime FROM PackagePushRequest ' +
'%s'
);
}

async function queryReport(
Expand Down

0 comments on commit e52ff0c

Please sign in to comment.