Repository navigation
feat: filter admin usage details by historical platform - #836
Merged
Merged
Conversation
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.
解决的问题与行为变化
bb76b323f72c20315a58295cd9b18831200e62db。普通合并已验收的 test: 补充鹈鹕账号与分组真实定时 E2E 对账 #832 / productionf895ea743f34a4c4ab6c9d01c01e13c931625a6e;仅引入其7个CI/harness文件,平台补丁逐字节保持不变。最终新head验收通过,已ready并固定head合并:mergee10fe8c43f7ccc6bf3360824c0ed11031f596389(2026-11-13T15:59:58Z);未release/deploy。关联记录与来源
ccf997c73868083d96c0bec56e71c1a34d26c98a,baseproduction。管理员新功能提示
admin-usage-platform-filter-initial-announcement,登记项NEW_FEATURE_NOTICES.adminUsagePlatform。复现与验收
711e2219c。真实 mounted UI 缺少控件断言失败;真实 PostgreSQL 每个平台 expected 1 / actual 16。非编译/环境错误,All 对照通过。54c7387da,三个 dedicated jobs 全通过。UsageView.platform.spec.ts、UsageFilters.spec.ts、NewFeatureBadge.spec.ts、usage_log_platform*_test.go、usage_handler_platform_test.go、usage_platform_snapshot_test.go、既有 regional settlement 回归。协议、调度或传输改动补充(相关时填写)
不适用:未改请求协议、重试、调度、流式传输或计费。仅在已有 usage 写入时携带 provider 快照,regional settlement 从已有 durable allocation 复制。
实际验证
当前整合 head 最终复验
以下均对应
bb76b323f72c20315a58295cd9b18831200e62db,不是复用旧head绿色:6914182116aa8f6904ebb3b69cdcbd5fc1b1d4b8;未改邻居源码下列既有 GREEN 对应整合前 head
54c7387daf9981b3963bde6f70426b37ef659524,不冒称当前整合head的结果。原平台源码/测试相对新base补丁保持不变;当前整合head的新执行结果见下表。git diff --checkpnpm --dir frontend exec vitest run src/components/admin/usage/__tests__/UsageFilters.spec.ts src/views/admin/__tests__/UsageView.platform.spec.ts src/views/admin/__tests__/UsageView.spec.ts src/components/common/__tests__/NewFeatureBadge.spec.tsmake test-frontendpnpm --dir frontend run buildgo build -o "$RUNNER_TEMP/sub2api-platform" ./cmd/server;该 binary-versiongo generate ./ent && git diff --exit-code -- entgo test -tags=unit ./internal/repository ./internal/service ./internal/handler/admin -run 'Test(Usage|AdminUsage|PrepareUsage|GatewayServiceRecordUsage|OpenAIGatewayServiceRecordUsage|Dashboard|FinalizeLive|BatchImage)' -count=1 -v -timeout=15mgo test -tags=integration ./internal/repository -run 'TestUsage(Log|Platform)|TestRegionalSubscriptionCanonicalUsesDurableFundingMetadata|TestRegionalLegacyUnknownAllocation' -count=1 -v -timeout=15mnode .github/fixtures/admin-usage-platform-filter/browser.mjsgh api ASSET_URL读回浏览器基线有两份:改UI前已成功采集的 run43439988620(capture
12babcdf6、UI sourceccf997c73)保留;最终run再固定读取ccf997c73原始组件,after为最终head。均为明确标注的 synthetic fixtures,非生产截图。最终浏览器 artifact · 最终 backend raw test artifact
历史失败如实保留:首轮GREEN有SQL参数位置断言、fixture timer隔离及baseline import解析问题;d10 SQL全套发现新测试留下4条记录,54c7387da仅补test-owned清理后全套通过。原生上传旧policy端点422已通过supervisor验证的正式asset上传路径解决。
全仓库门禁仍必须通过:历史 Pelican E2E job 使用 #832 合入后的新工作流,却把 APP_SHA/HARNESS_SHA 固定到整合前
54c7387da,所以找不到detail-identity.test.mjs。已核实文件在 production / #832 中存在,不是上游漏提交;现已普通合并该base,未删测试、未修改harness绕过、未重复开修复PR。当前整合head的Pelican及全部最新attempt现已真实完成并通过,详见当前head最终复验;历史失败仍保留。兼容性与运行影响
platform,具体provider /unknown/ 省略全部;非法和composite返回400,无新配置。默认分页性能保留,选中平台/导出精确count。usage_logs.platform;344并发建立(platform,created_at DESC,id DESC),注册invalid-index重试清理。旧数据不回填,不从当前实体猜历史;Unknown/All均可访问。核心网关保存选中账号provider,Live/批量图片保存已知provider,regional从admission allocation复制;旧排队payload/缺失历史上下文保持Unknown。文档与用户可见变化
中文/英文平台下拉、历史Unknown说明与新功能提示,沿用紧凑响应式UI。原生附件已读回核对哈希:
本机证据绝对路径:
/data/development/artifacts/admin-usage-platform-filter/head-54c7387da/;完整命令/日志hash:verification-manifest.json;原生URL/source/capture/readback hash:native-attachments.json(均位于同一任务证据根目录)。PNG未提交源码。Agent 使用声明
gpt-6-astra,推理强度xhigh(supervisor 从该线程实际 rollout 的turn_context.model/effort独立核实);fast 仅 requested,实际交付 tier 未确认。gpt-6.1-sol,推理强度未知(运行时未暴露);独立定位workflow/旧head不匹配,协调原Astra/xhigh writer普通合并base;验证patch逐字节不变、原始日志、分页全部attempt与live base,执行授权最终门禁。fast仅requested。01a1d537-bee5-79d2-8a40-c7649c86d42f。独审 blocker → diff / 最终远程回归
提交前自查