Repository navigation
Conversation
关注一个学院,它发了新通知就收到消息,不用天天去官网看(总体设计 §11.4)。 - follows、announced_notices 表(迁移 0009),归 reminders 模块;建表时把已经在表上的通知都记成发过了,上线前的不算新通知 - 学院页名称旁边有「关注」和关注人数,院校清单里每个学院旁边也能关注,禁言的也能关注 - 「我的」加「关注」:按学校排,每个学院写着这一届的项目数、最近一条通知的日期,还没收录的标「未收录」并附求收录的进度 - 来源每交一轮,把它还没发过的、有项目的通知按学院合成一条「学院有新通知」,之前没读成的读成了也算;审核把项目放好时补发那一条。来源第一轮成功读列表时往回翻补的、同一个网址在别的来源里先见过的不算;同一条通知对同一个学院只发一次 - 关注还没收录的学院算替它求收录:没人提过的新建一条,同一个人关注又同求只算一票,取消关注就撤了;求收录有结果时关注着的人也收到。对上了学院的求收录不能并进没对上的,免得关注算的票丢了 - 关注的路由和服务放在 sources:它要同时写关注和求收录,而 reminders 不能反过来引用 sources - 有关注的人也每小时从鼠洞刷新一次身份
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联
路线图 #2 二期的「关注学院」。
改了什么
关注一个学院,它发了新通知就收到消息,不用天天去官网看(总体设计 §11.4)。
怎么验证的
pnpm check:类型检查、lint、格式和 145 个测试通过;新测试覆盖关注和人数、访客和冻结、关注算同求和撤回、「我的 · 关注」、收录时告诉关注的人、一轮的新通知合成一条、往回翻补的和别的来源先见过的不算、失败的第一轮、同一轮交两次、审核放好时补发影响
PUT、DELETE /colleges/{id}/follow和GET /me/follows?cohort=;学院详情多了followers、following,求收录列表多了following,mine和votes算上关注;合并求收录多了409 merge_into_matched。MCP 工具等 Agent 接入补上;抓取节点不用改