Skip to content
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

Fix --forward-connect-to not forwarding events #822

Conversation

vcheung-stripe
Copy link
Collaborator

Reviewers

r? @stripe/developer-products
cc @stripe/developer-products

Summary

Fix a bug where running stripe listen with --forward-connect-to would not forward events.

Before:

Using --forward-to <url> only:
✅ direct events are forwarded to <url>
✅ connect events are forwarded to <url>

Using both --forward-to <url 1> and --forward-connect-to <url 2>:
✅ direct events are forwarded to <url 1>
✅ connect events are forwarded to <url 2>

Using --forward-connect-to <url> only:
✅ direct events are NOT forwarded to <url>
❌ connect events are NOT forwarded to <url>

After:

Using --forward-to <url> only:
✅ direct events are forwarded to <url>
✅ connect events are forwarded to <url>

Using both --forward-to <url 1> and --forward-connect-to <url 2>:
✅ direct events are forwarded to <url 1>
✅ connect events are forwarded to <url 2>

Using --forward-connect-to <url> only:
✅ direct events are NOT forwarded to <url>
✅ connect events are forwarded to <url>

I added unit tests for each of these and tested manually as well.

Copy link
Contributor

@ianjabour-stripe ianjabour-stripe left a comment

Choose a reason for hiding this comment

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

💯

@vcheung-stripe vcheung-stripe merged commit caa092d into stripe:master Feb 16, 2022
@vcheung-stripe vcheung-stripe deleted the vcheung/fix-forward-connect-to-not-forwarding branch February 16, 2022 21:18
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.

2 participants