Skip to content

Pass session down so we can avoid a network call - #181570

Merged
TylerLeonhardt merged 1 commit into
mainfrom
tyler/governing-jellyfish
May 4, 2023
Merged

TylerLeonhardt merged 1 commit into
mainfrom
tyler/governing-jellyfish

Conversation

@TylerLeonhardt

Copy link
Copy Markdown
Member

We don't need to fetch the user details when the Auth Session already has the info we need. This PR removes that extraneous web request.

I've also changed the User-Agent that we pass to be more specific so we can narrow down any future issues with spamming web requests.

Fixes #173645

We don't need to fetch the user details when the Auth Session already has the info we need. This PR removes that extraneous web request.

I've also changed the `User-Agent` that we pass to be more specific so we can narrow down any future issues with spamming web requests.

Fixes #173645
@TylerLeonhardt TylerLeonhardt self-assigned this May 4, 2023
@TylerLeonhardt
TylerLeonhardt enabled auto-merge (squash) May 4, 2023 18:27
@vscodenpa VS Code Bot (vscodenpa) added this to the May 2023 milestone May 4, 2023
isManaged: managed ?? 'unknown'
isEdu: edu,
// Apparently, this is how you tell if a user is an EMU...
isManaged: session.account.label.includes('_') ? 'true' : 'false'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: What is an EMU? Perhaps including an example in the comment will help?

@TylerLeonhardt
TylerLeonhardt merged commit f9b4b4c into main May 4, 2023
@TylerLeonhardt
TylerLeonhardt deleted the tyler/governing-jellyfish branch May 4, 2023 18:59
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Github Education - VSCode API rate limiting issue

3 participants