Community posts: document storage and history for people; later improvements

Đang mở Phù hợp với người mới
#508 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/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
Lĩnh vực
documentation

Hướng nghiên cứu

Đọc docs/COLLABORATION_HANDOFF.md và các tài liệu hướng đến người dùng docs/PEOPLE_CONVERSATIONS.md cùng docs/COLLABORATION_NETWORK_PROFILE.md. Thay thế các phần giải thích dành cho người dùng đang nằm rải rác bằng một mục ngắn bao gồm hành vi lưu trữ, khả năng hiển thị, lịch sử và tệp Library đã nêu; giữ thông tin chi tiết dành cho nhà phát triển trong tài liệu handoff và liên kết đến mục mới. Hoàn tất khi mọi người có thể tìm thấy một phần giải thích rõ ràng duy nhất và tài liệu handoff dẫn đến phần đó.

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

Mô tả

How Community posts are stored and passed on works, but it is documented only for developers and in pieces (docs/COLLABORATION_HANDOFF.md:79-80 has the 24 h / 200 posts / 1 MiB rule; docs/PEOPLE_CONVERSATIONS.md and docs/COLLABORATION_NETWORK_PROFILE.md cover the protocol). No doc tells a person what happens to a post.

Facts (source at 8a74b669c):

  • Each Home keeps the posts Chat shows (newest 500 per conversation, no age limit) and the signed originals it passes on (24 h, at most 200 posts and 1 MiB). Both are plain JSON in the Home's data folder.
  • No server stores posts. The seed's Community node relays gossip and keeps nothing on disk.
  • A Home that was offline gets missed posts only from Homes online now, only if both sides show presence, and only from the last 24 h.
  • Posts are signed but not encrypted: every member, and every node on the topic including the seed hub, can read them.
  • A post cannot be deleted or edited; other Homes keep it until it falls out of their newest 500.
  • A Library file posted in Community stays on the sender's Home; only the sender's contacts can fetch it while that Home runs.

1. Document it (replace, not add): one short section in the user docs, built from the facts above, that replaces the scattered user-facing bits; the developer detail stays in COLLABORATION_HANDOFF.md and links to it.

2. Improvements to decide later:

  • Delete your own post (a signed retraction that other Homes honor).
  • Longer history: catch-up beyond 24 h and 200 posts, and catch-up that does not require showing presence.
  • Encrypt stored posts at rest, like the per-person direct-message store.
  • Private Communities: membership instead of the open grant, and posts encrypted to members.
  • Say in Chat, once and briefly, that Community posts are public.
Ngôn ngữ chính
Rust
Star
6
Fork
2
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
42

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 elastos/elastos-runtime

Tất cả issue của elastos/elastos-runtime

Issue tương tự

Thêm issue về Rust

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.