Skip to content

Commit

Permalink
Merge pull request #967 from ashitsalesforce/master
Browse files Browse the repository at this point in the history
make "keep account team" and "use bulk API" mutually exclusive
  • Loading branch information
ashitsalesforce authored Feb 7, 2024
2 parents 197ec4a + 4f4e460 commit f98b2be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ public void widgetSelected(SelectionEvent e) {
super.widgetSelected(e);
boolean enabled = buttonKeepAccountTeam.getSelection();
// make sure the appropriate check boxes are enabled or disabled
buttonUseBulkApi.setSelection(!enabled);
setBulkSettings(!enabled);
}
});
Expand All @@ -551,8 +552,10 @@ public void widgetSelected(SelectionEvent e) {
textBatch.setText(String.valueOf(newDefaultBatchSize));
// make sure the appropriate check boxes are enabled or disabled
setBulkSettings(enabled);
buttonKeepAccountTeam.setSelection(!enabled);
}
});
buttonKeepAccountTeam.setSelection(!buttonUseBulkApi.getSelection());

// Bulk API serial concurrency mode setting
Label labelBulkApiSerialMode = new Label(restComp, SWT.RIGHT | SWT.WRAP);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ private void retryBrowserLoginWithDefaultURL(Config config, boolean skipUserCode
startBrowserLogin(config, skipUserCodePage);
}

// Browser login uses OAuth 2.0 Device Flow - https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_device_flow.htm&type=5
private void startBrowserLogin(Config config, boolean skipUserCodePage) throws IOException, ParameterLoadException, OAuthBrowserLoginRunnerException {
setLoginStatus(LoginStatus.WAIT);
this.config = config;
Expand Down

0 comments on commit f98b2be

Please sign in to comment.