More than 256 tags fails the whole import: taxonomy entity count bound is far below real blog vocabularies
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
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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Automattic/blocks-engine
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Automattic/blocks-engine#7459 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/blocks-engine#4943 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/blocks-engine#4942 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Automattic/blocks-engine#4921 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Automattic/blocks-engine#775 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Automattic/blocks-engine
Issue tương tự
-
a11y
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
omeka/plugin-ExhibitBuilder#171 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Automattic/jetpack#55365 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
erkamyaman/rust-anything#371 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
silverstripe/silverstripe-userforms#1472 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue help wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100