Closed Bug 1042848 Opened 10 years ago Closed 10 years ago

Whitelist email addresses for actual email on dev and stage

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2015-01

People

(Reporter: kmag, Assigned: davidbgk)

References

Details

(Whiteboard: [ReviewTeam:P1][qa-])

There are a lot of times when we need to test an email-related feature on dev or stage, but with a limited set of addresses. The most relevant current examples are the bulk validation tool and commbadge. For the latter, at least, simply logging the email is not sufficient.

We should be able to define a whitelisted set of addresses which will receive actual email, even on dev and stage.

Filing for both Marketplace and AMO.
Blocks: 1042850
Whiteboard: [ReviewTeam]
Blocks: 1017910
No longer blocks: 1042850
Depends on: 1042850
Whiteboard: [ReviewTeam] → [ReviewTeam:P1]
Target Milestone: --- → 2014-12
Assignee: nobody → david
I created https://github.com/mozilla/olympia/pull/394

We need to coordinate with ops to add the whitelist setting (EMAIL_QA_WHITELIST) to dev/stage private settings.
out of interest, why choose to implement the change in Olympia in a different manor than in Zamboni?  (Since the original patch its been enhanced further to allow regex on the whitelist [1])

https://github.com/mozilla/zamboni/blob/master/mkt/site/mail.py#L43
Interesting, I did it without checking zamboni first (my bad). It looked more relevant to me to modify the backend dedicated to dev/stage in order to be sure that it doesn't affect the prod. But it's more a matter of consistency/strategy across both code bases, do we want to have the same behaviors implemented the same ways? For now, it's hard to maintain such symbiosis given that devs from both sides don't push their changes on the other project.

That being said, I should definitely grab the regexp from zamboni :)
https://github.com/mozilla/olympia/commit/1290474792111b029daba6a9dc3c743f5e6db758
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
I couldn't find the  whitelist email addresses settings in here: https://addons-dev.allizom.org/en-US/admin/models/zadmin/config/.
Am I searching in the wrong place?
Flags: needinfo?(david)
Those settings are currently controlled by ops rather than being stored in the DB.

Jason, can you add Madalin's email address to the EMAIL_QA_WHITELIST setting on addons-dev?

Madalin, are there any other addresses which should be added?
Flags: needinfo?(madalin.cotetiu)
Flags: needinfo?(jthomas)
Flags: needinfo?(david)
Here are the test accounts that should be added:

cotetiu_madalin_sv@yahoo.com
valentina_sv@yahoo.com
carcium@gmail.com
Flags: needinfo?(madalin.cotetiu)
I've added the email addresses in comment 7 to EMAIL_QA_WHITELIST for both dev and stage.
Flags: needinfo?(jthomas)
Whiteboard: [ReviewTeam:P1] → [ReviewTeam:P1][qa-]
Target Milestone: 2014-12 → 2015-01
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.