Repository navigation
Conversation
Reviewer's GuideLegacy DConfig migration support is restored but disabled by default through a compile-time switch. Normal startup no longer invokes dconfigsMigrate() or creates a DConfig object, while the migration table and logic remain available for future migrations after stale mappings are removed. Flow diagram for the disabled legacy DConfig migrationflowchart TD
Startup[Shell startup] --> Switch{EnableLegacyDConfigMigration}
Switch -->|false| Continue[Continue startup without legacy migration]
Switch -->|true| Migrate["Shell.dconfigsMigrate()"]
Migrate --> DConfig[Create DConfig and apply migration mappings]
DConfig --> Continue
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
111149b to
9343163
Compare
|
之前上个pr的评论也修一下呀,不然代码不是还在那里, |
9343163 to
91edcb4
Compare
|
上一笔 PR 的评论已处理:移除了 shell.cpp 中恒空的 dconfigMigrationLists、不可达的提前返回,以及不再使用的 dconfigMigrate() 辅助函数;按 Blumia 的意见保留了 Shell::dconfigsMigrate() 这个 API,供后续迁移复用。启动处的调用已删除。最新提交:96da782f。 |
91edcb4 to
96da782
Compare
1. Remove the Shell::dconfigsMigrate() call from startup because the 23 -> 25 upgrade path is no longer supported 2. Keep the migration framework in shell.cpp for future reuse 3. Avoid creating DConfig objects for legacy migrations, preventing "Can't acquire config manager" and "DConfig is invalid" warnings Log: Remove legacy dconfig migration call Influence: 1. dde-shell no longer performs legacy dconfig migrations at startup 2. The migration framework remains available for future migrations 3. The legacy migration warnings no longer appear in the startup log refactor: 停止调用旧 dconfig 迁移 1. 23 -> 25 升级路径已不再支持,移除启动时的 Shell::dconfigsMigrate() 调用 2. 保留 shell.cpp 中的迁移框架,供后续迁移复用 3. 避免为旧迁移创建 DConfig 对象,消除 "Can't acquire config manager" 和 "DConfig is invalid" 告警 Log: 移除旧 dconfig 迁移调用 Influence: 1. dde-shell 启动时不再执行旧 dconfig 迁移 2. 迁移框架仍保留,后续可继续复用 3. 启动日志中不再出现旧迁移相关告警 PMS: TASK-394335
96da782 to
3c001f3
Compare
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 语法正确,逻辑清晰 ✅ 通过 潜在问题: 建议: [] 2. 代码质量 ✅评价: 代码结构清晰,注释完整 ✅ 通过 潜在问题: 建议: [] 3. 代码性能 ✅评价: 性能良好,资源使用合理 ✅ 通过 潜在问题: 建议: [] 4. 代码安全 🔒评价: 存在0个安全漏洞 ✅ 通过
安全漏洞详情: 建议: [] 💡 改进建议代码示例本次变更无需修复,删除操作本身即正确的清理方式。原代码片段: // 已删除:shell.dconfigsMigrate(); AppletConfigManager appletConfigManager; appletConfigManager.ensureAppletConfigs();本报告由 AI 代码审查工具自动生成 |
|
TAG Bot New tag: 2.0.60 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia, Ivy233 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Shell::dconfigsMigrate()call from startup because the 23 -> 25 upgrade path is no longer supportedShell::dconfigsMigrate()as the public entry point for future migrations, but remove the always-empty mapping table and unreachable early-return pathdconfigMigrate()helper and its DConfig includesLog: Remove legacy dconfig migration call and dead code
Influence:
Shell::dconfigsMigrate()API remains for future migrationsrefactor: 移除旧 dconfig 迁移调用和死代码
Shell::dconfigsMigrate()调用Shell::dconfigsMigrate()作为后续迁移的公共入口,但删除恒空的迁移表与不可达的提前返回逻辑dconfigMigrate()辅助函数及其 DConfig 头文件引用Log: 移除旧 dconfig 迁移调用和死代码
Influence:
Shell::dconfigsMigrate()API 保留,供后续迁移复用shell.cpp中不再保留空迁移表和不可达的迁移代码PMS: TASK-394335
Summary by Sourcery
Enhancements: