-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
feat: Allowing Users to subscribe to the pro-newsletter #8856
feat: Allowing Users to subscribe to the pro-newsletter #8856
Conversation
Kudos, SonarCloud Quality Gate passed! |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #8856 +/- ##
==========================================
- Coverage 49.28% 44.01% -5.27%
==========================================
Files 66 65 -1
Lines 20546 20493 -53
Branches 4946 4940 -6
==========================================
- Hits 10126 9021 -1105
- Misses 9132 10299 +1167
+ Partials 1288 1173 -115 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, It's almost good, some changes proposed though to avoid slowing down dev environment and tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nearly good, I added comments, I hope they are not too cryptic. Otherwise I can try to fix it for you.
@alexgarel could you pls tell how would I mock $ProductOpener::Brevo::brevo_api_key in my test, I have tried but it is using the actual value defined in the Brevo.pm module only :" |
@MonalikaPatnaik this was not possible to change the brevo_api_key in the module because it was a private variable. So I changed a bit the pattern to use a function so that we can mock it. At the end I refactored the test a bit to make it less repetitive and easier to read. Thanks for this PR ! |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Thankyou so much @alexgarel🙂 |
Just to be clear @MonalikaPatnaik , there's no UI yet, right ? |
No @teolemon, it's a functionality only |
Brevo.pm module for adding users to contact list using API at subscription time. --------- Co-authored-by: Alex Garel <[email protected]>
What
tried writing functions in Brevo.pm module for adding users to contact list and getting their contact info.
Screenshot
Related issue(s) and discussion