Skip to content

Only record and show the log in final state (#908) - #17302

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
wangq8:bugfix/only-list-final-state-log
Jul 24, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
wangq8:bugfix/only-list-final-state-log

Conversation

@wangq8

@wangq8 wangq8 commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@wangq8 wangq8 added the ci Continue Integration label Jul 23, 2026
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jul 23, 2026
@coderabbitai

coderabbitai Bot commented Jul 23, 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: dbca9a53-bcde-46ef-bdf2-6ffe77262c2f

📥 Commits

Reviewing files that changed from the base of the PR and between 8472980 and 0aa63bb.

📒 Files selected for processing (1)
  • api/db/services/pipeline_operation_log_service.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • api/db/services/pipeline_operation_log_service.py

📝 Walkthrough

Walkthrough

Changes

Pipeline Operation Log Finalization

Layer / File(s) Summary
Final status helpers and creation gating
api/db/services/pipeline_operation_log_service.py
Final progress is defined as 1 or -1; dataset and document log creation now returns None for non-final progress.
Final status retrieval filters
api/db/services/pipeline_operation_log_service.py
File and dataset log retrieval always filters to resolved final statuses, defaulting to DONE/FAIL.

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

Poem

I’m a rabbit with logs in a row,
Final hops are the only ones we show.
DONE or FAIL, neat and bright,
Halfway progress stays out of sight.
The burrow’s records now flow just right!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning No PR description was provided, so the required Summary section is missing. Add a Summary section that briefly explains the problem, the final-state logging change, and any relevant context for reviewers.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: only recording and showing logs in the final state.
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.

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
api/db/services/pipeline_operation_log_service.py (1)

38-49: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add focused tests for terminal-state filtering.

Cover default and explicit status filters, enum/string inputs, empty intersections, and progress boundaries (1, -1, and non-final values) across both creation and retrieval paths.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@api/db/services/pipeline_operation_log_service.py` around lines 38 - 49, Add
focused tests for PipelineOperationLogService covering _final_operation_statuses
and _is_final_progress through both creation and retrieval paths. Verify default
and explicit status filters, TaskStatus enum and string inputs, empty status
intersections, and progress values 1, -1, and non-final values.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@api/db/services/pipeline_operation_log_service.py`:
- Around line 38-49: Add focused tests for PipelineOperationLogService covering
_final_operation_statuses and _is_final_progress through both creation and
retrieval paths. Verify default and explicit status filters, TaskStatus enum and
string inputs, empty status intersections, and progress values 1, -1, and
non-final values.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ce22948b-e939-4f47-8d9d-cde56729e2ab

📥 Commits

Reviewing files that changed from the base of the PR and between 7b64e4d and 8472980.

📒 Files selected for processing (1)
  • api/db/services/pipeline_operation_log_service.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant