Skip to content

[eas-cli] remove deprecated GraphQL field usage - #4021

Merged
tchayen merged 9 commits into
mainfrom
tchayen/remove-deprecated-graphql-field-usage
Aug 14, 2026
Merged

tchayen merged 9 commits into
mainfrom
tchayen/remove-deprecated-graphql-field-usage

Conversation

@tchayen

@tchayen tchayen commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

Why

We can remove deprecated fields that are not used by the CLI anymore.

How

  • BuildFragment: project -> app, channel -> updateChannel { id name }, runtimeVersion -> runtime { id version } (this is a breaking change noted in changelog).
  • build:cancel uses cancelBuild, AccountFragment replaces the full users list with viewerUserPermission { role }, Account.appleTeams moves to appleTeamsPaginated, dropped deprecated selectedImage.
  • The submissions use Build.appIdentifier instead of androidConfig.applicationIdentifier.

Test plan

CI passes. Tested against staging with test account.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@github-actions

github-actions Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
packages/eas-cli/** @douglowder
packages/eas-cli/src/update/** @wschurman, @quinlanj
packages/eas-cli/src/commands/update/** @wschurman, @quinlanj
packages/eas-cli/src/channel/** @wschurman, @quinlanj
packages/eas-cli/src/commands/channel/** @wschurman, @quinlanj
packages/eas-cli/src/commands/build/** @sjchmiela
packages/eas-cli/src/build/** @sjchmiela

Generated by CodeMention

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

@codecov

codecov Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 28.57143% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.34%. Comparing base (289d579) to head (db90b44).

Files with missing lines Patch % Lines
...dentials/ios/api/graphql/queries/AppleTeamQuery.ts 0.00% 12 Missing ⚠️
packages/eas-cli/src/build/utils/url.ts 0.00% 3 Missing ⚠️
...ntials/ios/api/graphql/queries/AppleDeviceQuery.ts 0.00% 3 Missing ⚠️
packages/eas-cli/src/build/runBuildAndSubmit.ts 0.00% 1 Missing ⚠️
packages/eas-cli/src/commands/account/view.ts 0.00% 1 Missing ⚠️
packages/eas-cli/src/commands/build/cancel.ts 0.00% 1 Missing ⚠️
...s-cli/src/commands/update/revert-update-rollout.ts 0.00% 1 Missing ⚠️
packages/eas-cli/src/submit/status.ts 0.00% 1 Missing ⚠️
packages/eas-cli/src/update/queries.ts 0.00% 1 Missing ⚠️
packages/eas-cli/src/update/utils.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4021      +/-   ##
==========================================
- Coverage   63.35%   63.34%   -0.01%     
==========================================
  Files        1026     1026              
  Lines       46828    46841      +13     
  Branches     9825     9830       +5     
==========================================
+ Hits        29662    29665       +3     
- Misses      17064    17074      +10     
  Partials      102      102              

☔ 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.

@tchayen tchayen changed the title Remove deprecated GraphQL field usage [website] remove deprecated GraphQL field usage Jul 16, 2026
@tchayen tchayen changed the title [website] remove deprecated GraphQL field usage Remove deprecated GraphQL field usage Jul 16, 2026
@tchayen
tchayen force-pushed the tchayen/remove-deprecated-graphql-field-usage branch from c699448 to a1f3ec7 Compare July 16, 2026 00:53
@tchayen
tchayen requested a review from szdziedzic July 16, 2026 00:56

@szdziedzic szdziedzic 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.

It's 99% correct, although I found 1 problem:

};

export type UpdateJsonInfo = { branch: string } & Pick<
export type UpdateJsonInfo = { branch: string; runtimeVersion: string } & Pick<

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.

This leaves the update JSON contract inconsistent. getUpdateJsonInfosForUpdates maps the new runtime object back to the legacy flat runtimeVersion, so commands such as eas update --json, update:view, and update:edit retain the old shape. Meanwhile, update:republish --json prints the raw UpdateFragment and emits nested runtime.

printJsonOnlyOutput(updatesRepublished);

This seems to be breaking change.

We should probably map it to runtimeVersion as well for republish.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It is a breaking change, yes. For now I reversed it to remap the field and dropped changelog mention of it. WDYT: do we want to minimize breaking changes (or even avoid at all cost) or are we ok to have a cut off point now and release a major?

@szdziedzic

Copy link
Copy Markdown
Contributor

cc: @wschurman or @quinlanj if you want to take a look at update specific things

@tchayen
tchayen requested a review from szdziedzic July 16, 2026 21:22
@tchayen
tchayen force-pushed the tchayen/remove-deprecated-graphql-field-usage branch from 657ab6e to 8d2cbb5 Compare August 3, 2026 11:21
@tchayen tchayen changed the title Remove deprecated GraphQL field usage [eas-cli] remove deprecated GraphQL field usage Aug 14, 2026
@tchayen
tchayen force-pushed the tchayen/remove-deprecated-graphql-field-usage branch from bc5a534 to db90b44 Compare August 14, 2026 10:26
@github-actions

Copy link
Copy Markdown

✅ Thank you for adding the changelog entry!

@tchayen
tchayen merged commit 763cbad into main Aug 14, 2026
11 checks passed
@tchayen
tchayen deleted the tchayen/remove-deprecated-graphql-field-usage branch August 14, 2026 14:21
tchayen added a commit that referenced this pull request Aug 14, 2026
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.

2 participants