Skip to content

chore(api): remove redundant debug print in webhook task - #10187

Merged
sriramveeraghanta merged 1 commit into
makeplane:previewfrom
Krish6115:chore/webhook-task-remove-debug-print
Nov 17, 2026
Merged

sriramveeraghanta merged 1 commit into
makeplane:previewfrom
Krish6115:chore/webhook-task-remove-debug-print

Conversation

@Krish6115

@Krish6115 Krish6115 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

In webhook_task, the generic error path printed the exception under settings.DEBUG and then called log_exception(e) anyway. The print duplicates what the logger already emits (with the traceback), so it is removed. settings is still used elsewhere in the module.

Type of Change

  • Code refactoring

Test Scenarios

Syntax-checked the module; error handling flow is unchanged.

Summary by CodeRabbit

  • Bug Fixes
    • Webhook processing errors are now handled consistently in debug and production modes. Missing-object cases continue to be handled as before, while other errors are recorded without printing exception details to the debug output. This keeps error handling behavior consistent across environments.

Copilot AI balanced review requested due to automatic review settings November 3, 2026 14:25

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

The webhook activity exception handler no longer prints exceptions when debug mode is enabled. It continues to return for ObjectDoesNotExist and to log other exceptions with log_exception.

Changes: Webhook exception handling

Layer / File(s) Summary
Exception logging
apps/api/plane/bgtasks/webhook_task.py
The handler no longer prints exceptions in debug mode. Other exceptions continue to be logged with log_exception and returned.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Refactor

Suggested reviewers: pablohashescobar

Merge Risk: Minimal · up to e33fa

The change removes duplicate debug output while retaining exception logging. No actionable merge-blocking risk is identified.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the removal of the redundant debug print in the webhook task.
Description check Passed The description explains the change, identifies the refactoring type, and documents the syntax check and unchanged error-handling flow. Screenshots and references are not required for this change.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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 eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 620a26d2-d651-4a9a-beb2-83b9958faab3
Commits

Reviewing files that changed from the base of the PR and between bc65a78 and e33fa3e.

Files selected for processing: 1
  • apps/api/plane/bgtasks/webhook_task.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

@Krish6115

Copy link
Copy Markdown
Contributor Author

Hi @akshat5302, whenever you have some free time, could you please review this PR? It's a small change. Happy to make any adjustments needed. Thanks!

@Krish6115

Copy link
Copy Markdown
Contributor Author

@dheeru0198 Hi Dheeraj anna, Whenever you have some free time could you please review this pr?
Thanks

@Krish6115

Copy link
Copy Markdown
Contributor Author

Thanks for approving this pr @pablohashescobar !!

@sriramveeraghanta
sriramveeraghanta merged commit d375721 into makeplane:preview Nov 17, 2026
16 of 17 checks passed
Pawel-Kranzberg pushed a commit to klazwi/pi-plane that referenced this pull request Nov 18, 2026
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.

4 participants