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

Add a kernel API /api/filetree/renameDocByID #13105

Closed
kuangdongksk opened this issue Nov 10, 2024 · 3 comments
Closed

Add a kernel API /api/filetree/renameDocByID #13105

kuangdongksk opened this issue Nov 10, 2024 · 3 comments
Assignees
Milestone

Comments

@kuangdongksk
Copy link

kuangdongksk commented Nov 10, 2024

可以将重命名文档改成只需要文档的ID吗?

In what scenarios do you need this feature?

image
目前是这样的,如果插件开发者只保留的文档的ID是无法直接更新文档的名称的,还需要再次请求借口获取文档路径,如果同时保存的话,新建文档后并不返回路径,依旧要请求一次接口

Describe the optimal solution

希望可以只传递文档的ID就可以对文档进行重命名,是不是因为文档的名称是保存在json里边而json没有保存ID的缘故?

Describe the candidate solution

No response

Other information

No response

@88250
Copy link
Member

88250 commented Nov 11, 2024

title 是必传的,这个是重命名的目标参数。

path 和 notebook 倒是应该可以去掉,使用 id 替代,这个稍后我们会再加一个 API /api/filetree/renameDocByID

@88250 88250 changed the title 可以将重命名文档改成只需要文档的ID吗? Add a kernel API /api/filetree/renameDocByID Nov 11, 2024
@88250 88250 added this to the 3.1.12 milestone Nov 11, 2024
@88250 88250 closed this as completed Nov 11, 2024
@kuangdongksk
Copy link
Author

D大,可以把移动文档的from和to也改成id形式的吗

@88250
Copy link
Member

88250 commented Nov 19, 2024

单独提个 issue 吧,谢谢。

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

2 participants