to_csv() ignores reference-baseline deviations even when --reference is used
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start in faircode/report.py, especially to_csv() lines 38-72, and compare its proxy-hint section with reference rendering in to_terminal() at line 133 and to_html() at line 331. Update the CSV export to include the stated reference fields, then mirror the change in the web buildCsvReport(). Verify the CLI reproduction with --reference and confirm the output retains expected, actual, delta, and deviation data.
由索引模型根据 Issue 内容生成。
描述
Where: faircode/report.py to_csv() (lines 38-72).
Current gap: With --reference, each dimension carries d["reference"] (expected/actual/delta per group, plus deviation). to_terminal() (line 133) and to_html() (line 331) both render it, but the CSV export drops it, so faircode profile data.csv --reference ref.csv --csv out.csv produces a file that has lost the main point of the run.
Repro:
$ grep -n "reference" faircode/report.py
(matches at 133 and 331, none in 38-72)
Suggested approach: append a reference section (dimension,label,expected,actual,delta,deviation) when any dimension has reference, mirroring the proxy-hint section added for #760; mirror it in the web buildCsvReport().
- 主要语言
- HTML
- 星标
- 47
- 派生
- 45
- 平均合并
- 2 小时 50 分钟
- 30 天内合并 PR
- 85
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
yakew7/Fair-Code 的其他 Issue
-
community
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
community
难度 1/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复
-
check_contributors.py --stub cannot write the closing issue number可能已有人在做 @obethgeoff10c-ops 于 1 天前认领。 未关闭community enhancement
难度 2/5 1-3 小时 新手友好度 78/100
yakew7/Fair-Code#1308 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
community enhancement
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
The generated-files builder timeout cannot be changed可能已有人在做 @renuvenugopal178 于 2 天前认领。 未关闭enhancement good first issue tooling
难度 2/5 1-3 小时 新手友好度 82/100
yakew7/Fair-Code#1306 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
criticalmanufacturing/cli#909 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
vercel-labs/just-bash#756 ·
维护者通常 1 天内回复
-
area/auth comp/cli P2 type/feature
难度 2/5 1-3 小时 新手友好度 66/100
NousResearch/hermes-agent#153245 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 94/100
维护者通常 1 天内回复
-
bug need-triage SaaS security
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复