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

Add optin as field to channelevents #4875

Merged
merged 3 commits into from
Oct 4, 2023
Merged

Add optin as field to channelevents #4875

merged 3 commits into from
Oct 4, 2023

Conversation

rowanseymour
Copy link
Member

@rowanseymour rowanseymour commented Oct 4, 2023

Loading these from extra is a bit fragile and means we can't do select_related. We have Msg.optin so makes sense to have ChannelEvent.optin.

Goes with nyaruka/courier#652 and nyaruka/mailroom#148

@codecov
Copy link

codecov bot commented Oct 4, 2023

Codecov Report

Merging #4875 (a410019) into main (b78dc01) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main     #4875   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          537       538    +1     
  Lines        25925     25931    +6     
=========================================
+ Hits         25925     25931    +6     
Files Coverage Δ
...mba/channels/migrations/0177_channelevent_optin.py 100.00% <100.00%> (ø)
temba/channels/models.py 100.00% <100.00%> (ø)
temba/contacts/models.py 100.00% <ø> (ø)
temba/mailroom/events.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@rowanseymour rowanseymour merged commit fb81463 into main Oct 4, 2023
@rowanseymour rowanseymour deleted the event_optin branch October 4, 2023 17:57
@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 2023
@norkans7
Copy link

norkans7 commented Oct 4, 2023

@rowanseymour I was wondering whether we should create an optin object when we receive an optin event referencing an optin we do not have?

Currently I think the optin are created by the floweditor only

@rowanseymour
Copy link
Member Author

In theory that can't happen...

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