-
Notifications
You must be signed in to change notification settings - Fork 11
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
Delete old tipline request and fix sentry issue #1817
Conversation
Code Climate has analyzed commit 23f4499 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (100% is the threshold). This pull request will bring the total coverage in the repository to 100.0% (0.0% change). View more on Code Climate. |
@@ -50,7 +50,7 @@ def text_contains_keyword(text, value) | |||
|
|||
def get_smooch_message(pm) | |||
smooch_message = pm.smooch_message | |||
smooch_message.nil? ? pm.tipline_requests.last.smooch_data : smooch_message | |||
smooch_message.nil? ? pm.tipline_requests.last&.smooch_data : smooch_message |
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.
@melsawy , is the exception happenning for items that are expected to not have an associated TiplineRequest
? after the fix, did you test that rules are working for tipline messages?
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.
@caiosba I depend on our testing to verify this one but also I'll test it manually
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.
I confirmed locally that it works.
* CV2-4351: fix sentry issue * CV2-4352: delete old tipline requests(annotation of type smooch) * CV2-4352: add logs to rake task
Description
References: CV2-4351, CV2-4352
How has this been tested?
Locally against live DB .
Things to pay attention to during code review
Please describe parts of the change that require extra attention during code review, for example:
Checklist