-
Notifications
You must be signed in to change notification settings - Fork 405
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
Add 'SFDX: Deploy Source to Org' command #531
Conversation
Adds a new 'SFDX: Deploy Source to Org' command that deploys source for a given manifest file or source path in the workspace
@@ -345,6 +351,14 @@ export async function activate(context: vscode.ExtensionContext) { | |||
sfdxProjectOpened = files && files.length > 0; | |||
} | |||
|
|||
let isChangeSetWorkspace = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding an additional check that is used to restrict exposing the source retrieve and deploy commands to change-set-based projects only.
Hi @ntotten, I have a few questions for you regarding this pr:
Is it alright that I am using the presence of the
|
Codecov Report
@@ Coverage Diff @@
## develop #531 +/- ##
===========================================
+ Coverage 75.89% 75.91% +0.02%
===========================================
Files 146 147 +1
Lines 5758 5772 +14
Branches 900 901 +1
===========================================
+ Hits 4370 4382 +12
- Misses 1160 1162 +2
Partials 228 228
Continue to review full report at Codecov.
|
@allileong For number 1, I am a bit concerned about this one. I wonder if it might be better to just explicitly set the flag in say Purhaps we should change sfdx json to be the following: {
"packageDirectories": [
{
"path": "force-app",
"default": true,
"changeset": true
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "42.0"
} If we made this change we could do some additional validation to ensure that if you are doing changeset dev only 1 "package" folder can exist. This of course would require code change in the CLI. |
For number 2, I think this command would be useful outside of changeset dev too. You may just want to run a soql query or something. For number 3, I agree. This isnt a blocker right now, but we should track this an figure out a resolution later. Maybe we should put an app insights event to track how many times cancel happens to asses priority of the fix. |
@ntotten, thanks for the feedback. To clarify, for number 1:
Does that capture everything? |
Removing the check for |
* Add 'SFDX: Deploy Source to Org' command Adds a new 'SFDX: Deploy Source to Org' command that deploys source for a given manifest file or source path in the workspace * Add fileSystemWatcher for 'manifest' dir * Remove isChangeSetsWorkspace check * Remove unused import @W-5070947@
What does this PR do?
Adds a new 'SFDX: Deploy Source to Org' command that deploys source for a given
manifest file or source path in the workspace
Hides the source deploy and retrieve commands behind an additional check that the user is in a change-set-based project
What issues does this PR fix or reference?
@W-5070947@