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

Đang mở
#7,463 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
70/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
backend, data

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
PHP
Star
29
Fork
6
Merge trung bình
3 giờ 44 phút
Pull request đã merge (30 ngày)
812

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Automattic/blocks-engine

Tất cả issue của Automattic/blocks-engine

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.