Skip to content

fix(web): scope pipeline log detail query keys - #18909

Merged
JinHai-CN merged 2 commits into
infiniflow:mainfrom
huyua9:fix/pipeline-log-detail-query-key-huyua9
Sep 14, 2026
Merged

JinHai-CN merged 2 commits into
infiniflow:mainfrom
huyua9:fix/pipeline-log-detail-query-key-huyua9

Conversation

@huyua9

@huyua9 huyua9 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • include knowledge and log identities in the pipeline detail query key
  • disable the request until the required identifiers are available
  • add focused Jest coverage for identity and refresh-count key behavior

Validation

  • targeted Jest: passed (2/2)
  • oxfmt check: passed
  • oxlint: passed

This keeps the cache identity aligned with the arguments sent to getPipelineDetail and avoids empty-identity requests.

@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. 🧪 test Pull requests that update test cases. 🧰 typescript Pull requests that update Typescript code labels Aug 27, 2026
@coderabbitai

coderabbitai Bot commented Aug 27, 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: 7410fa97-482f-4361-8656-ff30409968d2

📥 Commits

Reviewing files that changed from the base of the PR and between 88e80fc and ae617b2.

📒 Files selected for processing (3)
  • web/src/pages/dataflow-result/__tests__/query-key.test.ts
  • web/src/pages/dataflow-result/hooks.ts
  • web/src/pages/dataflow-result/query-key.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The change adds a reusable pipeline file log detail query-key builder. The data-fetching hook uses knowledge ID, log ID, and refresh count in its key. Query execution now requires non-agent mode, edit mode, and both identifiers.

Changes

Pipeline log detail fetching

Layer / File(s) Summary
Query-key contract and tests
web/src/pages/dataflow-result/query-key.ts, web/src/pages/dataflow-result/__tests__/query-key.test.ts
The exported builder creates a normalized key with knowledge ID, log ID, and refresh count. Tests cover populated and missing identifiers.
Hook query integration
web/src/pages/dataflow-result/hooks.ts
useFetchPipelineFileLogDetail uses the builder. The query requires non-agent mode, edit mode, and both identifiers.

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

Merge Risk: ⚪ Minimal · up to ae617

This change keeps pipeline log details separated by their identifiers and avoids requests before those identifiers are available; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: scoping pipeline log detail query keys.
Description check ✅ Passed The description includes the required Summary section, explains the problem and solution, and records validation results.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3…
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.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3 files.


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

A rabbit packs the keys in line
Knowledge, log, and count align
Edit mode opens the gate
Missing IDs must wait
Fresh tests guard the trail
Query hops along the rail

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

@JinHai-CN
JinHai-CN requested a review from dcc123456 September 11, 2026 07:36
@dcc123456 dcc123456 added the ci Continue Integration label Sep 11, 2026
@JinHai-CN
JinHai-CN merged commit fdef8bf into infiniflow:main Sep 14, 2026
9 checks passed
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. 🧪 test Pull requests that update test cases. 🧰 typescript Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants