✨(admin) derive the source user from the selection when transferring documents
维护者通常 3 天内回复
@lunika 已经在做这个了。
开始于 2026年10月26日。
评估
这个 Issue 还没有评估数据。
描述
What problem do you want to fix?
In the admin, the "Transfer to another user" action asks the admin to pick the source user ("from") by hand, although the documents are already selected. This leads to mistakes:
- when the selected documents have different creators, only the documents of the chosen user change creator, the others are silently left as they are;
- when the chosen source user has nothing to do with the selection, nothing is transferred, but the confirmation banner is still green ("0 documents and 0 accesses transferred").
Possible solution?
The source user comes from the selection. The transfer screen lists the selected documents grouped by creator, under the explanation text:
- creator A
- document 1
- document 2
- creator B
- document 3
One creator
The "from" field shows that creator and cannot be edited. The admin only chooses the "to" user.
Several creators
- A message under the explanation says the selection contains several creators and asks the admin to choose the one to transfer from.
- The "from" field is prefilled with the creator who has the most selected documents.
- The "from" field stays editable: the admin can type to pick another creator of the selection.
- Only the documents of the chosen creator change creator. The documents of the other creators are left as they are, and the confirmation message says so.
Given an admin selects documents that all have the same creator
When they run the "Transfer to another user" action
Then the selected documents are listed under their creator
And the "from" field shows that creator and cannot be edited
And the admin only has to choose the "to" user to transfer
Given an admin selects documents created by different users
When they run the "Transfer to another user" action
Then the selected documents are listed grouped by creator
And a message says the selection contains several creators and asks to choose one
And the "from" field is prefilled with the creator who has the most selected documents
Given the selection contains several creators
When the admin changes the "from" field to another creator of the selection and transfers
Then only the documents of that creator and their accesses are transferred
And the confirmation message says how many selected documents were left untouched
Given the admin submits a transfer
When no document and no access is transferred
Then the confirmation banner is red (error) instead of green
And it says nothing was transferred
Implementation lead: TransferDocumentsForm and DocumentAdmin.transfer_documents in src/backend/core/admin.py, and the template core/templates/core/admin/transfer_documents.html. Use messages.ERROR in message_user when nothing was transferred.
Do you have an alternative?
Select the documents of a single creator at a time and pick the right creator by hand in the "from" field.
Upload
No response
Contact Details
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
- 主要语言
- TypeScript
- 星标
- 17k
- 派生
- 705
- 平均合并
- 4 天 13 小时
- 30 天内合并 PR
- 47
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
suitenumerique/docs 的其他 Issue
-
🐛(Bug) Helm chart is published from a push to any branch, not only main可能已有人在做 @RoeeSivan 于 1 天前认领。 未关闭AI generated CI helm
难度 1/5 1 小时以内 新手友好度 78/100
suitenumerique/docs#3049 ·
维护者通常 3 天内回复
-
🐛(Bug) Preview comment missing when a PR is opened or labelled with a conflict可能已有人在做 @RoeeSivan 于 1 天前认领。 未关闭CI preview
难度 1/5 1 小时以内 新手友好度 90/100
suitenumerique/docs#3039 ·
维护者通常 3 天内回复
-
AI generated frontend
难度 2/5 1-3 小时 新手友好度 72/100
suitenumerique/docs#3030 · 1 条评论 ·
维护者通常 3 天内回复
-
🐛(Bug) Block menu shows an orphan separator on blocks without colors (math, diagram)可能已有人在做 @arxh80 于 8 天前认领。 未关闭frontend good first issue
难度 2/5 1-3 小时 新手友好度 78/100
suitenumerique/docs#3021 · 1 条评论 · 已指派 1 人 ·
维护者通常 3 天内回复
-
frontend
难度 2/5 1-3 小时 新手友好度 78/100
suitenumerique/docs#3018 · 1 条评论 ·
维护者通常 3 天内回复
查看 suitenumerique/docs 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
siyuan-note/siyuan#21692 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
GetStream/stream-chat-react#3467 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
resend/resend-node#1206 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
cloudflare/cloudflare-typescript#2821 ·