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

Delete old tipline request and fix sentry issue #1817

Merged
merged 3 commits into from
Mar 5, 2024

Conversation

melsawy
Copy link
Contributor

@melsawy melsawy commented Mar 4, 2024

Description

  • Add rake task to remove old tipline requests (annotation of type smooch).
  • Fix sentry issue

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:

  • File FFFF, line LL: This refactoring does this and this. Is it consistent with how it’s implemented elsewhere?
  • Etc.

Checklist

  • I have performed a self-review of my own code
  • I have added unit and feature tests, if the PR implements a new feature or otherwise would benefit from additional testing
  • I have added regression tests, if the PR fixes a bug
  • I have added logging, exception reporting, and custom tracing with any additional information required for debugging
  • I considered secure coding practices when writing this code. Any security concerns are noted above.
  • I have commented my code in hard-to-understand areas, if any
  • I have made needed changes to the README
  • My changes generate no new warnings
  • If I added a third party module, I included a rationale for doing so and followed our current guidelines

@melsawy melsawy requested review from caiosba and DGaffney as code owners March 4, 2024 05:46
Copy link

codeclimate bot commented Mar 4, 2024

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
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

@caiosba caiosba self-requested a review March 5, 2024 16:37
@caiosba caiosba merged commit 99485f2 into develop Mar 5, 2024
8 checks passed
@caiosba caiosba deleted the CV2-4352-4351-sentry-issue branch March 5, 2024 16:38
caiosba pushed a commit that referenced this pull request Mar 5, 2024
* CV2-4351: fix sentry issue

* CV2-4352: delete old tipline requests(annotation of type smooch)

* CV2-4352: add logs to rake task
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