Skip to content

github-authentication: skip education.github.com check for EMU accounts - #327379

Closed
anthony (brignano) wants to merge 1 commit into
microsoft:mainfrom
brignano:claude/emu-education-check-skip-f9e43c
Closed

anthony (brignano) wants to merge 1 commit into
microsoft:mainfrom
brignano:claude/emu-education-check-skip-f9e43c

Conversation

@brignano

@brignano anthony (brignano) commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #327377

Skips the optional education.github.com EDU lookup for managed (EMU) accounts, which can't reach that endpoint anyway.

Before: every session load — including EMU accounts — fires a network request to education.github.com/api/user.

After: EMU-style accounts short-circuit before the fetch, set edu = 'none', and log that the check was skipped. Non-EMU accounts are unaffected. Telemetry schema is unchanged (isEdu, isManaged — same names, same __GDPR__ block).

Testing: type-checks cleanly against the extension's tsconfig (TypeScript 6, --noEmit, 0 errors); hygiene clean (tabs, no trailing whitespace); non-EMU sign-in path unchanged; an EMU login short-circuits before the fetch.

Copilot AI review requested due to automatic review settings July 24, 2026 20:25
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

TylerLeonhardt

Matched files:

  • extensions/github-authentication/src/githubServer.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Skips unnecessary GitHub Education requests for Enterprise Managed User accounts while preserving existing telemetry.

Changes:

  • Detects managed accounts before the EDU lookup.
  • Reports isEdu: 'none' without fetching for managed accounts.
  • Reuses the detection result for telemetry.

@brignano

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

Managed (EMU) accounts can't access the education.github.com endpoint, so
evaluate the EMU heuristic up front and skip the fetch entirely for them,
setting edu to 'none'. Telemetry schema is unchanged.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@brignano anthony (brignano) closed this by deleting the head repository Aug 23, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Oct 21, 2026
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-authentication: education.github.com telemetry call fires on every window launch and is unnecessary for EMU accounts

3 participants