If user does not have primary email some functionality is not working (notifications and stuff).
We should set up primary emails for test users. Anytime I'm re-creating my dev environment I'm manually creating emails for at least root
, admin
and test-user-1
. And it's pretty painful, since you need to type email, re-type the password, get confirmation link from server logs.
Its low priority, obviously, but would be good to have.
Specifically which accounts are to be given an email id? And what would they be?
I'm thinking all of the accoounts created in
bootstrap.py
during setup should have emails.They can be in a form "<username>@allura.local" or something like that. It's just fake, test data.
I found only two ways to add a confirmed email.
Is there any other way? If not, which should be preferred from the above?
save_new
callsclaim_address
which looks like a useful helper function to run. And then after that setting the.confirmed
property directly seems fine to me.The "save_new" requires a turbogears session. The session is not available during paster setup-app. So I did a workaround of user claiming the email address, and then confirming it.
https://forge-allura.apache.org/p/allura/git/merge-requests/66/
Last edit: Pranav Sharma 2015-12-18
Merged https://forge-allura.apache.org/p/allura/git/merge-requests/87/
Thanks for chasing down and fixing all the tests :)