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

"force:org:list --json" doesn't accurately report dev hub status #482

Closed
SCWells72 opened this issue Jul 14, 2020 · 5 comments
Closed

"force:org:list --json" doesn't accurately report dev hub status #482

SCWells72 opened this issue Jul 14, 2020 · 5 comments
Assignees
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@SCWells72
Copy link

IC uses the isDevHub property of an org in the output of force:org:list --json to determine whether a given org is configured as a dev hub. However, I've had a number of users provide output of that command that shows the following:

{
  "username": "[redacted]",
  "orgId": "[redacted]",
  "accessToken": "[redacted]",
  "instanceUrl": "https://redacted.my.salesforce.com",
  "loginUrl": "https://redacted.my.salesforce.com/",
  "clientId": "[redacted]",
  "privateKey": "[redacted]",
  "alias": "DevHub",
  "lastUsed": "2020-07-14T20:26:43.555Z",
  "isDefaultDevHubUsername": true,
  "connectedStatus": "Connected",
  "defaultMarker": "(D)"
}

Notice that isDevHub is completely missing but isDefaultDevHubUsername=true. I'm updating IC to infer the former from the latter when not present, but this seems like a bug to me since isDevHub is (to my understanding) the authoritative designator for a dev hub org.

@clairebianchi clairebianchi added the bug Issue or pull request that identifies or fixes a bug label Sep 8, 2020
@SCWells72
Copy link
Author

@clairebianchi can you provide any status update on this one? As you can hopefully appreciate, not being able to determine that an org is enabled as a dev org is an impediment to tooling that integrates scratch org creation. There's no definitive way to know which orgs are factories for scratch orgs.

@clairebianchi
Copy link
Collaborator

Hi @SCWells72, it is on our backlog. Due to some resourcing issues we are having, I can't give you a timeline. I apologize.

@SCWells72
Copy link
Author

@clairebianchi thanks for getting back. No problem. That tells me what I need to know. I think I'll make it possible for users to optionally choose orgs that aren't listed as dev hubs when creating a scratch org in case they're hitting this bug. Perhaps a "Show all orgs" checkbox with a disclaimer that not all listed orgs are necessarily dev hubs and the operation may fail.

Take care and thanks again for the follow-up.

@mshanemc
Copy link
Contributor

mshanemc commented Feb 8, 2021

This may be fixed in the new open-source version. You can try it early, here: #835

@mshanemc mshanemc added bug Issue or pull request that identifies or fixes a bug and removed bug Issue or pull request that identifies or fixes a bug labels Feb 11, 2021
@git2gus
Copy link

git2gus bot commented Feb 11, 2021

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

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

3 participants