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

generate-fixtures round trip and new fixture builder API (api-components-bundle #321)

Đã đóng Phù hợp với người mới
#97 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-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với các trang tài liệu về fixtures/scaffold và lệnh silverback:api-components:generate-fixtures được mô tả trong issue. Tài liệu hóa bốn phương thức của CwaFixtureBuilder, các redirect, các callback phụ thuộc vào route và cách capture một live site trước khi purge-and-reload; được xem là hoàn thành khi API và workflow được tài liệu hóa bao quát hành vi fixture được liệt kê.

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

Mô tả

documentation

Source: components-web-app/api-components-bundle#321, PR components-web-app/api-components-bundle#322.

silverback:api-components:generate-fixtures now writes a scaffold that reloads as the same site after a purge. It carries:

  • published state and drafts
  • uploaded files, copied to assets/ next to the scaffold
  • component-owned groups and groups shared through locationReference
  • relations (e.g. a navigation link's route), dates, and inherited and non-public fields
  • meta descriptions, scheduled or draft routes (liveAt) and redirects

The command lists anything it cannot reproduce.

New CwaFixtureBuilder API:

  • allow: on page groups
  • liveAt(?DateTimeImmutable) on page and page data builders
  • $cwa->redirect('/old', to: 'routeName')
  • $cwa->afterRoutes(fn (CwaFixtureBuilder $cwa) => ...), which runs once routes exist and before positions are created. Use it for anything that references a route.

Docs impact: the fixtures / scaffold pages should document the four builder methods and how to capture a live site with generate-fixtures before a purge-and-reload.

Ngôn ngữ chính
Vue
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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ề Documentation

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.