-
Notifications
You must be signed in to change notification settings - Fork 25
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
Use mailroom endpoints to create messages and events during Android syncing #5143
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5143 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 455 455
Lines 25056 25022 -34
=========================================
- Hits 25056 25022 -34 ☔ View full report in Codecov by Sentry. |
0a8e754
to
a497566
Compare
a497566
to
44d2ddd
Compare
@@ -916,41 +916,6 @@ def test_ignore_android_incoming_msg_invalid_phone(self): | |||
self.assertIsNotNone(r0) | |||
self.assertEqual(r0["cmd"], "ack") | |||
|
|||
@mock_mailroom | |||
def test_inbox_duplication(self, mr_mocks): |
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.
this logic is in mailroom now
@@ -43,6 +45,7 @@ def register(request): | |||
|
|||
|
|||
@csrf_exempt | |||
@transaction.non_atomic_requests |
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.
this is already calling mailroom to make db changes.. so I'm not entirely sure how it's working without this..
Removes the need for RP to know about queueing contact tasks.. or creating messages/events.
And it doesn't add any new HTTP overhead because we were already calling mailroom
contact/resolve
to create such messages/events.