Skip to content

feat: Enhance SubscribeFilter to Support Multiple Instances #1709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mSabzali
Copy link

@mSabzali mSabzali commented Jul 1, 2025

Feature: Enhance SubscribeFilter to Support Multiple Instances

Summary

This PR enhances the filtering mechanism by allowing the use of multiple filters instead of just one. It provides more flexibility and enables advanced scenarios where multiple filters need to be applied in sequence or conditionally.

What Has Changed

  • Modified the configuration model to support multiple filters.
  • Preserved backward compatibility: single-filter configurations still work.

Why It's Useful

This feature enables scenarios where users need to:

  • Apply layered processing logic
  • Compose filters in different modules
  • Have more granular control over message handling

Testing

  • All existing tests pass

Notes

  • This is my first contribution to CAP.
  • Let me know if you'd like any changes, improvements, or if you'd prefer an issue to be created for tracking.

Additional Request

Hello, thank you for your efforts on the CAP project. This PR is ready for review to support multiple filter instances, and the tests have passed successfully. Is there any change or additional information needed? @yang-xiaodong

@mSabzali mSabzali changed the title feat: support multiple SubscribeFilter feat: Enhance SubscribeFilter to Support Multiple Instances Jul 17, 2025
@mSabzali mSabzali marked this pull request as draft July 17, 2025 07:20
@mSabzali mSabzali marked this pull request as ready for review July 17, 2025 07:29
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.

1 participant