Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Document: a component cannot be placed inside its own subtree (422)

Đã đóng Phù hợp với người mới
#259 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với các trang về vị trí thành phần API và nhóm thành phần trong content/4.api/, sau đó kiểm tra cách các trang này mô tả thao tác ghi và lỗi xác thực. Ghi lại các trường hợp 422 được liệt kê, bao gồm thành phần ở trạng thái nháp và đã xuất bản, việc chia sẻ được phép và các chu trình hiện có; hoàn tất khi các trang giải thích từng hành vi cùng phạm vi đã nêu.

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

Mô tả

The API bundle now refuses any write that would place a component inside its own subtree (components-web-app/api-components-bundle#503, fixes components-web-app/api-components-bundle#502).

Please document under the API component positions and component groups pages (content/4.api/):

  • A ComponentPosition whose component contains the target componentGroup, at any depth, is a 422 with a violation on component: "The component cannot be placed in the component group <reference>: the group is inside the component." This applies to POST /_/component_positions, a PATCH of a position's component or componentGroup, and positions embedded in a component write (componentPositions[i].component).
  • Giving a ComponentGroup an owner (components) from inside that group's own subtree is a 422 on components: "The component group <reference> cannot be owned by a component inside it."
  • A published component and its draft count as one component, so placing a container's draft inside the published container (or the reverse) is refused too.
  • Sharing one component in several places (for example, two sibling containers) is still allowed. Only a path back to itself is refused.
  • Existing positions are not re-checked when unrelated fields change, so content already holding a cycle (from fixtures or SQL) can still be read and edited. Reads (security voter, manifest) terminate on it.

The module side (disabling the option with a reason before sending) is cwa-nuxt-module#157.

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
1 giờ 20 phút
Pull request đã merge (30 ngày)
1

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 components-web-app/docs

Tất cả issue của components-web-app/docs

Issue tương tự

Thêm issue về TypeScript

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.