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

Use mailroom endpoints to create messages and events during Android syncing #5143

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

rowanseymour
Copy link
Member

@rowanseymour rowanseymour commented Apr 1, 2024

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.

Copy link

codecov bot commented Apr 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (0302198) to head (44d2ddd).
Report is 3 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@rowanseymour rowanseymour changed the title Queue incoming android messages for handling using web endpoint Use mailroom endpoints to create messages and events during Android syncing Apr 1, 2024
@@ -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):
Copy link
Member Author

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
Copy link
Member Author

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..

@rowanseymour rowanseymour merged commit 78be936 into main Apr 2, 2024
5 checks passed
@rowanseymour rowanseymour deleted the no_moremsg_queueing branch April 2, 2024 14:22
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants