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

sf org sandbox resume --json needs to return sufficient information to log in #2879

Closed
shetzel opened this issue May 21, 2024 Discussed in #2877 · 2 comments
Closed

sf org sandbox resume --json needs to return sufficient information to log in #2879

shetzel opened this issue May 21, 2024 Discussed in #2877 · 2 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@shetzel
Copy link
Contributor

shetzel commented May 21, 2024

Discussed in #2877

Originally posted by RupertBarrow May 21, 2024
The information returned by sf org sandbox resume and sf org sandbox resume --json are not consistent :

% sf org sandbox resume --name INT -o xxx

=== Sandbox Org Create/Refresh Status

 Field         Value                        
 ───────────── ──────────────────────────── 
 Id            xxx           
 SandboxName   INT                          
 Status        Completed                    
 LicenseType   DEVELOPER                    
 SandboxInfoId xxx           
 Created Date  2024-05-20T17:43:43.000+0000 
 CopyProgress  100%                         
 SandboxOrg    xxx              
 Description   xxx   
---------------------
Sandbox Create/Refresh Stages
✓ - Pending
✓ - Processing
✓ - Activating
✓ - Authenticating
The sandbox org create/refresh was successful.
The username for the sandbox is [email protected].
You can open the org by running "sf org open -o [email protected]"

whereas

% sf org sandbox resume --name INT -o xxx --json
{
  "status": 0,
  "result": {
    "attributes": {
      "type": "SandboxProcess",
      "url": "/services/data/v60.0/tooling/sobjects/SandboxProcess/xxx"
    },
    "Id": "xxx",
    "Status": "Completed",
    "SandboxName": "INT",
    "SandboxInfoId": "xxx",
    "LicenseType": "DEVELOPER",
    "CreatedDate": "2024-05-20T17:43:43.000+0000",
    "CopyProgress": 100,
    "SandboxOrganization": "xxx",
    "SourceId": null,
    "Description": "xxx",
    "EndDate": "2024-05-20T18:41:24.000+0000"
  },
  "warnings": []
}

The --json does not return sufficient information to log in to the org.

We need --json to return the username (as it is displayed in the interactive mode), or at least the sandbox alias

@shetzel shetzel added the bug Issue or pull request that identifies or fixes a bug label May 21, 2024
Copy link

git2gus bot commented May 21, 2024

This issue has been linked to a new work item: W-15818633

@shetzel
Copy link
Contributor Author

shetzel commented May 21, 2024

I'll add more data to the json response. Thanks RupertBarrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

2 participants