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 payload parsing for subscriptions #1148

Merged
merged 5 commits into from
Sep 21, 2022

Conversation

csuriano23
Copy link
Contributor

@csuriano23 csuriano23 commented Aug 18, 2022

Currently the subscription manager do not parse in a proper way the JSON payload for parametrical subscriptions.

The PR fixes this behaviour, applying in the existing reduction the event variables to the subscription schema and using for each variable the designated name from the schema

@Urigo Urigo requested a review from ardatan August 20, 2022 17:04
@ardatan
Copy link
Collaborator

ardatan commented Aug 22, 2022

Hi @csuriano23 !
Thanks for the PR!
I have only one comment!

Copy link
Collaborator

@ardatan ardatan left a comment

Choose a reason for hiding this comment

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

Do you think we can add some tests to prevent future regressions?

@csuriano23
Copy link
Contributor Author

Sure, I have to give a look on how the tests are structured and I am adding a case

@csuriano23
Copy link
Contributor Author

@ardatan Done. Take a look

@csuriano23 csuriano23 requested a review from ardatan August 31, 2022 07:08
@ardatan ardatan force-pushed the fix/subscriptions-payload branch from 4abfe5a to 1952913 Compare September 21, 2022 13:16
@ardatan ardatan merged commit 049a1a8 into Urigo:master Sep 21, 2022
@csuriano23 csuriano23 deleted the fix/subscriptions-payload branch September 21, 2022 13:25
@csuriano23
Copy link
Contributor Author

🎉

@ardatan
Copy link
Collaborator

ardatan commented Sep 21, 2022

Thank you @csuriano23 !

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