Document public vs admin Mercure updates (api-components-bundle #497)
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
- 75/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
- Công nghệ
- symfony, typescript
- Lĩnh vực
- documentation
Hướng nghiên cứu
Đọc phần Mercure / thời gian thực trong content/4.api/ và so sánh với api-components-bundle PR #497 được liên kết từ issue. Ghi lại hành vi của các bản cập nhật công khai, bản cập nhật riêng tư dành cho quản trị viên và bản nháp, grants, định tuyến Messenger, rò rỉ thông tin và một yêu cầu con nội bộ cho mỗi resource được tạo hoặc cập nhật. Hoàn tất khi tài liệu bao quát từng hành vi và lưu ý đượ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ả
api-components-bundle PR https://github.com/components-web-app/api-components-bundle/pull/497 (issue #494) changes what Mercure publishes. To document in content/4.api/ (Mercure / real-time section):
- Public update: the public update for a created or updated resource is what an anonymous
GETof that resource returns. When anonymous callers can't read the resource (401/403/404), the public update is a delete{"@id": "<iri>"}. That covers a page no live route reaches, a route before itsliveAt, and a published component moved to a future date. - Admin update: the writer's view is published privately on
<iri>?draft=1after the public update. It is only published when it differs from the public payload. - Grants: every Mercure resource class grants admins
<pattern>\\?draft=1. Here an admin is anyone holding thepublishable.permission(or a class's own#[Publishable(isGranted:)]). - Drafts: a draft is still published only privately on
?draft=1. - Messenger routing: an application that routes
Symfony\\Component\\Mercure\\Updateto an async transport must also routeSilverback\\ApiComponentsBundle\\Message\\PublishMercureUpdatesMessage. That message carries a resource's public and private updates in order. - Information disclosure: a public delete for a resource that was never public reveals that its IRI exists. A route IRI contains its path.
- Cost: each created or updated resource costs one internal sub-request.
- 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
- Đọ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 components-web-app/docs
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
components-web-app/docs#294 · 1 bình luận ·
-
documentation
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
components-web-app/docs#290 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
components-web-app/docs#289 · 2 bình luận ·
-
documentation
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
components-web-app/docs#285 ·
-
documentation
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 35/100
components-web-app/docs#284 ·
Tất cả issue của components-web-app/docs
Issue tương tự
-
bug P3 UI/UX
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
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 78/100
StellarState/SS-backend#712 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: backend bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
snapotter-hq/SnapOtter#3473 ·
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
gitroomhq/postiz-app#2304 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Resolve CI maintenance findingsĐang mởharlan-agent-ready-to-implement routine:ci-review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
harlan-zw/unlighthouse#454 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày