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: Daily experiments task failing due to method missing from MobitelDeliveryDetails #5509

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

aagrawalrtsl
Copy link
Contributor

@aagrawalrtsl aagrawalrtsl commented Dec 10, 2024

Story card: sc-13928

Because

The monitoring stage in the experimentation daily rake task is failing to send experiment notifications. Hence, the actual SMS sending part, which happens after monitoring, was not triggered.
The error was from a missing method "result" in MobitelDeliveryDetail class.

This addresses

We are adding the "result" method, which is used to determine the status of the notification. Since Mobitel does not give back the actual state of the notification, this is being hardcoded to "sent," assuming the API call to Mobitel is successful and the message was sent.

Test instructions

If we are using Mobitel as an SMS vendor, then `rake "experiments:conduct_daily" should complete without errors, and we should see SMSes being sent out.

@aagrawalrtsl aagrawalrtsl marked this pull request as ready for review December 10, 2024 10:13
@danySam danySam changed the title Adding result method to MobitelDeliveryDetail class Fix: Method (#result) missing from MobitelDeliveryDetails Dec 10, 2024
@danySam danySam changed the title Fix: Method (#result) missing from MobitelDeliveryDetails Fix: Daily experiments task failing due to method missing from MobitelDeliveryDetails Dec 10, 2024
Copy link
Contributor

@danySam danySam left a comment

Choose a reason for hiding this comment

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

@aagrawalrtsl I think we should add a test to the point where it was failing as well in NotificationExperiment#notification_result

Copy link
Contributor

@igbanam igbanam left a comment

Choose a reason for hiding this comment

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

Thank you

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