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

Schedule campaign events via endpoint #5915

Merged
merged 6 commits into from
Feb 28, 2025
Merged

Conversation

rowanseymour
Copy link
Member

@rowanseymour rowanseymour commented Feb 28, 2025

Switches rescheduling of campaign events to use new mailroom endpoint

Requires nyaruka/mailroom#501

.. unfortunately triggered a lot of test rewriting because now tests creating campaign events have to mock mailroom but we still have a lot of tests that rely on real mailroom for flow imports

@rowanseymour rowanseymour force-pushed the better_campaign_events_pt1 branch 3 times, most recently from 7dd90cd to c4007b6 Compare February 28, 2025 16:39
add new fields to support invalidating fires without recreating events.
@rowanseymour rowanseymour force-pushed the better_campaign_events_pt1 branch from c4007b6 to fae73d5 Compare February 28, 2025 17:04

from . import APITest


class DefinitionsEndpointTest(APITest):
def test_endpoint(self):
@mock_mailroom
def test_endpoint(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.

because we're no longer calling real mailroom.. had to rewrite this test to not assume imports setup flow dependencies correctly.. better this way.. tests shouldn't be calling real mailroom

@rowanseymour rowanseymour force-pushed the better_campaign_events_pt1 branch from 0cb1f2a to b6ba429 Compare February 28, 2025 18:30
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (9a1e867) to head (46a1eb1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #5915   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          508       508           
  Lines        25286     25283    -3     
=========================================
- Hits         25286     25283    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rowanseymour rowanseymour changed the title Better campaign events part 1 Schedule campaign events via endpoint Feb 28, 2025
@rowanseymour rowanseymour merged commit 834aa73 into main Feb 28, 2025
5 checks passed
@rowanseymour rowanseymour deleted the better_campaign_events_pt1 branch February 28, 2025 20:49
@github-actions github-actions bot locked and limited conversation to collaborators Feb 28, 2025
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.

1 participant