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

Two-way relation is invalid when related to the current database #11278

Closed
TCOTC opened this issue May 6, 2024 · 10 comments
Closed

Two-way relation is invalid when related to the current database #11278

TCOTC opened this issue May 6, 2024 · 10 comments
Assignees
Labels
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented May 6, 2024

关联至当前数据库时,双向关联无效

#11233 ; 使用 v3.0.14-dev1

测试的文档:测试.sy.zip

使用双向关联的时候会隐藏,无法取消双向关联:

shuagnxiang

并且实际上测试了发现是没有实现双向关联的:

default.webm
@Vanessa219
Copy link
Member

当前数据库是可以进行双向关联的。如果双向关联过就不会再出现双向关联的选项了。

@TCOTC

This comment was marked as outdated.

@TCOTC TCOTC closed this as completed May 10, 2024
@TCOTC TCOTC changed the title 关联至当前数据库时隐藏双向关联 ~~关联至当前数据库时隐藏双向关联~~ 当前数据库是可以进行双向关联的 May 10, 2024
@TCOTC TCOTC changed the title ~~关联至当前数据库时隐藏双向关联~~ 当前数据库是可以进行双向关联的 关联至当前数据库时需要双向关联没有显示、数据没有同步到双向关联的列 May 10, 2024
@TCOTC TCOTC changed the title 关联至当前数据库时需要双向关联没有显示、数据没有同步到双向关联的列 关联至当前数据库时,双向关联无效 May 10, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented May 10, 2024

不对,如果已经双向关联了,那就应该显示,否则没办法取消双向关联:

image

并且实际上测试了发现是没有实现双向关联的:

default.webm

@TCOTC TCOTC reopened this May 10, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented May 10, 2024

@88250

@88250
Copy link
Member

88250 commented May 12, 2024

在 Notion-like 中双向关联本库叫做“拆分”

Notion:

创建:

image

编辑(可以看到没有取消拆分这一选项):

image

我来 wolai:

创建:

image

编辑(同样没有取消拆分):

image

这种关联字段一旦建立就不允许取消关联了,并且删除字段的时候是一并删除之前自动创建的关联目标字段。

@88250 88250 closed this as completed May 12, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented May 12, 2024

@88250 不一样啊,思源里的这个是完全无效:

image

image

@TCOTC
Copy link
Contributor Author

TCOTC commented May 12, 2024

这种关联字段一旦建立就不允许取消关联了

@88250 我试了一下 Wolai 是可以取消的(让其中一个关联列关联其他数据库,另一个关联列就取消关联了),但是取消之后会有 BUG ,估计是解决不了 BUG 才不允许取消的:

image

试了一下 Notion ,取消关联之后也会产生与 Wolai 不同的 BUG:需要删除其中一个关联列,另一个关联列才能重新「拆分」

思源能解决 BUG 的话就没必要跟 Wolai 和 Notion 保持一致了

@88250 88250 reopened this May 12, 2024
@88250
Copy link
Member

88250 commented May 12, 2024

抱歉抱歉,我刚刚忽略 无效 的问题了……

@TCOTC
Copy link
Contributor Author

TCOTC commented May 12, 2024

@88250 刚刚又试了一下,Wolai 有一种安全的方法可以取消「拆分字段」,然后还可以重新「拆分字段」,说明不是实现不了:

wolai.webm

@88250 88250 changed the title 关联至当前数据库时,双向关联无效 Two-way relation is invalid when related to the current database May 12, 2024
@88250 88250 self-assigned this May 12, 2024
@88250 88250 added this to the 3.0.14 milestone May 12, 2024
@88250 88250 added the Bug label May 12, 2024
@88250
Copy link
Member

88250 commented May 12, 2024

取消当前库双向关联 #11356

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