Skip to content

Channel event delete contact 2#5866

Merged
rowanseymour merged 2 commits into
mainfrom
channel-event-delete-request-2
Feb 14, 2025
Merged

Channel event delete contact 2#5866
rowanseymour merged 2 commits into
mainfrom
channel-event-delete-request-2

Conversation

@norkans7
Copy link
Copy Markdown

@norkans7 norkans7 commented Feb 12, 2025

After #5849

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (150587b) to head (720171c).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #5866   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          485       486    +1     
  Lines        25292     25309   +17     
=========================================
+ Hits         25292     25309   +17     

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

@norkans7 norkans7 changed the base branch from main to channel-event-delete-request February 12, 2025 17:37
@norkans7 norkans7 changed the title Channel event delete request 2 Channel event delete contact 2 Feb 12, 2025
Base automatically changed from channel-event-delete-request to main February 12, 2025 18:44
@rowanseymour
Copy link
Copy Markdown
Member

Don't we need courier and mailroom changes before this?

@norkans7
Copy link
Copy Markdown
Author

Yes courier changes are nyaruka/courier#834
I will finish the mailroom changes tomorrow

@norkans7
Copy link
Copy Markdown
Author

Added the mailroom side too nyaruka/mailroom#455

@norkans7 norkans7 force-pushed the channel-event-delete-request-2 branch from 358a982 to c27203f Compare February 14, 2025 13:44
ChannelEvent = apps.get_model("channels", "ChannelEvent")

num_updated = 0
for event in ChannelEvent.objects.all():
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this requires loading every single channel event into memory - look at other data migrations that load in batches

@rowanseymour rowanseymour merged commit 4f0de89 into main Feb 14, 2025
@rowanseymour rowanseymour deleted the channel-event-delete-request-2 branch February 14, 2025 16:31
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 14, 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.

2 participants