Skip to content

fix:未发布插件导入支持 - #201

Open
openjiuwen-sync-bot[bot] wants to merge 1 commit into
openJiuwen-ai:studio-2.0-devfrom
openjiuwenai:sync/pr-1779
Open

fix:未发布插件导入支持#201
openjiuwen-sync-bot[bot] wants to merge 1 commit into
openJiuwen-ai:studio-2.0-devfrom
openjiuwenai:sync/pr-1779

Conversation

@openjiuwen-sync-bot

@openjiuwen-sync-bot openjiuwen-sync-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

Paired: GitHub #201GitCode !1779

What type of PR is this?

/kind

Self-checklist:(请自检,在[ ]内打上x,我们将检视你的完成情况,否则会导致pr无法合入

    • 设计:PR对应的方案是否已经经过Maintainer评审,方案检视意见是否均已答复并完成方案修改
    • 测试:PR中的代码是否已有UT/ST测试用例进行充分的覆盖,新增测试用例是否随本PR一并上库或已经上库
    • 验证:PR描述信息中是否已包含对该PR对应的Feature、Refactor、Bugfix的预期目标达成情况的详细验证结果描述
    • 接口:是否涉及对外接口变更,相应变更已得到接口评审组织的通过,API对应的注释信息已经刷新正确
    • 文档:是否涉及官网文档修改,如果涉及请及时提交资料到Doc仓

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@openjiuwen-collaboration-bot

openjiuwen-collaboration-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

head_sha: 82834f9c5985b995d5ac42fe7f578efbcc919c8c

变更摘要

此 PR 修复了未发布插件无法导入的问题。在 AddPluginsComponent 组件中,新增了对配置项 plugin_publish_choice 的读取,并在判断插件是否可添加时,将未发布插件的支持条件纳入考量,使未发布插件在配置开启时也能够被正常导入。

主要改动

  • 新增 useUnpublishedPlugin getter:在 AddPluginsComponent 中新增计算属性 useUnpublishedPlugin,通过 this.configServ.getConfigs().plugin_publish_choice 读取是否允许使用未发布插件的配置。
  • 扩展 canAdd 判定逻辑:将原有的 canAdd 条件从 !isPersonal || plugin.last_version_id 扩展为 !isPersonal || plugin.last_version_id || this.useUnpublishedPlugin,使得当配置允许未发布插件时,即使个人插件尚无 last_version_id 也能被添加。

@openjiuwen-collaboration-bot

openjiuwen-collaboration-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

head_sha: 82834f9c5985b995d5ac42fe7f578efbcc919c8c

代码审查

✅ 未发现问题

@openjiuwen-collaboration-bot

Copy link
Copy Markdown

head_sha: 82834f9c5985b995d5ac42fe7f578efbcc919c8c

TASK STATUS DETAILS
CodeCheck ✅SUCCESS Click here
AntiPoison ✅SUCCESS Click here
Software Composition Analysis ✅SUCCESS Click here
Npm Build ✅SUCCESS See CHECK tab
Ruff Check ✅SUCCESS See CHECK tab
UT测试 ✅SUCCESS 点此跳转

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants