Skip to content

fix(redis_connector): filter_topics_cb != instead of is not#896

Merged
wyzula-jan merged 1 commit into
mainfrom
fix/redis-pubsub-identity
May 18, 2026
Merged

fix(redis_connector): filter_topics_cb != instead of is not#896
wyzula-jan merged 1 commit into
mainfrom
fix/redis-pubsub-identity

Conversation

@wyzula-jan
Copy link
Copy Markdown
Contributor

Description

Hotfix for unsubscribing with != check. Previous indentity check would never unsubscribe bound methods (so basically anything from BEC Widgets) leading to pile up redis.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Hotfix to use != instead of is not when comparing callbacks during topic unsubscription, so that bound methods (which produce a new method object on each attribute access but compare equal via __eq__) are correctly identified and removed.

Changes:

  • Replace identity comparison with equality comparison in _filter_topics_cb so bound methods can be unsubscribed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wyzula-jan wyzula-jan enabled auto-merge (rebase) May 18, 2026 18:23
@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@wyzula-jan wyzula-jan merged commit 4935e02 into main May 18, 2026
60 checks passed
@wyzula-jan wyzula-jan deleted the fix/redis-pubsub-identity branch May 18, 2026 18:33
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.

3 participants