Skip to content

Update src from private repository for v65 release#1659

Merged
xinyaochen-sudo merged 3 commits into
forcedotcom:masterfrom
xinyaochen-sudo:merge-src-from-private
May 20, 2026
Merged

Update src from private repository for v65 release#1659
xinyaochen-sudo merged 3 commits into
forcedotcom:masterfrom
xinyaochen-sudo:merge-src-from-private

Conversation

@xinyaochen-sudo
Copy link
Copy Markdown
Collaborator

Summary

  • Sync source code from private GitSoma repository (enterprise-api/updated-dataloader) to public GitHub
  • Refactor ClientBase.getClientName() to support External Client App (ECA) configurations — omits UI/Batch suffix when ECA is configured
  • Fix OAuthFlowHandler batch mode crash by guarding Display.getDefault() calls with AppUtil.isRunningInBatchMode() check
  • Rename getClientIDForCurrentEnv() to getEffectiveClientIdForCurrentEnv() in LoginClient and HttpTransportImpl
  • Add unit tests for ClientBase.getClientName() and OAuthFlowHandler batch mode behavior

Test plan

  • Verify DataLoader UI mode login works correctly
  • Verify DataLoader batch mode login works correctly (no SWT crash)
  • Verify ECA-configured client name does not include UI/Batch suffix
  • Run unit tests: ClientBaseGetClientNameTest and OAuthFlowHandlerTest

- Refactor ClientBase.getClientName() to support External Client App (ECA) configurations
- Fix OAuthFlowHandler batch mode crash by guarding Display.getDefault() calls
- Add AppUtil.isRunningInBatchMode() utility method
- Rename getClientIDForCurrentEnv() to getEffectiveClientIdForCurrentEnv()
- Add unit tests for ClientBase and OAuthFlowHandler
@salesforce-cla
Copy link
Copy Markdown

Thanks for the contribution! It looks like @xinyaochen-sudo is an internal user so signing the CLA is not required. However, we need to confirm this.

@xinyaochen-sudo xinyaochen-sudo merged commit dba7df7 into forcedotcom:master May 20, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants