Repository navigation
feat: add dconfig meta org.deepin.ocr.json and install rule - #102
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR adds public DConfig metadata for OCR debug logging and updates the CMake installation helper and call site to support installing configuration under an explicit application ID, enabling the runtime debug-config integration from Part 1. Flow diagram for DConfig metadata installationflowchart LR
Meta[org.deepin.ocr.json\npublic log_rules metadata] --> Install[INSTALL_DCONFIG\nAPPID org.deepin.ocr]
Install --> Path[share/dsg/configs/org.deepin.ocr/]
Path --> DConfig[dde-dconfig\nread and write]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
- Add log_rules meta (default: warning-only, matching shell script) - Extend INSTALL_DCONFIG cmake helper with optional APPID parameter - Install meta to share/dsg/configs/org.deepin.ocr/
e574e2d to
1b29359
Compare
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 语法正确,逻辑清晰 ✅ 通过 潜在问题: 建议: [] 2. 代码质量 ✅评价: 代码结构清晰,注释完整 ✅ 通过 潜在问题: 建议: ['建议在 install_dconfig.cmake 和 src/CMakeLists.txt 文件末尾添加换行符,符合 POSIX 文件标准规范'] 3. 代码性能 ✅评价: 性能良好,资源使用合理 ✅ 通过 潜在问题: 建议: [] 4. 代码安全 🔒评价: 存在0个安全漏洞 ✅ 通过
安全漏洞详情: 建议: [] 💡 改进建议代码示例# 建议在文件末尾添加换行符(install_dconfig.cmake 和 src/CMakeLists.txt) # install_dconfig.cmake 末尾: # ... 原有内容 ... endif() # 文件末尾保留一个空行(换行符) # # src/CMakeLists.txt 末尾: # ... 原有内容 ... INSTALL_DCONFIG("org.deepin.ocr.json" APPID "org.deepin.ocr") # 文件末尾保留一个空行(换行符)本报告由 AI 代码审查工具自动生成 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos, lzwind 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 |
|
/merge |
概要:deepin-ocr 调试模式适配——Part 2/2:DConfig meta + 安装规则(3 个文件)
配套提交:Part 1/2(日志分类化 + 动态日志监听,10 个文件)单独一个 PR;deepin-debug-config 侧 json + shell 在 Gerrit develop/snipe 另行提交。
改动内容(本 PR 3 个文件)
DConfig meta(
assets/configs/org.deepin.ocr.json)log_rules默认值:org.deepin.ocr*.debug=false;org.deepin.ocr*.info=false;org.deepin.ocr*.warning=true(warning=true 放最后,与 debug-config shell 的 warning case 完全一致)安装规则
install_dconfig.cmake支持可选 APPID 参数src/CMakeLists.txt调用INSTALL_DCONFIG("org.deepin.ocr.json" APPID "org.deepin.ocr"),安装到share/dsg/configs/org.deepin.ocr/验证
/usr/share/dsg/configs/org.deepin.ocr/,dde-dconfig可读写Summary by Sourcery
Add OCR logging DConfig metadata and application-specific installation support.
New Features:
Enhancements: