-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
🐛 修复群组中插件默认状态 #1810
🐛 修复群组中插件默认状态 #1810
Conversation
审阅者指南 by Sourcery这个拉取请求修复了群组中插件的默认状态。它在 插件状态初始化序列图sequenceDiagram
participant GC as GroupConsole
participant PI as PluginInfo
participant TI as TaskInfo
Note over GC: Group Creation/Update
GC->>TI: Get tasks with default_status=False
TI-->>GC: Return task modules
GC->>GC: Convert task modules to format
GC->>PI: Get plugins with default_status=False
PI-->>GC: Return plugin modules
GC->>GC: Convert plugin modules to format
GC->>GC: Save block_plugin and block_task
GroupConsole 模型变更类图classDiagram
class GroupConsole {
+String block_task
+String block_plugin
+static format(name: str) str
+static convert_module_format(data: str|list[str]) str|list[str]
+static create(using_db, **kwargs)
+static get_or_create(using_db, **kwargs)
+static update_or_create(using_db, **kwargs)
}
note for GroupConsole "添加了新的 format 和 convert_module_format 方法
更新了 create 方法以处理插件默认状态"
文件级变更
提示和命令与 Sourcery 交互
自定义您的体验访问您的仪表板以:
获取帮助Original review guide in EnglishReviewer's Guide by SourceryThis pull request fixes the default status of plugins in groups. It introduces a new method Sequence diagram for plugin status initializationsequenceDiagram
participant GC as GroupConsole
participant PI as PluginInfo
participant TI as TaskInfo
Note over GC: Group Creation/Update
GC->>TI: Get tasks with default_status=False
TI-->>GC: Return task modules
GC->>GC: Convert task modules to format
GC->>PI: Get plugins with default_status=False
PI-->>GC: Return plugin modules
GC->>GC: Convert plugin modules to format
GC->>GC: Save block_plugin and block_task
Class diagram for GroupConsole model changesclassDiagram
class GroupConsole {
+String block_task
+String block_plugin
+static format(name: str) str
+static convert_module_format(data: str|list[str]) str|list[str]
+static create(using_db, **kwargs)
+static get_or_create(using_db, **kwargs)
+static update_or_create(using_db, **kwargs)
}
note for GroupConsole "Added new format and convert_module_format methods
Updated create methods to handle plugin default status"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嘿 @HibiKier - 我已经审查了你的更改 - 以下是一些反馈:
整体评论:
- '关闭' 的正则匹配器重新排序是有意为之吗?这可能会改变首先匹配的模式 - 请确认这是你期望的行为变更。
以下是我在审查期间查看的内容
- 🟢 一般性问题:一切看起来都很好
- 🟢 安全性:一切看起来都很好
- 🟢 测试:一切看起来都很好
- 🟢 复杂性:一切看起来都很好
- 🟢 文档:一切看起来都很好
帮助我变得更有用!请在每条评论上点击 👍 或 👎,我将使用这些反馈来改进你的评论。
Original comment in English
Hey @HibiKier - I've reviewed your changes - here's some feedback:
Overall Comments:
- Was the reordering of the regex matchers for '关闭' intentional? This could change which pattern matches first - please confirm this was the desired behavior change.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Summary by Sourcery
Bug 修复:
Original summary in English
Summary by Sourcery
Bug Fixes: