Custom message routing
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- openapi, typescript
- Lĩnh vực
- api, authorization, backend-api-design
Hướng nghiên cứu
Issue không nêu tệp, bài kiểm thử hoặc điểm vào nào. Hãy bắt đầu bằng cách xem xét các TypeScript typings và trình tạo OpenAPI v3 của repository, sau đó làm rõ các route tùy chỉnh cùng những quy tắc về quyền, tính bất biến và việc xóa của chúng phù hợp với API như thế nào. Công việc được xem là hoàn tất khi mô hình route và hành vi vòng đời đã được đặc tả và triển khai cùng với validation và độ bao phủ kiểm thử.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What do you want to see?
This could be useful for cross-posting and IoT-related use cases. Custom route management should be permissions-gated to prevent spamming by randomly creating message routes.
The semantics should be as follows: server-wide permissions allow you to create, alter and drop a message route targeting any channel, while per-guild permission only allows you to do so while requiring you to have either:
- Posting, storage, view all within that guild
- Posting channel is null (meaning that route is read-only) and view channel is within that guild, no constraints on storage channel
Routing rule
A routing rule shall consist of eight elements:
- Timestamp of the registration (stored as snowflake)
- Source channel
- Storage channel
- Sink channel
- Source users (user, group or role ID)
- Target users (user, group or role ID)
- Valid since timestamp
- Valid until timestamp
Invariants
- Valid since cannot be earlier than time of registration
- Valid until cannot be earlier than valid since
- Source user set has to have message posting permission in the source channel at the time of use
- Event type validity checks are done based on the storage channel
- Target user set has to have read messages permission in the source channel at the time of use
- Each routing rule is considered immutable once created, except for valid until timestamp, which can be set to any future time while the routing rule is still in effect
A routing rule can only be deleted in either of the following cases:
- none of the source channels are present
- none of the storage channels are present
- none of the sink channels are present
- the routing rule is not in effect AND no messages are affected by deletion of the routing rule
- Ngôn ngữ chính
- TypeScript
- Star
- 42
- Fork
- 34
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
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 stoatchat/javascript-client-api
-
bug: 401 Unauthorized Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
stoatchat/javascript-client-api#34 · 1 bình luận ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
stoatchat/javascript-client-api#29 · 1 reaction ·
-
feature request: Make GET channels/{target}/messages use request body instead of query parameters Đang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
stoatchat/javascript-client-api#28 · 1 bình luận ·
-
feat: add opt-in chat features Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
stoatchat/javascript-client-api#18 · 2 bình luận · 4 reaction ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
stoatchat/javascript-client-api#16 · 2 bình luận · 8 reaction ·
Tất cả issue của stoatchat/javascript-client-api
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
area:tools bug good first issue help wanted priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
newrelic-experimental/preflight#793 · 1 bình luận ·
-
bug 🐞
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
BasedHardware/omi#15320 ·