to_csv() ignores reference-baseline deviations even when --reference is used

Cerrado
#780 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
cli, data

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug help wanted

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().

Lenguaje dominante
HTML
Estrellas
47
Forks
45
Merge medio
3 h 24 min
PR fusionados (30 d)
101

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de yakew7/Fair-Code

Todos los issues de yakew7/Fair-Code

Issues similares

Más issues de CLI

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.