[DB 2.0.2] Asset size filter causes #Asset page to crash

オープン
#1,508 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
clojure
領域
frontend

調査の方向性

Start by reproducing the crash on the #Asset page with a size-zero filter after importing a graph with missing PDFs; compare the affected graph with the Demo graph. The developer console reports Expected number or lookup ref for entity id, got 0, and the issue identifies logseq.property.table/filters as the view property whose removal restores access. Done means the filter no longer crashes the page, or the view can be reset gracefully.

索引モデルが issue の本文から書いたものです。

説明

Search first
  • I searched and no similar issues were found
What Happened?

After an import with missing PDFs, the #Asset page was super sluggish. When I created a filter to find items of size 0, the page crashed and kept crashing upon opening the page. I was not able to open the #Asset page at all.

The developer console showed:

Expected number or lookup ref for entity id, got 0

The same page worked correctly in the Demo graph.

After deleting the filter with the CLI (and the missing PDF records), the page worked again.

Reproduce the Bug
  1. Import a graph with missing PDF files
  2. Go to the #Asset page
  3. Create a filter for size zero
  4. See crash
Expected Behavior

The page should not crash in the first place.

In beast case, Logseq would handle it gracefully or provide a way to reset the view.

Screenshots

No response

Desktop or Mobile Platform Information

Linux, zip based desktop app

Additional Context

Removing the logseq.property.table/filters property from the affected view using the CLI fixed it.

logseq --graph "GRAPH_NAME" upsert block
--uuid VIEW_UUID
--remove-properties '[:logseq.property.table/filters]'

Are you willing to submit a PR? If you know how to fix the bug.
  • I'm willing to submit a PR (Thank you!)
主要言語
言語のデータがありません
スター
29
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

logseq/db-test のほかの issue

logseq/db-test の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。