Constraints of a grant in the role editor: sites, locales, fields, resources and a row rule (A-52)

Đang mở
#3,430 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp

Hướng nghiên cứu

Read sections 4.15 and 10.7 of docs/planning/admin-technical-spec.md, then review the role editor work in A-32 and the row-rule registration issue #3417. Implement the grant constraints in the role editor and cover each constraint and request with component tests; add the locale-limited role end-to-end case. Done means the acceptance cases pass, including preserving resources and rejecting an unregistered rule on its field.

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

Mô tả

area:admin type:feature

Problem

Rows 4.4 to 4.7 narrow a grant to sites, locales, fields and the rows a registered rule selects, and a grant may also be limited to resources, such as the media folders of decision record 0004. A-32 edits a role and its grants and keeps these constraints as it read them. Nothing in the admin sets or changes one.

Proposal

The constraints of a grant in the role editor of A-32 (4.15):

  • Sites, from the sites the caller may manage, and locales, from the locales of those sites.
  • Fields, for a permission of a content type, from the fields of that type in GET /schema.
  • A registered row rule, picked from the rules registered for the grant's content type (#3417). Until that route is merged, a stored rule is kept and shown by its name, and a new one is typed by name, with FCMS3042 shown on the field.
  • resources, which the specification of the editor leaves out and the API has: shown as stored and kept on a save. Where the admin can name them it does, and the media folders of a media grant are the first such case; any other kind stays a list of the ids as stored.
  • A constraint that does not narrow the grant is left out of the request, as the server stores it.

Acceptance

  • An administrator limits a grant of a content type to one site, two locales and three fields, saves, and reads the same back
  • A row rule is set on a grant and refused by name when it is not registered, with the refusal on its field
  • A grant limited to resources keeps them through an edit of its other constraints
  • A user of a role limited to one locale may change an entry in that locale only, checked through the admin
  • Component tests cover each constraint and the request they make; an end-to-end case limits a role to a locale and signs in as its user

Design: docs/planning/admin-technical-spec.md, sections 4.15 and 10.7 (A-52). Rows 4.4 to 4.7. Needs A-32, and #3417 for the list of row rules. Split from A-32 when A6 was planned. Size: M.

Ngôn ngữ chính
C#
Star
567
Fork
107
Merge trung bình
1 giờ 19 phút
Pull request đã merge (30 ngày)
353

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

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 fluentcms/FluentCMS

Tất cả issue của fluentcms/FluentCMS

Issue tương tự

Thêm issue về C#

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.