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

Field contains a many-to-many link to data of its own table, some data batch deletion returns 400 Error #635

Open
emengweb opened this issue May 30, 2024 · 4 comments

Comments

@emengweb
Copy link

emengweb commented May 30, 2024

Describe the bug
The field contains a many-to-many link to data of its own table, and the option "Create symmetric related fields in the related table" is turned on. Only a single deletion operation can be performed, and batch deletion cannot be performed that the server will returns 400 error:

字段包含一个多对多的link关联到自身表格其他行的数据,且开启选项“在关联表中创建对称的关联字段”,只能进行单个删除操作,无法批量删除。
服务端请求返回400错误:

{
    "message": "Cannot set duplicate recordId: recTXXVd1zIrOXXpzUo in the same cell",
    "status": 400,
    "code": "validation_error"
}

To Reproduce
Steps to reproduce the behavior:

When creating the link field, check the first option "Create symmetric related fields in the related table", and then import about 200 related data through the API. Some fields cannot be deleted in batches, and the server reports an error 400, but some data can It was multi-selected and deleted for unknown reasons.

创建link字段时,勾选第一个选项“在关联表中创建对称的关联字段”,再通过api导入200条左右关联数据,有部分字段无法被批量删除,服务端报错400,但部分数据可以被多选并删除,原因不明。

Expected behavior
Regardless of whether it contains a link type, data can be multi-selected and deleted in batches.

无论是否包含link类型,数据可以被多选并批量删除。

** Client (please complete the following information):**

  • OS: Mac
  • Browser Chrome
  • Version 124.0

Platform (Please tell us which deployment version you are using)
docker-standalone v1.2.0-beta

Additional context
Mitigation measures: Cancel the links between associated items and associated items in batches or manually through API, and then perform batch deletion operations.

缓解措施:通过API批量或手动取消关联项与被关联项的link,之后可以进行批量删除操作。

@emengweb emengweb changed the title Field contains a many-to-many link to data in other rows of its own table, batch deletion returns 400 Error Field contains a many-to-many link to data of its own table, some data batch deletion returns 400 Error May 30, 2024
@tea-artist
Copy link
Contributor

tea-artist commented May 30, 2024

Does "delete" refer to deleting records or clearing cells as you mentioned?
I redid the steps as you described but it didn't happen.

We may need more information to find the problem.
What are the data structures you write to the link field, and what are the call parameters?
Is there only one Link field in the entire table?
Was the relationship of the Link field accurately set at creation, or was it modified later?

@emengweb
Copy link
Author

emengweb commented May 30, 2024 via email

@tea-artist
Copy link
Contributor

You can send the data and building process to my email([email protected]) and we will check it further

@emengweb
Copy link
Author

emengweb commented Jun 2, 2024 via email

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

No branches or pull requests

2 participants