Skip to content

Update collaborator filter parameter structure - #467

Merged
LJHAAAAA merged 1 commit into
masterfrom
fix-collarboator-select
Aug 14, 2026
Merged

Update collaborator filter parameter structure#467
LJHAAAAA merged 1 commit into
masterfrom
fix-collarboator-select

Conversation

@SailingBoat762

Copy link
Copy Markdown
Contributor

No description provided.

@seafile-dev seafile-dev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: Comment

Warnings:

  • The callback-shape fix has no regression coverage; see the inline comment.

};

onSelectCollaborator = (value) => {
onSelectCollaborator = ({ columnOption: collaborator }) => {

@seafile-dev seafile-dev Aug 13, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Warning] 缺少协作人过滤回归测试

Why this matters:
本次修复依赖 CollaboratorFilter 传入 { columnOption },此前这里把整个包装对象传给更新函数,导致 collaborator.email 为空。现有测试未覆盖普通协作人列及链接/公式引用协作人列的选择和回显,因此该契约再次变化时会静默回归。

Suggested fix: 为 FilterItem/CollaboratorFilter 添加回归测试,分别模拟两个入口选择 { columnOption: collaborator },断言 updateFilter 收到包含该邮箱的 filter_term,并断言所选协作人会被渲染。

@LJHAAAAA
LJHAAAAA merged commit 186f331 into master Aug 14, 2026
1 check passed
@LJHAAAAA
LJHAAAAA deleted the fix-collarboator-select branch August 14, 2026 08:52
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

Successfully merging this pull request may close these issues.

3 participants