Updating notes does not update all lines
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- typescript
調査の方向性
まず、このレポートのコンテンツペアを使って、hackmd-cli notes create、hackmd-cli notes update、hackmd-cli export コマンドで問題を再現します。1 回更新した後と 2 回更新した後のエクスポートされたノートを比較し、CLI で一貫しない HackMD API のレスポンスに対処できるかを判断してください。完了の条件は、最終行が確実に更新されることです。
索引モデルが issue の本文から書いたものです。
説明
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)
- 主要言語
- TypeScript
- スター
- 176
- フォーク
- 13
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 5
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hackmdio/hackmd-cli のほかの issue
-
Config command オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
hackmdio/hackmd-cli#45 · コメント 2 件 ·
-
login problem オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
hackmdio/hackmd-cli#108 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
hackmdio/hackmd-cli#105 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
hackmdio/hackmd-cli#89 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
hackmdio/hackmd-cli#87 ·
hackmdio/hackmd-cli の issue をすべて見る
似ている issue
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100