Skip to content

feat(FR-2989): show image architecture in deployment revision views#7622

Merged
graphite-app[bot] merged 1 commit into
mainfrom
worktree-revision-image-arch
May 28, 2026
Merged

feat(FR-2989): show image architecture in deployment revision views#7622
graphite-app[bot] merged 1 commit into
mainfrom
worktree-revision-image-arch

Conversation

@yomybaby
Copy link
Copy Markdown
Member

@yomybaby yomybaby commented May 27, 2026

Resolves #7621 (FR-2989)

Stacked on #7618

Summary

In the deployment revision views, the image identifier was rendered as only canonicalName (registry/namespace:tag), omitting the architecture suffix. When multiple architectures (e.g. x86_64, aarch64) coexist for the same canonical name, it was ambiguous which image variant a revision is pinned to.

This PR renders the full image path canonicalName@architecture instead, matching the convention used elsewhere in the app (e.g. ImageNodeSimpleTag, ServiceLauncherPageContent).

  • DeploymentRevisionDetail (Current Revision card and Revision Detail Drawer): Image row shows canonicalName@architecture.
  • DeploymentRevisionHistoryTab: the (default-hidden) Image column renders the same full path.
  • Both queries/fragments add architecture to imageV2.identity.

Test plan

  • On http://10.122.10.107:8090, open a deployment with a current revision: the Image row shows registry/namespace:tag@architecture.
  • Open the Revision History tab → click a row → the drawer's Image row shows the same full path.
  • Enable the (default-hidden) Image column in Revision History → values include the @architecture suffix.
  • bash scripts/verify.sh — Relay/Lint/Format pass; TypeScript phantom worktree errors only (no errors in touched files).

Copy link
Copy Markdown
Member Author

yomybaby commented May 27, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent changes, fast-track this PR to the front of the merge queue

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@yomybaby yomybaby changed the title feat(FR-2987): show image architecture in revision detail and history feat(FR-2989): show image architecture in deployment revision views May 27, 2026
@github-actions github-actions Bot added the size:L 100~500 LoC label May 27, 2026
@yomybaby yomybaby force-pushed the worktree-revision-image-arch branch from 7457cb5 to 18b91ad Compare May 27, 2026 13:03
@yomybaby yomybaby marked this pull request as ready for review May 27, 2026 13:03
Copilot AI review requested due to automatic review settings May 27, 2026 13:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds image architecture suffix to deployment revision views so users can disambiguate image variants (e.g. x86_64 vs aarch64) sharing the same canonical name. The image identifier now renders as canonicalName@architecture, matching conventions used elsewhere (e.g. ImageNodeSimpleTag, getImageFullName).

Changes:

  • DeploymentRevisionDetail: fragment selects architecture; Image row renders canonicalName@architecture with copy text aligned.
  • DeploymentRevisionHistoryTab: query selects architecture; default-hidden Image column renders the same full path.
  • Regenerated Relay artifacts for all queries/mutations that spread DeploymentRevisionDetail_revision.

Reviewed changes

Copilot reviewed 2 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
react/src/components/DeploymentRevisionDetail.tsx Builds imageFullName from canonical name + architecture and renders it in the Image row.
react/src/components/DeploymentRevisionHistoryTab.tsx Adds architecture to query and renders combined fullName in Image column.
react/src/generated/DeploymentRevisionDetail_revision.graphql.ts Regenerated fragment type with architecture.
react/src/generated/DeploymentRevisionHistoryTabListQuery.graphql.ts Regenerated query type with architecture.
react/src/generated/DeploymentRevisionHistoryTabActivateMutation.graphql.ts Regenerated mutation artifact.
react/src/generated/DeploymentReplicasTabListQuery.graphql.ts Regenerated query artifact.
react/src/generated/DeploymentListPageQuery.graphql.ts Regenerated query artifact.
react/src/generated/DeploymentDetailPageQuery.graphql.ts Regenerated query artifact.
react/src/generated/DeploymentAddRevisionModalAddMutation.graphql.ts Regenerated mutation artifact.
react/src/generated/AdminDeploymentListPageQuery.graphql.ts Regenerated query artifact.
react/src/generated/ProjectAdminDeploymentsPageQuery.graphql.ts Regenerated query artifact.
Files not reviewed (9)
  • react/src/generated/AdminDeploymentListPageQuery.graphql.ts: Language not supported
  • react/src/generated/DeploymentAddRevisionModalAddMutation.graphql.ts: Language not supported
  • react/src/generated/DeploymentDetailPageQuery.graphql.ts: Language not supported
  • react/src/generated/DeploymentListPageQuery.graphql.ts: Language not supported
  • react/src/generated/DeploymentReplicasTabListQuery.graphql.ts: Language not supported
  • react/src/generated/DeploymentRevisionDetail_revision.graphql.ts: Language not supported
  • react/src/generated/DeploymentRevisionHistoryTabActivateMutation.graphql.ts: Language not supported
  • react/src/generated/DeploymentRevisionHistoryTabListQuery.graphql.ts: Language not supported
  • react/src/generated/ProjectAdminDeploymentsPageQuery.graphql.ts: Language not supported

