Updating notes does not update all lines
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
Línea de trabajo
Empieza reproduciendo el problema con los comandos hackmd-cli notes create, hackmd-cli notes update y hackmd-cli export usando los pares de contenido de este informe. Compara la nota exportada después de una y de dos actualizaciones, y determina si la CLI puede solucionar la respuesta inconsistente de HackMD API; se considera terminado cuando la línea final se actualiza de forma fiable.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
First of all, thanks for maintaining this tool.
Sometimes, when using the notes update command, the note is not fully updated. Here is a fairly small example/reproduction:
$ hackmd-cli notes create --content='
aa
```
aab
```
aab'
ID Title User path Team path
────────────────────── ──────── ───────── ─────────
59bbDYGPSESuaJuBh_fD4A Untitled gitmd
to create a note with some content. Now, update it with some other content:
$ hackmd-cli notes update --noteId 59bbDYGPSESuaJuBh_fD4A --content='
aa
```json
aabc
```
aabc'
However, the last modification (the last line) is not taken into account:
$ hackmd-cli export --noteId 59bbDYGPSESuaJuBh_fD4A
aa
```json
aabc
```
aab
If I do the hackmd-cli notes update command again, the content of the note matches what is required.
However, I've seen some old content/new content pairs where hackmd-cli notes update does nothing...
This seems to be a hackmd API bug (rather than the CLI), as I tried to directly write the HTTP requests, and it fails. But I could not find any github repository where we can file issues on the API itself. Feel free to redirect me if I'm not opening the issue in the right repo!
(while writing the HTTP requests by hand, I've also seen a case where writing a newline at the end of the JSON payload would change the outcome of the "update" API request... if that helps to track the bug)
- Lenguaje dominante
- TypeScript
- Estrellas
- 176
- Forks
- 13
- Merge medio
- 4 h 35 min
- PR fusionados (30 d)
- 4
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
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 hackmdio/hackmd-cli
-
Config command Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
hackmdio/hackmd-cli#45 · 2 comentarios ·
-
login problem Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
hackmdio/hackmd-cli#108 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
hackmdio/hackmd-cli#105 · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
hackmdio/hackmd-cli#89 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
hackmdio/hackmd-cli#87 ·
Todos los issues de hackmdio/hackmd-cli
Issues similares
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
Mend: dependency security vulnerability untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100