Updating notes does not update all lines
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
Direzione di ricerca
Inizia riproducendo il problema con i comandi hackmd-cli notes create, hackmd-cli notes update e hackmd-cli export utilizzando le coppie di contenuti riportate in questo report. Confronta la nota esportata dopo uno e dopo due aggiornamenti e determina se la CLI può gestire la risposta incoerente di HackMD API; il lavoro è completato quando l'ultima riga viene aggiornata in modo affidabile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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)
- Lingua principale
- TypeScript
- Stelle
- 176
- Fork
- 13
- Merge medio
- 1g 4h
- PR unite (30g)
- 5
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hackmdio/hackmd-cli
-
Config command Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
hackmdio/hackmd-cli#45 · 2 commenti ·
-
login problem Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
hackmdio/hackmd-cli#108 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
hackmdio/hackmd-cli#105 · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
hackmdio/hackmd-cli#89 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
hackmdio/hackmd-cli#87 ·
Tutte le issue di hackmdio/hackmd-cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
bug v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
modelcontextprotocol/inspector#2458 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
carbon-design-system/ibm-products#9907 ·