-
Notifications
You must be signed in to change notification settings - Fork 679
Conversation
move newsletter subscription form into an include template show newsletter subscription form on profile edit screen put profile newsletter subscription behind waffle flag
I was able to check the box and save my profile, but did not see a confirmation email. When I went to edit my profile a second time, the box was unchecked again. Aside from the check being remembered, how can I check that I was successfully subscribed? |
Hmm ... You have to either sign into exact target (big PITA), or you can use the python basket client directly:
After signing up, it should show:
i.e., 'app-dev' is in the |
Your instructions always seem to work exactly as described. Thanks! I do not see Out[3]:
{u'confirmed': True, [0/84]
u'country': u'',
u'created-date': u'11/11/2011 10:47:00 AM',
u'email': u'myrealaddress@example.com,
u'format': u'H',
u'lang': u'',
u'master': True,
u'newsletters': [u'mozilla-phone'],
u'pending': False,
u'status': u'ok',
u'token': u'e1b1eeaa-99db-41f6-aecd-49dc01bdd4ed'} I have a sneaking suspicion I have missed something. As I mention earlier, my choice to be on the mailing list does not persist either. But my state does seem normal enough... $ git log --pretty=oneline | head -n 4
99775caf3dd45327b2bca68c8f8cb296715463cd bug 936123 - put Subscription into UserProfileEdit
f96e91fe033049598e4ed06dc4a87a549b66b3b8 update vendor to include basket-client update
42b1f8ea169229f8d433298f2500e9ebe51a250a Improve newsletter signup front-end
bf87fafba1446cb6abdbbb60da8abc2a56a477e0 bug 936123 - add newsletter signup form to profile
$ git branch | grep \*
* pr/1736
$ git log --pretty=oneline vendor | head -n 1
f96e91fe033049598e4ed06dc4a87a549b66b3b8 update vendor to include basket-client update The |
Yeah, that's it. Hmm ... did you
If you're feeling adventurous for python, you can put Or I'll be around today so you can ping me. |
I went ahead and refactored the So, this is done as far as the backend goes, except for any changes we may need to make the UX better via the front-end, or until we discover why the basket subscribe doesn't work on other machines. :/ |
@openjck - email me the email address you're using to spot-check and I'll check Exact Target manually for it. |
I get the following, but I had previously run $ git submodule update --init
fatal: reference is not a tree: 2906726af82ed0063a559124cee610bcd2e5859c
Unable to checkout '2906726af82ed0063a559124cee610bcd2e5859c' in submodule path 'src/bleach'
Yeah, seems to be. $ git submodule | grep basket-client
1ca127a17e17f5e67c2d9f9a500d85e97460f13d src/basket-client (v1.0-51-g1ca127a) |
Sure enough, I was missing something. My local (Usually I Anyway, I was able to sign up from both the profile edit form and the new account sign-up form. The interface is good enough to launch with, in my opinion. Might try moving the checkbox to the left of the label later tonight, as well as moving the form higher up in the page. |
w00t! Hopefully @darkwing will have some spare cycles before the push to maybe give this a once-over? :) |
Updated with an update to mock basket out of @lmorchard or @ubernostrum - have a good idea how to do that? That current code gives me |
That looks a bit like what I tried doing here in the wiki view test, but can't do it without upgrading the Mock package in vendor. |
My concern is that we don't appear to be storing if the user has signed up or not, so they can't go to the "edit profile" page to unsubscribe. The other issue is that form submission sends the user to their profile page without a "thank you for subscribing" message. Would either of these be possible? |
Sorry, didn't mean to close this. |
We are storing the setting. I had trouble seeing this on my box, too, but saw it once I corrected my setup. Good point about a welcome message. That should be easy enough with Django, right? |
We aren't storing the subscription, we're asking basket if they're subscribed or not. We shouldn't store it because users can unsubscribe via the email links that go straight to Exact Target and not to MDN. Users are able to unsubscribe via the Edit Profile page - they can un-check the newsletter box. But that's the part that probably isn't obvious. |
update tests with newsletter fields
Updated tests pass jenkins so this is good to merge & iterate. |
Superseding #1723 with the next step - backend for subscribing and un-subscribing from the newsletter during profile edit.
To spot-check:
vendor/
to groovecoder/kuma-lib@d58975d and update its submodules to get the updatedbasket-client
libraryBASKET_API_KEY
from the bottom of https://mana.mozilla.org/wiki/display/websites/developer.mozilla.org+Cluster?focusedCommentId=38540359#comment-38540359