fix(index): align dmanHelper md prefix selection with manual open logic - #633
Merged
Merged
Conversation
There was a problem hiding this comment.
Sorry @dengzhongyuan365-dev, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
Use systemToOmitCompat() when dmanHelper selects markdown files for search indexing, keeping it consistent with dman manual opening logic. This allows non-community editions such as Education to index p_ prefixed manual files when no edu_ files exist, preventing searchable content like deepin-movie from being skipped during index generation. 同步dmanHelper 搜索索引构建时的文档前缀选择逻辑,使其与 dman 主程序 打开手册时保持一致。教育版等非社区版本将按 p_ 前缀建立索引,避免因 仅匹配 edu_ 前缀导致 deepin-movie 等应用文档未写入搜索库。 Log: 修复教育版环境下部分应用文档未建立搜索索引导致搜索不到的问题 PMS: BUG-369331 Influence: 影响 dmanHelper 搜索索引构建逻辑,使搜索索引选择的文档版本与手册打开逻辑一致;解决教育版环境下 deepin-movie 等仅提供 p_/d_ 文档的应用无法被搜索到的问题,不影响手册打开、应用列表展示及已有搜索查询流程。
dengzhongyuan365-dev
force-pushed
the
master
branch
from
July 8, 2026 03:05
d64d587 to
4292c73
Compare
deepin pr auto review★ 总体评分:100分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 diff --git a/src/controller/helpermanager.cpp b/src/controller/helpermanager.cpp
index 1a65ac79..d2ddea2c 100644
--- a/src/controller/helpermanager.cpp
+++ b/src/controller/helpermanager.cpp
@@ -428,7 +428,7 @@ void helperManager::dbusSend(const QStringList &deleteList, const QStringList &a
QStringList helperManager::handlePriority(const QStringList &list)
{
qCDebug(app) << list;
- QStringList omitType = Utils::systemToOmit(Utils::uosEditionType());
+ QStringList omitType = Utils::systemToOmitCompat(Utils::uosEditionType());
qCDebug(app) << omitType;
QStringList moduleList;
QStringList retList; |
lzwind
approved these changes
Jul 8, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dengzhongyuan365-dev, 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 |
Member
Author
|
/forcemerge |
Contributor
|
This pr force merged! (status: unstable) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use systemToOmitCompat() when dmanHelper selects markdown files for search indexing, keeping it consistent with dman manual opening logic. This allows non-community editions such as Education to index p_ prefixed manual files when no edu_ files exist, preventing searchable content like deepin-movie from being skipped during index generation.
同步 dmanHelper 搜索索引构建时的文档前缀选择逻辑,使其与 dman 主程序
打开手册时保持一致。教育版等非社区版本将按 p_ 前缀建立索引,避免因
仅匹配 edu_ 前缀导致 deepin-movie 等应用文档未写入搜索库。
Log: 修复教育版环境下部分应用文档未建立搜索索引导致搜索不到的问题
PMS: BUG-369331
Influence: 影响 dmanHelper 搜索索引构建逻辑,使搜索索引选择的文档版本与手册打开逻辑一致;解决教育版环境下 deepin-movie 等仅提供 p_/d_ 文档的应用无法被搜索到的问题,不影响手册打开、应用列表展示及已有搜索查询流程。