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

Export the binding block docs when exporting the doc where the database is located #11486

Closed
TCOTC opened this issue May 21, 2024 · 9 comments
Closed
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented May 21, 2024

导出数据库所在文档时一并导出绑定块所在文档

如果只是做数据库的克隆(不克隆块),那可以试试导出 .sy.zip 导入。

上面提到手动修改 id 的方式在块中不生效是因为块属性 avs 没有改,我刚刚发现导入 .sy.zip 也没有生效,这个问题稍后会解决。

我这里导入数据库感觉没有问题,绑定块的数据库属性是正常显示的。

同一个文档中的块正常,如果块在其他文档中就不正常了。

Originally posted by @88250 in #11460 (comment)

在 v3.0.15 ,导出数据库所在文档是不会把绑定块所在的文档一并导出的(不是子文档的情况下),

  1. 把 .sy.zip 导入原来的工作空间之后会关联已有的块(这个是有问题的,导入的 .sy.zip 应该是独立的,不应该与已有的数据关联)
  2. 把 .sy.zip 导入其他工作空间之后这些条目就会丢失
@88250
Copy link
Member

88250 commented May 21, 2024 via email

@TCOTC
Copy link
Contributor Author

TCOTC commented May 21, 2024

所以这已经是个单独的 issue 了

@88250
Copy link
Member

88250 commented May 21, 2024

哦哦,不好意思,手机上看岔了……

@88250 88250 self-assigned this May 21, 2024
@88250 88250 changed the title 导出数据库所在文档时一并导出绑定块所在文档 Export the binding block docs when exporting the doc where the database is located May 23, 2024
@88250 88250 added this to the 3.0.16 milestone May 23, 2024
@88250 88250 closed this as completed May 23, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented May 23, 2024

@88250 导出数据库所在文档时一并导出绑定块所在文档 之后,如果在 绑定块所在文档 里也有数据库或者引用了其他文档,会怎么样?

@88250
Copy link
Member

88250 commented May 23, 2024

递归导出。

@TCOTC
Copy link
Contributor Author

TCOTC commented May 23, 2024

如果不同的数据库绑定了同一个块,会被重复导出吗?还是只导出一个?

@88250
Copy link
Member

88250 commented May 23, 2024

不会重复的,只导出一个文档。

@mozhux
Copy link

mozhux commented May 23, 2024

这个我建议是效仿其他的,在导出的时候弹窗可以选要不要导出里面的子文档。

@88250
Copy link
Member

88250 commented May 23, 2024

暂时不加了吧,先实现尽量完整的导出,后面看需求再考虑是否加。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants