Duplicate architecture options in DOCA release catalog

Open Beginner friendly
#78 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
typescript
Domain
frontend

Research direction

Open frontend-v2/src/components/settings/BluefieldImages.tsx around line 520 and inspect the architecture options in the Add DOCA Release form. Compare them with the amd64-to-x86_64 mapping at line 129; done means the dropdown shows only the canonical amd64 and arm64 values.

Written by the indexing model from the issue text.

Description

bare-metal bug frontend severity:low verified
Description

The "Add DOCA Release" form in Catalog > DOCA Releases lists four architecture options: arm64, amd64, aarch64, x86_64. However, amd64 and x86_64 refer to the same architecture (as do arm64 and aarch64) — they are just different naming conventions
(Debian/Docker vs Red Hat/kernel).

Location

frontend-v2/src/components/settings/BluefieldImages.tsx, line 520:

{['arm64', 'amd64', 'aarch64', 'x86_64'].map((arch) => (

Impact

- Users can create duplicate DOCA release entries that differ only by arch naming convention
- The unique constraint (uq_doca_release on doca_version, host_os, host_os_version, host_arch) treats amd64 and x86_64 as distinct, allowing silent duplicates
- The URL generation logic at line 129 already maps amd64 → x86_64 for RPM paths, confirming they are equivalent

Expected behavior

The dropdown should only show two canonical values: amd64 and arm64 (matching Docker/Debian convention used throughout the codebase — Dockerfile, module code, etc.).

Fix

Change line 520 to:

{['arm64', 'amd64'].map((arch) => (

---
<sub>Migrated from `sp-prod-field/bnk-forge` **#407** (opened 2026-07-14; original labels: none). That repository is archived and read-only.
Bare `#NNN` references in the text above refer to issues and PRs in the **original** repository, not to numbering here.</sub>
Dominant language
Python
Stars
1
Forks
1
Avg merge
19h 7m
Merged PRs (30d)
43

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from f5devcentral/bnk-forge

All issues in f5devcentral/bnk-forge

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.