Normalise Entities (Many to Many relations)
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
- 25/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
Bắt đầu bằng cách xác định entity Profile và các định nghĩa query cung cấp followers, following cùng các boolean flags hiện tại. Xem xét cách biểu diễn một quan hệ user-follow, sau đó làm rõ với các maintainer về mô hình quan hệ và hành vi query stateless. Công việc được xem là hoàn tất khi hình dạng entity dự kiến và các cập nhật quan hệ được triển khai mà không có các flags dành riêng cho từng người dùng, đồng thời các query liên quan đã được xác minh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Contact Details
alexandermatthew12@gmail.com
What is the expected behavior?
Stateless query
We should normalise, such as Profile having followers & following which is an array of IDs
In addition, if a user follows my Profile
We should append a new Profile into the followers field, and append Profile to following field, for the follower Profile
What is the current behavior?
We should not have boolean flags such as hasCollectedByMe, isFollowingMe, etc
We want to make the query stateless, meaning that there is no "me" object when querying here
Reproduction steps
No response
Version
No response
Relevant log output
No response
Your Environment
- Version used:
- Environment name and version (e.g. Chrome 39, node.js 5.4):
- Operating System and version (desktop or mobile):
- Link to your project:
Code of Conduct
- I agree to follow this project's Code of Conduct
- Ngôn ngữ chính
- TypeScript
- Star
- 54
- Fork
- 14
- 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
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 Developer-DAO/Lens-Graph-Subgraph
-
Null Profile Stats Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Developer-DAO/Lens-Graph-Subgraph#31 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
CollectNFTTransferred Đang mở
Developer-DAO/Lens-Graph-Subgraph#19 · 3 bình luận · 1 người được giao ·
-
FollowNFTTransferred Đang mở
Developer-DAO/Lens-Graph-Subgraph#18 · 8 bình luận · 1 người được giao ·
-
Add event handlers Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Developer-DAO/Lens-Graph-Subgraph#9 · 4 bình luận ·
Tất cả issue của Developer-DAO/Lens-Graph-Subgraph
Issue tương tự
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Crush Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
ElementsProject/cln-application#167 · 1 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Quantco/pnpm-licenses#17 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100