Skip to content

Clicking a tag node in the graph reports an error #7176

Closed
@nekrondev

Description

@nekrondev
Contributor

关系图点击标签节点报错

该问题是否已经被报告过了? Is there an existing issue for this?

  • 我已经搜索了 Issues,没有发现类似问题
    I have searched the existing issues

该问题是否能够在默认主题(daylight/midnight)下重现? Can the issue be reproduced with the default theme (daylight/midnight)?

  • 我能够在默认主题下重现该问题
    I was able to reproduce the issue with the default theme

描述问题 Describe the problem

  • Open the SiYuan User Guide
    • Open the Global Graph node map and set the following display options
      • Tag enabled
      • Arrow enabled
    • Search for Note tag in the Global Graph
      • You will see a couple of tags and there dependencies
      • Clicking on one of the tag nodes results in an error that the block id is unknown

期待的结果 Expected result

Clicking on a tag node in Global Graph should open the search window displaying all blocks where the tag had been found like using the editor.

截屏或者录屏演示 Screenshot or screen recording presentation

Display options used for Global Graph
image

Error message when clicking a tag node
image

Example (Expected behaviour when #Content Block# node was clicked)
image

版本环境 Version environment

- Version:v2.7.0 
- Operating System: Windows 10 (additionally I run a Docker-based cloud installation with the same bug)
- Browser (if used): Firefox 108.0.2 (64-bit) used for the cloud installation

日志文件 Log file

I 2023/01/27 09:38:45 runtime.go:46: kernel is booting:
    * ver [2.7.0]
    * arch [amd64]
    * pid [6656]
    * runtime mode [prod]
    * working directory [C:\Users\HBE\AppData\Local\Programs\SiYuan\resources]
    * read only [false]
    * container [std]
    * database [ver=20220501]
    * workspace directory [C:\Users\HBE\Documents\siyuan]
I 2023/01/27 09:38:45 working.go:396: built-in pandoc [ver=2.19.2, bin=C:\Users\HBE\Documents\siyuan\temp\pandoc\bin\pandoc.exe]
I 2023/01/27 09:38:45 runtime.go:91: use network proxy [system]
I 2023/01/27 09:38:45 serve.go:111: kernel [pid=6656] http server [127.0.0.1:50538] is booting
I 2023/01/27 09:38:45 conf.go:614: database size [5.0 MB], tree/block count [60/1900]
I 2023/01/27 09:38:45 working.go:157: kernel booted
I 2023/01/27 09:38:47 serve.go:124: reverse proxy server [127.0.0.1:6806] is booting
I 2023/01/27 09:39:45 box.go:81: auto stat [trees=60, blocks=1900, dataSize=3.2 MB, assetsSize=2.0 MB]
I 2023/01/27 09:39:45 disk.go:33: disk usage [total=253 GB, used=237 GB, free=16 GB]

更多信息 More information

No response

Activity

changed the title [-]请输入问题报告标题 Global Graph view with visible tags can't be opened and returns an error[/-] [+]Global Graph view with visible tags can't be opened and returns an error[/+] on Jan 27, 2023
88250

88250 commented on Jan 27, 2023

@88250
Member

Please try again after rebuilding the index, if that doesn't work, please wait until the next version is released, we are improving the data index.

nekrondev

nekrondev commented on Jan 27, 2023

@nekrondev
ContributorAuthor

Thanks D for your fast reply! Rebuilding the index did not resolve the issue for me so I'll wait for the next release with improved indexing and retry tag lookup in graph display.

88250

88250 commented on Jan 27, 2023

@88250
Member

I noticed that this ID is not in the ID format of a legal .sy data file, which may be the reason.

image

nekrondev

nekrondev commented on Feb 8, 2023

@nekrondev
ContributorAuthor

@Vanessa219 @88250 Maybe this is something for frontend development so ensure that clicked "tag" nodes will open the tag search window instead of trying to open a block.

In the current version (2.7.3) the behaviour can simply be reproduced by opening a blank page, adding some #tag# and generating the local graph view. If you click on the tag node the "Content block with ID..." message will appear.

Maybe you could disable any UI actions when the graph tag node is clicked or open the search window (so the the same action will be triggered as clicking a text block embedded #tag#).

image

image

self-assigned this
on Feb 8, 2023
added this to the 2.7.4 milestone on Feb 8, 2023
changed the title [-]Global Graph view with visible tags can't be opened and returns an error[/-] [+]关系图点击标签节点报错[/+] on Feb 8, 2023
added a commit that references this issue on Feb 8, 2023
changed the title [-]关系图点击标签节点报错[/-] [+]Clicking a tag node in the graph reports an error[/+] on Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@nekrondev

      Issue actions

        Clicking a tag node in the graph reports an error · Issue #7176 · siyuan-note/siyuan