Repository navigation
feat: 管理端错误记录支持按平台筛选 - #972
Merged
Merged
Conversation
Owner
Author
|
四小时维护独立源码复审:精确 当前尚不可合并:正文明确「截图待补」,尚缺真实 CSS 渲染的脱敏 before/after GitHub 原生附件及捕获 head/基线;精确 head CI 仍在运行。请当前实现/发布作者负责补充到同一个 PR,不重复开 PR。额外建议补 deferred 逆序请求成功/失败、observer errors、跨 usage/errors 公告独立关闭、真实 DB unknown+用户/分组/日期组合过滤回归;这些是覆盖缺口,不冒充已确认产品 bug。 本维护任务没有修改本分支或启动竞争 writer;父级维护任务负责最终附件链接、模板、全量 checks/statuses 与 live base 回读。Agent:Hermes 父级与独立只读子 Agent,模型均为 |
wubowuboOne
added a commit
to wubowuboOne/sub2api
that referenced
this pull request
Nov 22, 2026
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.
解决的问题与行为变化
管理员在使用记录选择平台后,切到错误记录时原先会丢失平台条件。现在两个页签共用选择,切换平台从第一页查询,列表和总数都按错误发生时记录的平台筛选。快速连续选择平台时,仅展示最新查询的响应。
关联记录与来源
沿用 #836 的管理端平台目录与历史数据口径。本次改动基于
production的84c8d869f。管理员新功能提示
错误记录的平台选择器登记
admin-error-platform-filter,仅此一个入口;使用记录保留其原提示 ID。关闭状态由已有管理员提示组件按管理员持久保存。已把新 ID 加入现有关闭、持久化及跨公告回归用例。复现与验收
platform=openai。实际验证
git diff --check兼容性与运行影响
复用现有
GET /admin/ops/errors的可选platform参数。具体平台保持等值查询,选择全部时省略参数。按已保存的错误平台分组,无需回填或数据库迁移。用户和观察员的权限沿用原入口。协议、转发与调度补充不适用。文档与用户可见变化
管理端「使用记录 → 错误记录」的筛选区新增平台下拉框,中英文沿用同一平台目录。以下截图使用真实页面组件及模拟数据,覆盖变更前的错误记录和选中 OpenAI 后的结果。基线为
84c8d869f,变更版本为61b1f9b86。下载前后截图Agent 使用声明
Codex(GPT-6,具体模型 ID 和推理强度未在会话提供)负责实现、回归用例和 PR 正文。
提交前自查