-
Notifications
You must be signed in to change notification settings - Fork 76
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 A/B testing for "From:" address #648
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This maybe isn't so compelling as a feature. But we kinda get boxed-in, because the "From" field gets "A/B", and there's conditional sync'ing between "From"<=>"Reply-To" (based on the `replyTo` setting). This makes it safer to handle reconfigurations of `replyTo`, as in: 1. Start with replyTo=false (default) 2. Make a mailing. Split the "From". Save draft. 3. Reconfigure replyTo=true 4. Resume draft or re-use mailing with A/B test on "From" Without this patch, the UI would present a singular "Reply-To", but the underlying "variants.X.replyto_email" would have two (invisible/uneditable) overrides. With this patch, in that scenario, the values of "variants.X.replyto_email" would be apparent.
|
Thanks, I will check and get back to you. |
Chatted a bit with Coleman about select2 widths and found an incantation for something workable. ✅ |
kurund
approved these changes
May 6, 2024
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.
Tested the functionality and is working as expected. Thank you. Good to merge.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Expands support for A/B testing.
ping @kurund
Before
After
You may add an alternate "From", "Subject", and/or "Design". This enables A/B testing. (By default, it copies your current subject/design.)
The "New Mailing" screen starts with one "From" field:
If you click "+", it adds another "From" field:
Comments
In my
r-run
, it does generate messages with the alternate "From" addresses. (This is expected, given thatAbDemux
anticipates variations on these fields. I added a bit more coverage inAbDemuxTest
to show this.)Here are a couple issues to review/consider before merging....
crm-ui-select="{dropdownAutoWidth : true, allowClear: false}"
).select2
.<select>
, which satisfies (a)+(b)+(c) but not (d).Mailing
record has three related fields. Typical values look like this:from_name
,from_email
). Second, it may autofillreplyto_email
... but it depends on a configuration option (enableReplyTo
akareplyTo
):replyTo
is enabled, then it displays "Reply-To" as a separate field (independent of "From").replyTo
is disabled, then it quietly autofillsreplyto_email
based onfrom_name
/from_email
.enableReplyTo
remains static (which would be true in normal/day-to-day usage).replyTo
to get reconfigured, then existing data may get pulled into some funny edge-case. (Ex: Create a mailing; split the "From" values; save draft; change the setting; resume editing.) I have not tested these edges. Guess: Some would feel OK; others would feel wrong (esp when thevariants
defines 2xreplyto_email
values, but the UI wants to show one "Reply-To" widget);enableReplyTo=true
). More verbose code. Not a feature anyone particularly asked for. But probably the best functionality.replyto_email
<=>from_name+from_email
to a different layer. (Only sync when you submit.) Eventual code should still be concise. (But it feels a bit more risky -- I suspect there's some reason why it was put in its current spot.)