Skip to content

[eas-cli] Decouple username from account name#3922

Open
byronkarlen wants to merge 1 commit into
mainfrom
byron/decouple-username-from-accountname
Open

[eas-cli] Decouple username from account name#3922
byronkarlen wants to merge 1 commit into
mainfrom
byron/decouple-username-from-accountname

Conversation

@byronkarlen

@byronkarlen byronkarlen commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Why

eas-cli shouldn't assume that a user's primary account name always has the same name as the user's username. This is currently true, but may not be in the future.

How

Had claude identify places where we make this assumption and then fixed these callsites. Added an actor.getPersonalAccount() helper. We should use uuids and the fkey relationships provided by our data model instead of relying on unstable names wherever possible.

Test Plan

tsc, and run updated unit tests. Will revisit and test thoroughly again if we decide we want to break this assumption.

@byronkarlen byronkarlen added the no changelog PR that doesn't require a changelog entry label Jun 30, 2026
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.05128% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.21%. Comparing base (9247f3c) to head (605567a).

Files with missing lines Patch % Lines
packages/eas-cli/src/commands/account/view.ts 20.00% 4 Missing ⚠️
...andUtils/context/contextUtils/getProjectIdAsync.ts 77.78% 2 Missing ⚠️
packages/eas-cli/src/commands/project/init.ts 83.34% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3922      +/-   ##
==========================================
+ Coverage   59.18%   59.21%   +0.03%     
==========================================
  Files         935      935              
  Lines       41075    41090      +15     
  Branches     8648     8649       +1     
==========================================
+ Hits        24306    24327      +21     
+ Misses      16674    16669       -5     
+ Partials       95       94       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@byronkarlen byronkarlen force-pushed the byron/decouple-username-from-accountname branch from 005fd6f to 605567a Compare June 30, 2026 22:13
@github-actions

Copy link
Copy Markdown

⏩ The changelog entry check has been skipped since the "no changelog" label is present.

@byronkarlen byronkarlen marked this pull request as ready for review June 30, 2026 22:17
@github-actions

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
**/* @douglowder

Generated by CodeMention

Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PR that doesn't require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant