Repository navigation
fix(billing): make historical money projections explicit - #811
Merged
Merged
Conversation
|
You have reached your Codex usage limits for security reviews. Please try again later. |
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.
历史日志、使用量图表和 finance export 中的旧额度,可能按当前额度基准被展示为错误的法币金额;NULL 额度也会被显示成真实零,未知模型额度会制造 0%/100% 占比。本 PR 增加只读历史金额投影:单笔金额只信日志捕获的历史 credits-per-USD,累计用户用量复用 migration projector,基准或原值缺失时明确显示未知/原单位。原始历史值、当前钱包余额和原支付币种金额不修改。
invalid_stored_quota显示—,真实零且缺 K 仍显示0 Raw credits。任一模型原始额度未知时,整个期间的占比均为空;真实 0+1 仍为 0%/100%。本地验证(最终 head
2758ebb78942c3d81ebeb1d28dc7045448f438d1,base7be6ee81a5089a558cad34d95851bcc8bb80061c):go vet ./model ./controller与go build -o /dev/null .PASS。两项 PostgreSQL fixture 因未配置一次性 loopback PostgreSQL DSN 跳过:TestTokenLogOptionalPaginationPostgres、TestUsageProjectionSnapshotPostgresKeepsConcurrentHistoricalRefundConsistent。SQLite WAL 并发快照测试已通过,不能代替真实 PostgreSQL 验证。git diff --checkPASS;独立复核确认 54 个最终 blob、测试日志 SHA 和两项 P2 修复。验证限制:最终源码的完整 Web build/bundle 与全套 Web 测试未重跑。旧 v3 的 115 个测试、build/bundle 只保留有限证据,因为实际使用 Bun 1.4.0-canary.1,不能当成固定工具链或最终源码完整构建证明。全树 Web lint 保留未改动
home/sculptures/marks.test.ts的 4 条 import(namespace) 错误,改动文件 lint 通过。与固定 #807 head8003a8909aa848b309044f61662630625904dacd及含 #809 的 main5cc7c7a2ccc0fe8a265debe7bb99cce0c48eb99b合并预览无冲突,整合树尚未测试。没有浏览器、负载或生产验收;该 PR 不纳入当前 Web145 发布,不代表合并、正式发布或部署资格。