Normalise Entities (Many to Many relations)
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 重构
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
首先定位 Profile 实体,以及公开 followers、following 和当前 boolean flags 的查询定义。检查 user-follow 关系是如何表示的,然后与维护者明确关系模型和无状态查询行为。完成的标准是:在不使用特定于用户的 flags 的情况下,实现预期的实体结构和关系更新,并验证相关查询。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- TypeScript
- 星标
- 54
- 派生
- 14
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Developer-DAO/Lens-Graph-Subgraph 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
Developer-DAO/Lens-Graph-Subgraph#31 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
-
Developer-DAO/Lens-Graph-Subgraph#19 · 3 条评论 · 已指派 1 人 ·
-
Developer-DAO/Lens-Graph-Subgraph#18 · 8 条评论 · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 35/100
Developer-DAO/Lens-Graph-Subgraph#9 · 4 条评论 ·
查看 Developer-DAO/Lens-Graph-Subgraph 的全部 Issue
相似的 Issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
-
Crush 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
catppuccin/catppuccin#3125 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ElementsProject/cln-application#167 · 1 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Quantco/pnpm-licenses#17 ·
-
难度 2/5 1-3 小时 新手友好度 75/100