[BUG] dcc.Upload contents and dcc.Geolocation position docstrings describe the wrong value format
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Facilidade para iniciantes
- 30/100
- Tipo de issue
- Documentação
- Clareza
- Claramente especificada
- Status de atividade
- Estagnada
- Stack de tecnologia
- python, react
- Domínio
- documentation, frontend
Direção de pesquisa
Update the dcc.Upload.contents and dcc.Geolocation.position docstrings in the cited component files: components/dash-core-components/src/components/Upload.react.js and src/components/Geolocation.react.js. Read the current wording alongside the behavior cited in the issue, then check the generated Python help for both components. Done when the help describes contents as a base64 data URL and unavailable position fields as null (None in Python); pull request #4126 is already open.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Describe your context
Current dev (dash 4.5.0). Docs only; no specific browser or OS.
Describe the bug
Two dcc prop docstrings describe a value format the component does not produce. Both reach users through the generated Python help (help(dcc.Upload), help(dcc.Geolocation)).
-
dcc.Upload.contentssays "The contents of the uploaded file as a binary string" (components/dash-core-components/src/components/Upload.react.js:29). The component reads every file withreader.readAsDataURL(file)(src/fragments/Upload.react.js:189) and passesreader.resultthrough unchanged (:173), socontentsis a base64 data URL (data:<mime type>;base64,<data>), which callbacks have to split and base64-decode. -
dcc.Geolocation.positionsays the optional fields are included "when available, otherwise it will be NaN" (src/components/Geolocation.react.js:122). The component sets each field with?? null(:59-65), so an unavailable value arrives asnull(Nonein a Python callback), not NaN.
Expected behavior
contents: "The contents of the uploaded file as a base64 encoded data URL (data:<mime type>;base64,<data>)".position: "... otherwise it will be null (Nonein Python)".
I'm happy to send the PR for both lines.
(Found and written up with AI assistance, Claude Code; the cited lines were checked against dev.)
- Linguagem predominante
- Python
- Estrelas
- 24.5k
- Forks
- 2.3k
- Merge médio
- 3d 7h
- PRs com merge (30d)
- 30
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de plotly/dash
-
P2 plotly-internal size: 1 task
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Extract graph schema validation into properly named testTalvez já em andamento @Nice6042 assumiu há 90 dias. Abertagood first issue P3 size: 1 task
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
plotly/dash#3735 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
[BUG] Patch.update mutates a shared mapping and rewrites earlier mergesTalvez já em andamento @peterolkhov assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
Mantenedores costumam responder em até 1 dia
-
[BUG] dcc.Dropdown: virtualized list keeps the height measured at opening when options grow while the menu is openTalvez já em andamento @KoolADE85 assumiu há 2 dias. Abertabug P3 size: 1
plotly/dash#4131 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[BUG] `set_props` streamingTalvez já em andamento @BSd3v assumiu há 5 dias. Abertabug P3 size: 1
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
plotly/dash#4127 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de plotly/dash
Issues semelhantes
-
[BUG] HTTP lifecycle dispatch treats a NO_PROXY-only environment as corporate egress and skips the resolve-and-pinned sessionTalvez já em andamento @bodapatisaikrishna assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
[integration]: NoMacSandboxAbertaexternal
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
langchain-ai/docs#7652 ·
Mantenedores costumam responder em até 1 dia
-
[oblt-aw][autodoc] Document new e2e-secret-leak-artifacts workflow and update e2e-all leaf listAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
elastic/oblt-aw#2513 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug p2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
amd/gaia#7326 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
NCAR/CLM-Tutorial#113 · 1 comentário ·
Mantenedores costumam responder em até 1 dia