Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关系图点击标签节点报错 #7176

Closed
2 tasks done
nekrondev opened this issue Jan 27, 2023 · 4 comments
Closed
2 tasks done

关系图点击标签节点报错 #7176

nekrondev opened this issue Jan 27, 2023 · 4 comments
Assignees
Labels
Milestone

Comments

@nekrondev
Copy link
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

@88250 88250 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 Jan 27, 2023
@88250
Copy link
Member

88250 commented Jan 27, 2023

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.

@88250 88250 closed this as completed Jan 27, 2023
@nekrondev
Copy link
Contributor Author

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
Copy link
Member

88250 commented Jan 27, 2023

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

image

@nekrondev
Copy link
Contributor Author

@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

@Vanessa219 Vanessa219 self-assigned this Feb 8, 2023
@Vanessa219 Vanessa219 added the Bug label Feb 8, 2023
@Vanessa219 Vanessa219 added this to the 2.7.4 milestone Feb 8, 2023
@Vanessa219 Vanessa219 reopened this Feb 8, 2023
@Vanessa219 Vanessa219 changed the title Global Graph view with visible tags can't be opened and returns an error 关系图点击标签节点报错 Feb 8, 2023
Vanessa219 added a commit that referenced this issue Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants