[PR #30333] fix(api): surface subscription deletion errors to users #32778

Closed
opened 2026-02-21 20:52:03 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/30333

State: closed
Merged: Yes


Summary

This PR fixes a bug where trigger subscription deletion/unsubscribe errors were silently ignored during the rebuild process.

  • Check UnsubscribeResult.success and propagate error messages to users when unsubscribe fails
  • Simplify rebuild logic by removing unnecessary try/except wrapper around unsubscribe
  • Refactor update API to use cleaner conditional logic with any()
  • Remove redundant test cases that validated silent error handling behavior

Fixes #30332

Test Plan

  • Verify that unsubscribe errors are now properly surfaced to users with clear error messages
  • Verify that successful subscription rebuilds continue to work as expected
  • Run existing unit tests to ensure no regressions
**Original Pull Request:** https://github.com/langgenius/dify/pull/30333 **State:** closed **Merged:** Yes --- ## Summary This PR fixes a bug where trigger subscription deletion/unsubscribe errors were silently ignored during the rebuild process. - Check `UnsubscribeResult.success` and propagate error messages to users when unsubscribe fails - Simplify rebuild logic by removing unnecessary try/except wrapper around unsubscribe - Refactor update API to use cleaner conditional logic with `any()` - Remove redundant test cases that validated silent error handling behavior Fixes #30332 ## Test Plan - [x] Verify that unsubscribe errors are now properly surfaced to users with clear error messages - [x] Verify that successful subscription rebuilds continue to work as expected - [x] Run existing unit tests to ensure no regressions
yindo added the pull-request label 2026-02-21 20:52:03 -05:00
yindo closed this issue 2026-02-21 20:52:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32778