Skip to content

Fix: Editing a document slice requires showing the wiki's update button - #18267

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
cike8899:feat-pipeline-dataset-config
Aug 14, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
cike8899:feat-pipeline-dataset-config

Conversation

@cike8899

Copy link
Copy Markdown
Contributor

Summary

Fix: Editing a document slice requires showing the wiki's update button

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. 🧰 typescript Pull requests that update Typescript code labels Aug 14, 2026
@cike8899 cike8899 added the ci Continue Integration label Aug 14, 2026
@cike8899
cike8899 requested a review from wangq8 August 14, 2026 06:34
@cike8899
cike8899 marked this pull request as draft August 14, 2026 06:34
@cike8899
cike8899 marked this pull request as ready for review August 14, 2026 06:34
@coderabbitai

coderabbitai Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6937a9d2-9005-466d-a4e8-cea941c6e639

📥 Commits

Reviewing files that changed from the base of the PR and between 15a63bc and 3e1017a.

📒 Files selected for processing (7)
  • web/src/interfaces/database/dataset.ts
  • web/src/locales/en.ts
  • web/src/locales/zh.ts
  • web/src/pages/dataset/compilation/llm-wiki-view.tsx
  • web/src/pages/dataset/compilation/update-button.tsx
  • web/src/pages/dataset/compilation/wiki-left-panel/hooks/use-wiki-update.ts
  • web/src/pages/dataset/compilation/wiki-left-panel/index.tsx

📝 Walkthrough

Walkthrough

The wiki update flow now tracks changed documents, refreshes alteration details after runs, displays changed counts in the update button, and includes the count in English and Chinese tooltips.

Changes

Wiki changed-document reporting

Layer / File(s) Summary
Alteration data and cache refresh
web/src/interfaces/database/dataset.ts, web/src/pages/dataset/compilation/llm-wiki-view.tsx
IArtifactAlteration now includes changed-document data. Completed artifact runs invalidate the alteration-detail query.
Changed-count propagation and display
web/src/pages/dataset/compilation/wiki-left-panel/..., web/src/pages/dataset/compilation/update-button.tsx, web/src/locales/en.ts, web/src/locales/zh.ts
useWikiUpdate exposes the changed count. The update button displays it when positive. Both tooltips report the changed-document count.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 3e101

This localized change makes the wiki update button available when editing a document slice; no actionable merge-blocking risk remains beyond normal checks and review.

Suggested reviewers: euvre, dcc123456

Poem

I’m a rabbit with counts in a row,
New, removed, and changed now show.
The wiki refreshes after each run,
Three little badges make updates clear and fun.
Hop, hop—the documents glow!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly states that editing a document slice must display the wiki update button.
Description check ✅ Passed The description includes the required Summary section and clearly states the issue that this pull request fixes.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@wangq8 wangq8 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix. The frontend correctly consumes the changed / changed_doc_ids fields that the alteration API now returns for kind=wiki (chunk-hash based drift detection), and wiring changed into hasChanges, the badge, the tooltip, and invalidating ArtifactAlterationKeys.detail on run end all look correct.

One suggestion: in web/src/interfaces/database/dataset.ts, changed and changed_doc_ids are added as required fields, but the backend only returns them for kind === "wiki" (structure kinds like graph/mindmap/timeline/tree do not include them). Consider marking them optional (changed?: number; changed_doc_ids?: string[]) so the type accurately reflects the API contract for all kinds.

Otherwise LGTM.

@wangq8
wangq8 merged commit 3fdf29b into infiniflow:main Aug 14, 2026
12 checks passed
nikminer pushed a commit to nikminer/ragflow-mws that referenced this pull request Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:S This PR changes 10-29 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants