Metadata not generated correctly for Typescript components
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
- Área
- documentation
Línea de trabajo
Empieza rastreando cómo se genera metadata.json para las props de componentes de TypeScript, usando el ejemplo persistence?: boolean | string | number para reproducir el problema. Se considera terminado cuando la unión generada conserva boolean, los docstrings del componente lo reflejan y establecer persistence=True ya no produce la advertencia indicada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
With TypeScript components, the metadata.json file is not generated correctly in cases where there is a union with a boolean.
For example,
persistence?: boolean | string | number;
The metadata.json file only includes the string and number but not the boolean.
"persistence": {
"description": "Used to allow user interactions in this component to be persisted when\nthe component - or the page - is refreshed. If `persisted` is truthy and\nhasn't changed from its previous value, a `value` that the user has\nchanged while using the app will keep that change, as long as\nthe new `value` also matches what was given originally.\nUsed in conjunction with `persistence_type`.",
"required": false,
"type": {
"name": "union",
"value": [
{
"name": "string",
"raw": "string"
},
{
"name": "number",
"raw": "number"
}
],
"raw": "string | number | boolean"
}
},
The docstrings are not generated correctly:
Also, setting the persistence=True on the component generates this warning in the console:
- Lenguaje dominante
- Python
- Estrellas
- 24.4k
- Forks
- 2.3k
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 13
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 plotly/dash
-
good first issue P3 size: 1 task
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
enhancement P3 size: 10+
-
P2 size: 1 task
-
enhancement P3 size: 1
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
-
bug P2 size: 5
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Todos los issues de plotly/dash
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
zostera/django-bootstrap4#894 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
use-agent-os/agent-os#3276 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
NousResearch/hermes-agent#117848 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
zilliztech/memsearch#759 ·