Skip to content

Data History - File history - Assets search results and operation conditions do not match #11171

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

Closed
TCOTC opened this issue Apr 27, 2024 · 28 comments
Assignees
Labels
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Apr 27, 2024

数据历史里的 clean 是空的

我刚刚发现我数据历史里的 clean 是空的(重建历史索引之后):

image

但本地是有的(里面都是清理的图片):

image

我疑惑了

@88250 88250 self-assigned this Apr 27, 2024
@88250
Copy link
Member

88250 commented Apr 27, 2024

看了下,是因为只有资源存在清理操作,文档没有清理操作。

image

估计得把 清理 从操作列表中去掉。

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 27, 2024

再加个「所有」就方便了(包含文档名、内容、资源):

image

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 27, 2024

还有个问题是选择「资源」之后右边是无法操作的:

image

@88250
Copy link
Member

88250 commented Apr 27, 2024

资源和文档目前没法混在一起,所以才区分了的。资源只有一个 清理 操作,所以这里显示禁用。

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 27, 2024

资源只有一个 清理 操作

不止,有三种: 清理 更新 同步

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 27, 2024

好像还有个 BUG :

image

image

image

image

@88250
Copy link
Member

88250 commented Apr 27, 2024

哦,对,不好意思,我忽略了资源也可以更新同步了,确实会有多种操作的。

@88250 88250 changed the title 数据历史里的 clean 是空的 Data History - File history - Assets search results and operation conditions do not match Apr 27, 2024
@88250 88250 added the Bug label Apr 27, 2024
@88250 88250 added this to the 3.0.12 milestone Apr 27, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 27, 2024

  1. 「文档名」「文档名和内容」:菜单中移除 清理
  2. 「资源」:菜单中只保留 清理 更新 同步,并且菜单允许操作

@88250
Copy link
Member

88250 commented Apr 27, 2024

对,我也是这样想的,等 @Vanessa219 改一下。

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 27, 2024

3.

在「文档名」「文档名和内容」与「资源」之间切换时,菜单选项重置为 所有操作

或者

在「文档名」「文档名和内容」向「资源」切换时,如果选择的不是 清理 更新 同步 ,则菜单选项重置为 所有操作

以避免出现「资源」- 排版 删除 替换 大纲

@88250
Copy link
Member

88250 commented Apr 27, 2024

只要切换类型,就重置为 所有操作 吧。

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 27, 2024

只要切换类型,就重置为 所有操作 吧。

至少在「文档名」与「文档名和内容」之间切换时不需要重置,不然就有点繁琐了

88250 added a commit that referenced this issue Apr 27, 2024

Verified

This commit was signed with the committer’s verified signature.
…onditions do not match #11171
@88250
Copy link
Member

88250 commented Apr 27, 2024

好的,等会我给 V 说一下。

Vanessa219 added a commit that referenced this issue Apr 28, 2024
@88250 88250 closed this as completed Apr 28, 2024
@88250
Copy link
Member

88250 commented Apr 28, 2024

资源文件目前还没有实现更新记录,关联 #11177

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 28, 2024

@88250 我有点好奇资源「同步」这里每次都有的这个 ocr-texts 是什么东西?

image

全是空的,有必要生成吗?

image

@88250
Copy link
Member

88250 commented Apr 28, 2024

应该是不同设备上 OCR 结果不同产生的。

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 28, 2024

但是我只用一个设备,而且没用 OCR

@88250
Copy link
Member

88250 commented Apr 29, 2024

感谢反馈,稍后处理。

@88250
Copy link
Member

88250 commented Apr 29, 2024

感觉有点不对,没有启用 OCR 的话不会生成这个文件的,在内核启动后的日志中搜索 tesseract-ocr 看看。

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 29, 2024

在内核启动后的日志中搜索 tesseract-ocr 看看。

没有搜索到这个文本

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 29, 2024

感觉有点不对,没有启用 OCR 的话不会生成这个文件的

话说 OCR 功能是不是没有开关?

@88250
Copy link
Member

88250 commented Apr 29, 2024

设置环境变量 SIYUAN_TESSERACT_ENABLED=false 可以关闭 OCR

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 29, 2024

那意思是 OCR 默认开启?我在环境变量没有找到 SIYUAN_TESSERACT_ENABLED

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 29, 2024

另外,用户指南这里还多了一个字:

image

@88250
Copy link
Member

88250 commented Apr 29, 2024

系统如果安装了 tesseract(在 $PATH 上,也就是可以直接在命令行中使用 tesseract),则默认开启,启动日志中会打印:

I 2024/04/29 11:30:43 tesseract.go:187: tesseract-ocr enabled [ver=v5.3.3.20231005, maxSize=2 MB, langs=chi_sim+chi_sim_vert+eng+osd]

如果 tesseract 命令不可用的话不会打印这句,OCR 也不应该会被启用。

帮助文档稍后改,多谢。

88250 added a commit that referenced this issue Apr 29, 2024

Verified

This commit was signed with the committer’s verified signature.
@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 29, 2024

@88250 我看了一下,文件是逐渐变大的:

image

我找了朋友的思源看看,也跟我一样会生成一个 工作空间/data/assets/ocr-texts.json ,里面都是文件名,没有 OCR 结果

我感觉应该是只要添加了图片就会更新 ocr-texts.json 这个文件 → 如果是这样的话,没开启 OCR 时不应该更新 ocr-texts.json

@Temacc0531
Copy link

我自己没有安装也有ocr-texts.json这个文件

@88250
Copy link
Member

88250 commented Apr 29, 2024

如果是这样的话,没开启 OCR 时不应该更新 ocr-texts.json

稍后调整,感谢反馈。

88250 added a commit that referenced this issue Apr 29, 2024

Verified

This commit was signed with the committer’s verified signature.
88250 added a commit that referenced this issue Apr 29, 2024

Verified

This commit was signed with the committer’s verified signature.
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

4 participants