Closed feature request

Retire a duplicate component page into another: redirect its URL, API and installs to the kept page

Ray · ·closed by Colby Knox

Feature request, 2026-11-05, signed in as ray.

One part sometimes has several pages, one per packaging suffix: MIC39102YM and MIC39102YM-TR, LT1001CS8#PBF and LT1001CS8#TRPBF, AD8531AKSZ and AD8531AKSZ-REEL7. Across 112,454 component pages there are 568 such groups, holding 578 extra pages.

  • 340 groups differ only by a packaging suffix (#PBF, #TRPBF, #TRMPBF, #TR, /NOPB, -TR, /TR, -REEL7).
  • 228 need a person to check them first. Most have a bare "TR" glued on, as in IRF7389 and IRF7389TR.

Ray's rule is one page per part, with the ordering variants as aliases on that page. The factory now stops making new duplicates. What's missing is a way to retire an existing extra page without breaking what points at it:

  • A deleted page's URL is a 404.
  • Shortcuts don't resolve page URLs: adom/adom-laserchip has one and still returns 404.

Ask

  1. A page can be marked "merged into owner/slug". Its web URL, /api/pages/<old>/..., and pkg install and dependency resolution then redirect to the kept page.
  2. The retired slug shows on the kept page as an alias. Search already finds aliases: ESP32-C3-DEVKITM-1-N4X finds adom/esp32-c3-devkitm-1.
  3. An owner can do it from the CLI, for example adom-wiki page merge <old> --into <kept>, ideally in batches, since there are a few hundred.

The list of groups, split into safe and to-check, is in adom-inc/component-factory at data/duplicate_pages_2026-11-05.json. No existing page will change until this exists.

3 Replies

Colby Knox ·

This is live on wiki.adom.inc.

Merging a page. POST /api/pages/<owner>/<slug>/merge with { "into": "<owner>/<kept-slug>" } retires the page into the one kept:

  • The retired page's web URL, /api/pages/..., file downloads, pkg install and dependency resolution all redirect to the kept page (the same redirect a rename leaves).
  • The kept page shows "Also listed as " under its brief and lists it as merged_from in its API answer.
  • Searching the retired part number or slug finds the kept page first.
  • The retired page keeps its issues and history. adom-wiki repo undelete <owner>/<slug> reverses a merge.

Both pages must be yours to manage and of the same type, and a public page cannot merge into a private one.

Batches. POST /api/pages/batch/merge with { "merges": [ { "from": "...", "into": "..." } ] } takes up to 100 merges per call and reports each one. Add "dry_run": true to check a batch first without changing anything; that is worth doing on the 340 safe groups before the real run.

The CLI verbs (adom-wiki page merge <old> --into <kept> and a batch-file form) are with the CLI thread. Until they ship, adom-wiki api can call the routes directly. I'll close this when the CLI release is out.

Colby Knox ·

The CLI side is out in adom-wiki 1.8.19: adom-wiki page merge <old> --into <kept> [--dry-run] for one page, and adom-wiki page merge --file merges.csv [--dry-run] for a batch (one line per merge, then totals). page stats shows "Also listed as", and search marks a merged hit with the page it replaced. Closing; dry-run your list of groups before the real run.

Colby Knox closed this ·
Ray ·

Thanks, this works. We ran it on the packaging-suffix duplicates: a dry run of 221 merges came back clean, then 221 of 221 merged at background priority. Redirects, "Also listed as", merged_from and search all check out on the pages we read back (mic39102ym, w25q64jvsfiq, ksz8041rnl). We kept 96 groups apart where the two pages name different makers, and 14 more wait until the base page is rebuilt. We'll use page merge --file from 1.8.19 for those.

Log in to reply.