Skip to content

fix(knowledge): Fix the issue of ineffective pagination parameters in the image-based knowledge base#831

Merged
liuyunchao-1998 merged 1 commit intomainfrom
fix/image_kn_list
Aug 20, 2025
Merged

fix(knowledge): Fix the issue of ineffective pagination parameters in the image-based knowledge base#831
liuyunchao-1998 merged 1 commit intomainfrom
fix/image_kn_list

Conversation

@liuyunchao-1998
Copy link
Copy Markdown
Collaborator

@liuyunchao-1998 liuyunchao-1998 commented Aug 20, 2025

What type of PR is this?

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Add documentation if the current PR requires user awareness at the usage level.

(Optional) Translate the PR title into Chinese.

修复图片型知识库分页参数不生效的问题

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:When paginating the image-based knowledge base, the offset parameter does not take effect. And the field values of 'order by' are all the same, causing MySQL to randomly query
zh(optional): 图片型知识库分页时,offset参数未生效。且order by的字段值全部相同,导致mysql随机查询

(Optional) Which issue(s) this PR fixes:

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 20, 2025

Codecov Report

❌ Patch coverage is 4.79452% with 139 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
backend/domain/knowledge/service/event_handle.go 0.00% 74 Missing ⚠️
...ledge/internal/dal/dao/knowledge_document_slice.go 10.00% 36 Missing ⚠️
backend/domain/knowledge/processor/impl/base.go 11.11% 21 Missing and 3 partials ⚠️
backend/domain/knowledge/service/knowledge.go 0.00% 5 Missing ⚠️
Files with missing lines Coverage Δ
backend/domain/knowledge/repository/repository.go 100.00% <ø> (ø)
backend/domain/knowledge/service/knowledge.go 9.99% <0.00%> (+<0.01%) ⬆️
backend/domain/knowledge/processor/impl/base.go 55.24% <11.11%> (-6.87%) ⬇️
...ledge/internal/dal/dao/knowledge_document_slice.go 24.62% <10.00%> (-2.49%) ⬇️
backend/domain/knowledge/service/event_handle.go 2.24% <0.00%> (-0.16%) ⬇️

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@liuyunchao-1998 liuyunchao-1998 added this pull request to the merge queue Aug 20, 2025
Merged via the queue into main with commit e7070b4 Aug 20, 2025
9 checks passed
@liuyunchao-1998 liuyunchao-1998 deleted the fix/image_kn_list branch August 20, 2025 09:50
lvgj-stack pushed a commit to dragonforce2010/coze-studio that referenced this pull request Aug 21, 2025
futeng pushed a commit to futeng/coze-studio that referenced this pull request Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants