feat: crom ranking, rule-site attribution scores, crawler perf - #8
Open
umouyoumou-del wants to merge 1 commit into
Open
feat: crom ranking, rule-site attribution scores, crawler perf#8umouyoumou-del wants to merge 1 commit into
umouyoumou-del wants to merge 1 commit into
Conversation
- crom: add nationarea site, fix pagination (first=50 + cursor) & field names (User.attributedPages), skip pageCount=0 cross-site users - ranking: filter '(user deleted)'; use attribution scores for rule-site authors not in Wikit CIL, override Wikit 0 scores - authors: crom data source labels, empty-state prompts, activity chart dual-prop (pages/data) + monthly aggregation - crawler: CONCURRENCY 2->5, batch sleep 2.5s->600ms, listpages sleep 1s->300ms, maxSockets 10->20, global userIdCache, parallel vote upserts via Promise.all (~5x throughput) - config: drop CROM_API for rule site (keep ATTRIBUTION_PAGE), add na crom site, fix 'Bsckrooms'->'Backrooms' - search: JSON deserialization compat for legacy string data Plus prior unmerged work (staff panel, admin endpoints, save-page tooling, SMTP test script). Squash-pushed via Git Data API due to github.com direct push block.
umouyoumou-del
force-pushed
the
feat/crom-ranking-crawler-perf
branch
from
August 21, 2026 16:29
9340173 to
a8b4ed1
Compare
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.
概述
本 PR 合并近期未入库的全量工作:crom 排行集成、规则怪谈档案馆归属分数、
(user deleted)过滤、作者活力图修复、爬虫性能优化,以及此次追加的 CROM 站点跳过 + 连接池修复。主要变更
1. 爬虫性能优化(~5x,已部署)
auto-crawler.js:CONCURRENCY2→5,批次 sleep 2.5s→600ms,listpages 间隔 1s→300ms,maxSockets10→20userIdCache改为全局复用,投票 upsert 改用Promise.all并行2. CROM 站点跳过(本次新增)
auto-crawler.js:对配置了CROM_API的站点(brcn、na、if)直接跳过逐页爬取,由auto-attribution.js通过 crom API 处理数据3. Prisma 连接池修复(本次新增)
lib/prisma.js:连接池从默认 9 增至 20,超时从 10s 增至 30sTimed out fetching a new connection错误4. 管理面板显示修复(本次新增)
pages/api/admin/crawler-status.js:CROM 站点标记为skipped状态pages/admin.js:新增"归属服务"徽章(天蓝色),避免 CROM 站点一直显示"等待"5. 其他(此前合入)
(user deleted)全链路过滤、作者活力图修复等验证
node --check全部通过跳过 if(crom 站点,由 attribution 服务处理))error重置为pending(将由 attribution 服务处理)变更范围
15 文件(含新增的 lib/prisma.js 修改、crawler-status.js、admin.js)