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: Fix "No authorization information found" Error After Authenticating an Org #4584

Merged
merged 22 commits into from
Dec 14, 2022

Conversation

klewis-sfdc
Copy link
Contributor

@klewis-sfdc klewis-sfdc commented Dec 11, 2022

What does this PR do?

  • Skips Org Authentications that have errors when building the org list for display.
  • Clears the cache of StateAggregator after modifying the config file to ensure it loads up the freshest data.

What issues does this PR fix or reference?

#4519, @W-11970040@

Functionality Before

  1. Authorize an org (SFDX: Authorize an Org)
  2. Log out from all auth’d orgs (or just the default) (SFDX: Log Out from All Authorized Orgs)
  3. Click on the “No Default Org Set” in the bottom status bar
  4. See the “No auth info found for <org auth’d in step 1>” error msg

or

  1. Authorize an org with an alias (SFDX: Authorize an Org)
  2. Right click on a Class or the classes folder in the Explorer View
  3. Click "SFDX: Deploy Source to Org"
  4. See the “No auth info found for <org auth’d in step 1>” error msg

2022-12-12_11-35-07 (1)

Functionality After

  1. Authorize an org (SFDX: Authorize an Org)
  2. Log out from all auth’d orgs (or just the default) (SFDX: Log Out from All Authorized Orgs)
  3. Click on the “No Default Org Set” in the bottom status bar
  4. See the command palette open with org list and its 5 options for Authorizing an Org, Authorizing a Dev Hub, etc.

and

  1. Authorize an org with an alias (SFDX: Authorize an Org)
  2. Right click on a Class or the classes folder in the Explorer View
  3. Click "SFDX: Deploy Source to Org"
  4. See the metadata deploy to the Org successfully (no auth error is thrown)

@klewis-sfdc klewis-sfdc marked this pull request as ready for review December 13, 2022 00:26
@klewis-sfdc klewis-sfdc requested a review from a team as a code owner December 13, 2022 00:26
Copy link
Contributor

@gbockus-sf gbockus-sf left a comment

Choose a reason for hiding this comment

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

A few small things to consider. After you review I can QE this ticket.

Copy link
Contributor

@gbockus-sf gbockus-sf left a comment

Choose a reason for hiding this comment

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

Thanks for tracking this down!

  • Verify after logging out of all org able to show authorize an org popup

    • Via org launcher ✅
    • via command
      • org ✅
      • devhub ✅
  • Auth an org then immediately do a deploy ✅

  • Verify immediately opening soql builder after auth work ✅

@klewis-sfdc klewis-sfdc merged commit dab2edc into develop Dec 14, 2022
@klewis-sfdc klewis-sfdc deleted the ken/fix-auth-error branch December 14, 2022 22:19
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.

None yet

2 participants