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

fix: allow expired orgs to be deleted #640

Merged
merged 3 commits into from
Apr 10, 2023
Merged

fix: allow expired orgs to be deleted #640

merged 3 commits into from
Apr 10, 2023

Conversation

WillieRuemmele
Copy link
Contributor

What does this PR do?

allows expired orgs to be deleted

What issues does this PR fix or reference?

@W-12992139@
forcedotcom/cli#2045

Copy link
Contributor

@mshanemc mshanemc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does anything similar need to happen for org:delete:sandbox?

} catch (e) {
if (e instanceof Error && e.name === 'ScratchOrgNotFound') {
if (e instanceof Error && e.name === 'DomainNotFoundError') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where does error happen from core? Asking because .delete doesn't need to auth to the org, but does need to auth the hub and there could be a DomainNotFoundError coming from the hub. Then you could get into a weird place where the scratch org never got deleted

@mshanemc
Copy link
Contributor

QA Notes

deleted an expired (deleted) org with force:org:delete -u, and one with -o ✅✅
deleted an expired (deleted) org with org:delete:scratch -u, and one with -o ✅✅

put an alias on an expired org, and delete it via force:org:delete ✅ alias is removed from alias:list ✅
fine error message when specifying an org with invalid username ✅ alias is removed from alias:list ✅

not tested: deleting sandboxes via force:org:delete

@mshanemc mshanemc merged commit 337845d into main Apr 10, 2023
@mshanemc mshanemc deleted the wr/deleteOrg branch April 10, 2023 23:30
@Julian88Tex
Copy link

@mshanemc since this is merged to main should we already be seeing it in @salesforce/cli/1.70.0 darwin-x64 node-v18.14.2?

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.

3 participants