Skip to content

feat: W-18337792 - org display command does not rely on CLI but on core library #6395

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

Merged
merged 8 commits into from
Jul 7, 2025

Conversation

CristiCanizales
Copy link
Contributor

@CristiCanizales CristiCanizales commented Jul 2, 2025

What does this PR do?

This pull request introduces significant improvements to the Salesforce DX utilities and Apex Debugger modules, focusing on replacing CLI-based org information retrieval with a more robust approach using the Salesforce Core library. It also includes code refactoring, bug fixes, and enhancements to unit tests.

Refactoring and Core Library Integration:

  • Replaced CLI-based org information retrieval in OrgDisplay with a new implementation using the @salesforce/core-bundle library. This includes methods for retrieving org details, handling scratch orgs, and detecting connection status. ([1], [2], [3], [4])
  • Added new types (OrgQueryResult, ScratchOrgQueryResult, ScratchOrgInfo) to support the enhanced org information retrieval. (packages/salesforcedx-utils/src/types/orgInfo.tsR20-R52)

Bug Fixes and Code Improvements:

Unit Test Enhancements:

Dependency Updates:

What issues does this PR fix or reference?

@W-18337792@

@CristiCanizales CristiCanizales self-assigned this Jul 2, 2025
@CristiCanizales CristiCanizales requested a review from a team as a code owner July 2, 2025 23:07
@CristiCanizales CristiCanizales requested a review from diyer July 2, 2025 23:07
@CristiCanizales CristiCanizales requested review from mshanemc, kylewalke, peternhale, daphne-sfdc and madhur310 and removed request for diyer July 3, 2025 20:10
@mshanemc
Copy link
Contributor

mshanemc commented Jul 7, 2025

QA notes

Starting SFDX: Display Org Details for Default Org
✅ looks right (target was a newly created scratch org)

SFDX: Display Org Details... (and then pick a dev hub)
✅ correct information displayed
❌ notification and output say Display Org Details for Default Org but that's wrong
[fix via PR https://github.com//pull/6402]

turn on replay debugger
deploy dreamhouse to scratch org
run tests to generate some logs
view logs
run debugger
✅ seems fine

@mshanemc mshanemc merged commit f178f8f into develop Jul 7, 2025
8 checks passed
@mshanemc mshanemc deleted the cristi/orgDisplay branch July 7, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants