styling: no runtime validation of column configs — unknown displayer or color_rule fails silently in the browser
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 49/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- python, typescript
Línea de trabajo
Start with style_columns and the TypedDicts in styling_core.py:60-158, then trace the supported names through Displayer.ts:302 and Styler.tsx:163. Check how the column config and dataframe are available during styling. Done means invalid names or missing referenced columns fall back to the parent style, with tests covering those cases and how Python and TypeScript name lists stay aligned.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
A styling class can return a column config that is structurally a dict, passes every Python check, and is still wrong: a displayer name that no JS displayer implements, a color_rule that getStyler doesn't handle, or a val_column / exist_column naming a column that isn't in the frame. Nothing validates it on the way out. The TypedDicts in styling_core.py:60-158 are annotations only — no runtime check — and the TS types on the other side (DFWhole.ts:176) are erased at build time.
The failure is then silent or misleading:
- unknown
displayer:getBaseFormatter(Displayer.ts:302) falls through todefault:and formats the column as a string, so a numeric column silently loses its formatting. - unknown
color_rule:getStyler(Styler.tsx:163) has no default branch and returnsundefined, so the column just isn't colored. val_column/exist_columnpointing at a missing column: the rule runs against data that isn't there.
The MRO fallback added in #968 doesn't help with any of these, because nothing raises. #971 (reporting styling exceptions) doesn't either, for the same reason.
Impact
This is the remaining hole in "a user's styling subclass can't break the table." Exceptions are handled; configs that are well-formed but meaningless are not. The typo cases ('flaot', 'color_statik') are the common ones, and they present as "my formatting/color setting doesn't do anything" with nothing in the logs.
Suggested fix
Validate each column config in style_columns after it's built, before it goes on the wire:
displayer_args['displayer']is one of the known displayer names.color_map_config['color_rule']is one of the rulesgetStylerimplements.- any
val_column/exist_columnexists in the frame (style_columnsalready hasdf).
A failed check should be treated like an exception from style_column: fall back to the parent class for that column, and, once #971 lands, record the reason on the column so it's visible in the UI.
Keeping the name lists in sync between Python and TS is the part worth thinking about — one generated list, or a test that asserts the Python literals match the switch cases in Displayer.ts / Styler.tsx.
Context
Came out of reviewing #968. Related: #966 (headers lost on a styling exception, fixed in #968), #971 (surface styling exceptions in the column config).
- Lenguaje dominante
- Python
- Estrellas
- 685
- Forks
- 17
- Merge medio
- 21 h 7 min
- PR fusionados (30 d)
- 19
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de buckaroo-data/buckaroo
-
Histograms JS
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
buckaroo-data/buckaroo#1089 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Histograms
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
buckaroo-data/buckaroo#1087 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Histograms
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
buckaroo-data/buckaroo#1086 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Histograms
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
buckaroo-data/buckaroo#1083 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Histograms
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
buckaroo-data/buckaroo#1082 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de buckaroo-data/buckaroo
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
[Bug] vllm-sr config migrate drops providers.models[].deploymentPosiblemente ocupada @Bevisy la tomó hoy. Abiertoneeds-acceptance wg/developer-experience-ecosystem
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
vllm-project/semantic-router#5996 ·
Los mantenedores suelen responder en 2 días
-
bugfix low-priority plugin:abstract plugin:leyline small-effort source:discussion
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
athola/claude-night-market#1132 ·
-
Add support for Sinhala languageAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
WeblateOrg/language-data#2773 ·
Los mantenedores suelen responder en 1 día
-
[yugabyted] xcluster set_up and add_to_replication fail for database names containing - . or (Abiertokind/bug priority/medium qa_automation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
yugabyte/yugabyte-db#37324 ·
Los mantenedores suelen responder en 1 día