@yomybaby yomybaby force-pushed the worktree-revision-folder-identicon branch from 676a1b4 to 20de2f7 Compare May 28, 2026 04:06
@yomybaby yomybaby force-pushed the worktree-revision-image-arch branch from 18b91ad to 71bd372 Compare May 28, 2026 04:07
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 28, 2026

Coverage Report for react-coverage (./react)

Status Category Percentage Covered / Total
🔵 Lines 6.52% 1800 / 27581
🔵 Statements 5.35% 1995 / 37288
🔵 Functions 5.27% 297 / 5632
🔵 Branches 3.73% 1300 / 34831
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
react/src/components/DeploymentRevisionDetail.tsx 0% 0% 0% 0% 29-372
react/src/components/DeploymentRevisionHistoryTab.tsx 0% 0% 0% 0% 65-673
Generated in workflow #1160 for commit 3c2c1be by the Vitest Coverage Report Action

@yomybaby yomybaby requested review from agatha197 and ironAiken2 and removed request for ironAiken2 May 28, 2026 04:09
Copy link
Copy Markdown
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

LGTM

@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented May 28, 2026

Merge activity

…7622)

Resolves #7621 (FR-2989)

Stacked on #7618

## Summary

In the deployment revision views, the image identifier was rendered as only `canonicalName` (`registry/namespace:tag`), omitting the architecture suffix. When multiple architectures (e.g. `x86_64`, `aarch64`) coexist for the same canonical name, it was ambiguous which image variant a revision is pinned to.

This PR renders the full image path `canonicalName@architecture` instead, matching the convention used elsewhere in the app (e.g. `ImageNodeSimpleTag`, `ServiceLauncherPageContent`).

- `DeploymentRevisionDetail` (Current Revision card and Revision Detail Drawer): Image row shows `canonicalName@architecture`.
- `DeploymentRevisionHistoryTab`: the (default-hidden) Image column renders the same full path.
- Both queries/fragments add `architecture` to `imageV2.identity`.

## Test plan

- [ ] On `http://10.122.10.107:8090`, open a deployment with a current revision: the Image row shows `registry/namespace:tag@architecture`.
- [ ] Open the Revision History tab → click a row → the drawer's Image row shows the same full path.
- [ ] Enable the (default-hidden) Image column in Revision History → values include the `@architecture` suffix.
- [ ] `bash scripts/verify.sh` — Relay/Lint/Format pass; TypeScript phantom worktree errors only (no errors in touched files).
@graphite-app graphite-app Bot force-pushed the worktree-revision-folder-identicon branch from 20de2f7 to bdb95cd Compare May 28, 2026 05:44
@graphite-app graphite-app Bot force-pushed the worktree-revision-image-arch branch from 71bd372 to 3c2c1be Compare May 28, 2026 05:44
Base automatically changed from worktree-revision-folder-identicon to main May 28, 2026 05:46
@graphite-app graphite-app Bot merged commit 3c2c1be into main May 28, 2026
9 checks passed
@graphite-app graphite-app Bot deleted the worktree-revision-image-arch branch May 28, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show image architecture in deployment revision views

3 participants