Skip to content

fix(bank-account): regenerate federation supergraph for pendingUpdate [ENG-509]#447

Merged
islandbitcoin merged 1 commit into
mainfrom
fix/regen-supergraph-pendingupdate
Jul 14, 2026
Merged

fix(bank-account): regenerate federation supergraph for pendingUpdate [ENG-509]#447
islandbitcoin merged 1 commit into
mainfrom
fix/regen-supergraph-pendingupdate

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

Problem

PR #444 (ENG-509) added pendingUpdate to the public subgraph schema (src/graphql/public/schema.graphql) but the composed Apollo Router supergraph (dev/apollo-federation/supergraph.graphql) was never regenerated. check:sdl only guards the subgraph SDL, not the supergraph, so the stale supergraph passed CI.

api.*.flashapp.me is served by the Apollo Router, which validates queries against that baked-in supergraph. Result: the mobile app's BankAccounts query (bankAccounts { ... pendingUpdate { ... } }) is rejected with:

Cannot query field "pendingUpdate" on type "BankAccount"  (GRAPHQL_VALIDATION_FAILED) → HTTP 400

even on backend images built from #444. On TEST this surfaces as "No bank account found." on the cashout screen — the 400 drops the whole response, so bankAccounts reads empty.

Fix

Ran make codegen to recompose the supergraph. The subgraph schema was already current, so the only change is the generated supergraph.graphql (58 insertions, 0 deletions): the pendingUpdate: BankAccountUpdateRequest field plus the BankAccountUpdateRequest type/input.

Deploy note

This is a chart-baked artifact — merging bumps the flash image/chart; TEST/prod pick it up on the next make flash ENV=<env>. Verify post-deploy: the flash-supergraph configmap and the served __type(name:"BankAccount") both include pendingUpdate.

🤖 Generated with Claude Code

… [ENG-509]

#444 added `pendingUpdate` to the public subgraph schema but never
regenerated the composed Apollo Router supergraph. The router validates
against that baked-in supergraph, so it rejects `bankAccounts { pendingUpdate }`
with GRAPHQL_VALIDATION_FAILED (400) even on images built from #444 — which
blocks the mobile cashout screen ("No bank account found") on TEST.

Ran `make codegen` to recompose the supergraph. Only the generated
supergraph.graphql changes (58 insertions, 0 deletions).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@linear

linear Bot commented Jul 14, 2026

Copy link
Copy Markdown

ENG-509

@islandbitcoin
islandbitcoin merged commit f9f68e1 into main Jul 14, 2026
15 checks passed
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