Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow selection of multiple files/folders on Deploy/Retrieve source #1228

Closed
ddodson3 opened this issue Apr 3, 2019 · 10 comments
Closed

Allow selection of multiple files/folders on Deploy/Retrieve source #1228

ddodson3 opened this issue Apr 3, 2019 · 10 comments

Comments

@ddodson3
Copy link

ddodson3 commented Apr 3, 2019

Summary

If I select multiple files and right click>Deploy Source to org or Retrieve source from org, it only deploys the file that I right clicked on and not all files that were selected.

The command output shows only one file that it is trying to source:deploy, so I think it is possibly an extension issue.

Steps To Reproduce:

  1. Connect to sandbox
  2. Select two files using control click or shift click
  3. Right click and select "deploy source to org" or "retrieve source from org"

Expected result

Both files are deployed/retrieved

Actual result

Only the file that is right clicked on is retrieved

Additional information

It seems like there is a multiple file command for at least the deploy part (sfdx.force.source.deploy.multiple.source.paths) but it isn't mapped to a right click action

VS Code Version: 1.32.3
SFDX CLI Version: 7.1.4-79f97a7df8
OS and version: Windows 10 1803

@ntotten ntotten added the type:feedback Feedback for new features label Apr 5, 2019
@ntotten
Copy link
Contributor

ntotten commented Apr 5, 2019

Related to #862

@nomrik
Copy link

nomrik commented Nov 27, 2019

@ntotten Is there any update on that? I looked in #862 and it doesn't seem to be resolving this issue, which is critical in situations of multiple dependencies between components.

@jflowers45
Copy link

I would like to add my voice to those requesting this feature. It's very confusing from a usability perspective that only the right-clicked file is deployed.

@smaddox-sf
Copy link
Contributor

Hi @jflowers45 - Thanks for weighing in. The way we're thinking about solving this is to provide a way to select multiple metadata types or files and generate a manifest from the Org Browser. This would then allow you to retrieve or deploy with that assortment of items at any time - no need to carefully right-click on them all each time. (This is a similar concept to the 'working set' that Nate described in #862). This is a roadmap item and I'd welcome any other feedback on the tentatively-planned approach.

@msrivastav13
Copy link

@smaddox-sf that would be awesome! It would be more awesome if this is taken care at the CLI via a command where one can pass in all the metadata elements and metadata type.

This way this functionality won’t be tied to this extension pack and org browser only!

Salesforce CLI retrieve command by metadata is great but gets verbose and repetitive as soon as we have more number of components and metadata types.

@infallibletechie
Copy link

This is a must feature. With Eclipse IDE and Force.com plugin, we were able to achieve this.
As a workaround, I am adding the components to a new project and deploying the whole project. This might not work for all.

@acmegx
Copy link

acmegx commented Sep 4, 2021

any update on this issue / feature request? Conscious that this has been raised almost 2.5 years ago...

@smaddox-sf
Copy link
Contributor

Hi @acmegx - We're researching this feature to see if a VS Code bug that was stopping us has been resolved. If it has, we'll be able to deliver this feature.

@randi274
Copy link
Contributor

randi274 commented Oct 4, 2022

Hello! I noticed this open issue today, and recalled that it was actually delivered last fall with #3621 - give it a try and let us know what you think!

@adamc-skedulo
Copy link

Just tried this - and it works as expected! This will be very helpful.

But, I didn't find this ticket until I'd finished deploying a load of files.
The solution I used was to make a new package xml file in the manifest folder, with just the files to deploy, so the file can be right clicked and 'Deploy files in Manifest' used.
While it takes longer to create, it's useful when there are lots of files across different folders, where Ctrl clicking can get a bit unreliable (if one file is clicked without Ctrl/Cmd...) and it's repeatable. It could also be used while working on a ticket/project - add a new file to the XML each time you save a new file, and the whole project can be redeployed quite easily.

Hope this is useful to anyone who finds this ticket!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants