[DB 2.0.2] Asset size filter causes #Asset page to crash
まだ誰も着手していません。
評価
調査の方向性
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
- Import a graph with missing PDF files
- Go to the #Asset page
- Create a filter for size zero
- 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
logseq/db-test のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
Page titles with `$$`, `$&`, `` $` `` or `$'` change when block refs are resolved対応中かも @RaphaelFakhri が 20 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
`#Asset` label is not displayed on asset nodes when `Hide from Node` is disabled対応中かも @tiensonqin が 22 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
似ている issue
-
bug SH_K
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
McNamara84/ernie#1540 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
nightly-labs/openbot#6451 ·
メンテナーはふだん 1 日以内に返信
-
Panic on live viewport resize when unstyled elements exist in display: none subtree対応中かも @GoCoder7 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DioxusLabs/blitz#1488 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
brave/adblock-lists#3068 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
SACGF/variantgrid#2755 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信