More than 256 tags fails the whole import: taxonomy entity count bound is far below real blog vocabularies

Aperta
#7,463 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
70/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
php
Ambito
backend, data

Direzione di ricerca

The bound is enforced in php-transformer/src/WordPressSitePlan/ArchiveEntities.php: assertTerms at line 64 for taxonomy terms, line 20 for authors. Read TaxonomyProjection to see how one post_tag entity is created per declared term name, then raise the vocabulary bound and replace the throw with truncation (archived terms first, then most-used) emitting a wordpress_site_plan_taxonomy_* diagnostic. Add a neutral-plan fixture with 2 posts and 1,000 tags plus an over-bound case, and run the WordPressSitePlan tests to confirm the fixture fails on trunk.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

ArchiveEntities::assertTerms (php-transformer/src/WordPressSitePlan/ArchiveEntities.php:64) throws WordPress site plan taxonomy entity count exceeds its bound. when a plan has more than 256 taxonomy entities. That aborts materialization of the whole site. TaxonomyProjection creates one post_tag entity per declared term name, archived or not, so any blog with more than 256 distinct tags cannot import. The bound on each term's membership list is 10,000, which shows the vocabulary bound is the outlier. Author entities have the same 256 cap (line 20).

Evidence

andreanolen.com is a Squarespace blog with 163 posts and 3,068 distinct terms (5,972 post-term assignments). DLA's content-index.json declares them per post (terms: [...]). I imported only the 163 posts and 5 pages, with no term-archive files, using SSI 1.38.24 through Studio. Compile finished, then materialization failed:
static_site_importer_direct_artifact_phase_failed: Materialization failed … WordPress site plan taxonomy entity count exceeds its bound.
Tag-heavy blogs are common: WordPress, Blogger and Squarespace sites regularly have thousands of tags.

Expected

  • The taxonomy vocabulary bound fits real blogs, consistent with the 10,000-member list bound. Term entities are small, so a five-figure bound costs little.
  • A site over the bound does not lose every post. Project the terms the plan can carry, prioritizing archived terms and then the most-used, and report the rest as a wordpress_site_plan_taxonomy_* diagnostic. Do not throw.

Acceptance

A neutral plan fixture with 2 posts declaring 1,000 distinct tags materializes, and every tag is assigned. A plan above the new bound degrades with a diagnostic instead of throwing. The test fails on trunk.

Lingua principale
PHP
Stelle
29
Fork
6
Merge medio
3h 44m
PR unite (30g)
812

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Automattic/blocks-engine

Tutte le issue di Automattic/blocks-engine

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.