[docs] Improve documentation around capability contextlevel in the docs
Maintainer thường phản hồi trong vòng 1 ngày
@NeillM đang làm issue này rồi.
Từ ngày 9/5/2025.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- documentation
Hướng nghiên cứu
Mở trang tài liệu về capabilities được liên kết và bắt đầu từ “How to define new capabilities in plugins”, xem lại các hướng dẫn hiện có về contextlevel. Thêm phần giải thích rõ ràng về những gì contextlevel kiểm soát, bao gồm lý do các capabilities cấp hệ thống không thể bị ghi đè ở cấp thấp hơn trong hệ thống phân cấp context, sau đó kiểm tra tài liệu đã được kết xuất.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What is the URL of the page?
https://moodledev.io/docs/5.0/apis/subsystems/access#how-to-define-new-capabilities-in-plugins
What is the issue with this page?
In the dev chat there was a discussion around what contextlevel on capabilities does and means we seemed to come up with a good description that is not included in the docs at the moment:
It indicates what context you intend to check the capability at, and does control where it appears, for instance moodle/site:config is defined as CONTEXT_SYSTEM and that means you can't change it at lower levels. If you go to a course (or category, or module or block, or user for that matter) and try to override capabilities there, that one doesn't show on the list. Because if you did override it in a course, it wouldn't make any difference when you check it as context system.
It seems that adding this or something similar will help people understand what contextlevel they should choose to use better.
Are you able to provide a patch for this?
If no one picks this up sooner, I'll likely do it next week
- Ngôn ngữ chính
- TypeScript
- Star
- 74
- Fork
- 652
- Merge trung bình
- 4 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
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 moodle/devdocs
-
[docs] Change notice for versions of Moodle only in security supportCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug documentation help wanted needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
moodle/devdocs#1673 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation enhancement help wanted needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug documentation help wanted needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Accessibility - SQL Indentation image alt text is the file name.Có thể đã có người làm @travis-kuenzi đã nhận 138 ngày trước. Đang mởbug documentation good first issue needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
moodle/devdocs#1395 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug documentation help wanted needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
moodle/devdocs#762 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của moodle/devdocs
Issue tương tự
-
Create/import wallet form shows raw "password must be at least 1 characters" instead of the translated messageCó thể đã có người làm @CapThunder19 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
joinmarket-webui/jam#1538 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
t0ggles
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nolimits4web/swiper#8240 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/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 72/100
modelcontextprotocol/inspector#2723 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status:approved type:bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
egdev6/quorb#109 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày