Closed Bug 962712 Opened 12 years ago Closed 12 years ago

Update message text for "%Invitee% created a Mozillians profile" email

Categories

(Participation Infrastructure :: Phonebook, defect)

2014-04.1
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: williamr, Assigned: thinh.lam)

References

Details

(Whiteboard: [kb=1318522] [lang=python][difficulty=2/3][mentor=giorgos@mozilla.com])

Attachments

(1 file)

When a vouched user invites someone to Mozillians and the invitee creates a profile, we notify the voucher. The message is missing the invitee's name in both the subject and body. We could also provide more context in this message and provide line returns in the body. Suggested subject: $invitee_name$ created a Mozillians profile Suggested body: "Hi $voucher_name$, You invited $invitee_name% to create a profile on mozillians.org. Take a look at their shiny, new profile: %invitee_profile_url% Thanks for inviting a contributor to join our community directory! The Mozillians.org Team"
Whiteboard: [kb=1248696]
Whiteboard: [kb=1248696] → [kb=1248696] [good first bug][lang=python]
Whiteboard: [kb=1248696] [good first bug][lang=python] → [kb=1248696][lang=python][difficulty=2/3][mentor=giorgos@mozilla.com]
Hi! Could I work on this? I'm completely new to this, so it'll be my first bug. Thanks!
Hi Kevin! Thanks for offering to contribute. This is a django / python bug, are you new to mozilla or/and in python/django?
I have some experience with Django / Python, but am new to Mozilla. Will that be okay?
Kevin, Yes that's perfectly OK. Please OK ahead and setup your environment following the instructions here: http://mozillians.readthedocs.org/ and let me know, by commenting here, when you're ready. I'm assigning this bug to you. Good luck!
Assignee: nobody → thinh.lam
Status: NEW → ASSIGNED
Giorgos, Just wanted to let you know - I finished setting up my environment. What are the next steps?
Hi Kevin, Now you need to fix this bug! This bug is about updating the email template used in method mozillians.phonebook.models.Invite.send_thanks with the text supplied in comment #1. Please read the contribution guidelines for our project http://mozillians.readthedocs.org/en/latest/contribute.html Feel free to ping me on IRC or here with questions and/or comments.
Giorgos, I changed to the template named "invited_accepted.txt" so that it now uses the suggested message. The subject line seems to be exactly the same, so I left it alone. The template seems to already have the invitee's name in both the subject and the body, unless I'm mistaken in thinking that "friend" refers to the invitee. This is all based off of what I saw in the send_thanks method and the associated template. Sorry if it sounds kind of dumb! Also, I tried to run "./manage.py test" but I kept getting import errors. I feel like I may have messed up during the installation process somehow. Do you think you can help me out? Thanks so much!
(In reply to Kevin Lam from comment #7) > The subject line seems to be exactly the same, so I left it alone. The > template seems to already have the invitee's name in both the subject and > the body, unless I'm mistaken in thinking that "friend" refers to the > invitee. This is all based off of what I saw in the send_thanks method and > the associated template. Sorry if it sounds kind of dumb! The text for the subject line is not changing. However, this bug is meant to fix an issue with the names not being displayed in both the subject and body. For some reason the names are not being output properly in both of those locations. We want to output all the names properly, in addition to the text changes in the body message. Thanks again for your help with this, Kevin!
I think I may have found the issue. In the edit_profile method of phonebook/views.py, the name is not being passed to the request.user.userprofile after compeleting a profile. I just assigned the full_name value to the request.user.userprofile.full_name field and it seems to fix the issue. Spcifically, right below line 178 I just added: request.user.userprofile.full_name = profile.full_name
That is great Kevin! Good job tracking down the issue. Once you have the code ready for review, please submit a pull request with the appropriate commit message and then add a comment here with a link to the pull request. Be sure to squash your commits into one commit as noted in step 7 of the workflow. You can see see the commit message format and the git workflow here https://github.com/mozilla/mozillians/commits/master http://mozillians.readthedocs.org/en/latest/contribute.html#git-workflow
Here's the pull request: https://github.com/mozilla/mozillians/pull/864 Took me a while to find the root cause! I hope it helps. Please let me know if I need to do anything else for this issue.
Hey Giorgos, I've re-submitted my pull request with your suggested changes. Could you take a look at it and let me know what you think? The link is: https://github.com/mozilla/mozillians/pull/876
Sorry, I had a trailing whitespace. Just re-submitted: https://github.com/mozilla/mozillians/pull/877
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Version: other → next
Whiteboard: [kb=1248696][lang=python][difficulty=2/3][mentor=giorgos@mozilla.com] → [lang=python][difficulty=2/3][mentor=giorgos@mozilla.com]
Whiteboard: [lang=python][difficulty=2/3][mentor=giorgos@mozilla.com] → [kb=1318522] [lang=python][difficulty=2/3][mentor=giorgos@mozilla.com]
Attached image qa - verified on stage
Well done! QA verified on stage - once an invitation has been accepted and and successfully created an account on Mozillians an email is sent to the Mozillian who initiated the invite - matches the spec in commemnt 0. - paths tested 0. invitee doesn't yet have a Persona account 1. invitee has an existing Persona account
Status: RESOLVED → VERIFIED
Awesome! Time to grab another bug :)
Yahoo! Thanks Kevin!
Version: next → 2014-04.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: