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
- スター
- 179
- フォーク
- 12
- 平均マージ
- 3日 5時間
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hackmdio/hackmd-cli のほかの issue
-
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 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
hackmdio/hackmd-cli#79 · コメント 1 件 ·
hackmdio/hackmd-cli の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
danielmiessler/LifeOS#3028 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
iOS: last line of a long UITextView text is sometimes not drawn (frame a fraction of a point short)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
Koenkk/zigbee2mqtt#33855 ·
メンテナーはふだん 1 日以内に返信