You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pushing sequential packages doesn't show the name of a package currently being deployed #1731
Is your feature request related to a problem? Please describe.
Deploying a large number of packages can take a long time. Using pushPackageDirectoriesSequentially set to true makes all packages to be deployed one by one. When we have more than 40 packages inside sfdx-project.json, it's easy to get lost which package is currently being deployed.
What are you trying to do
I would like to see the name of a package currently being deployed.
Describe the solution you'd like
Instead of seeing the following console output:
*** Pushing with SOAP API v54.0 ***
DEPLOY PROGRESS | ████████████████████████████████████████ | 251/251 Components
*** Pushing with SOAP API v54.0 ***
DEPLOY PROGRESS | ████████████████████████████████████████ | 3453/3453 Components
*** Pushing with SOAP API v54.0 ***
DEPLOY PROGRESS | ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0/2345 Components
I would like to see this for example:
*** Pushing pkg-x with SOAP API v54.0 ***
DEPLOY PROGRESS | ████████████████████████████████████████ | 251/251 Components
*** Pushing pkg-y with SOAP API v54.0 ***
DEPLOY PROGRESS | ████████████████████████████████████████ | 3453/3453 Components
*** Pushing pkg-z with SOAP API v54.0 ***
DEPLOY PROGRESS | ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0/2345 Components
Describe alternatives you've considered
I can only wait & count packages, which one is currently deployed, and compare it with order in a sfdx-project.json file.
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments.
Activity
github-actions commentedon Sep 29, 2022
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments.
git2gus commentedon Sep 29, 2022
This issue has been linked to a new work item: W-11831731
cristiand391 commentedon Nov 10, 2022
Marking this as
help wantedin case you or anyone else wants to add this feature.How I see this should work:
1st scenario: no
pushPackageDirectoriesSequentiallydefined, only one pkg:nothing changes, you know there's only one pkg to deploy.
2nd scenario:
pushPackageDirectoriesSequentiallyis set to true, multiple pkg will be deployed:the output should look like what @pznmc suggest so it's clear to the user which pkg is being deployed:
technical details
There's a variable in
force:source:pushto detect if it's doing a sequential deploy, use it to detect which msg to render:https://github.com/salesforcecli/plugin-source/blob/main/src/commands/force/source/push.ts#L80
you'll need to update the
getVersionMessagefunc to accept a pkg name (string) as an argument and return the correct msg:https://github.com/salesforcecli/plugin-source/blob/main/src/commands/force/source/push.ts#L108
https://github.com/salesforcecli/plugin-source/blob/main/src/deployCommand.ts#L234
Also use
this.project.getSfProjectJson().getUniquePackageNames()to get the pkg names in the order they are defined.The library that deploys the source returns a "Component Set` of metadata per pkg, the order of the component sets returned will be the same as you have pkgs defined in the project so you can rely on that to assign the each pkg name to a component set here
https://github.com/salesforcecli/plugin-source/blob/main/src/commands/force/source/push.ts#L90
1st
componentSetcorresponds to the 1st pkg returned bygetUniquePackageNames(), etc.feel free to post here if you have any questions.