Merge lp:~jamestait/canonical-identity-provider/lp1648775-email-reminder-of-paper-exhaustion into lp:canonical-identity-provider/release
Proposed by
James Tait
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | James Tait | ||||
Approved revision: | no longer in the source branch. | ||||
Merge reported by: | Otto Co-Pilot | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~jamestait/canonical-identity-provider/lp1648775-email-reminder-of-paper-exhaustion | ||||
Merge into: | lp:canonical-identity-provider/release | ||||
Diff against target: |
273 lines (+176/-3) 6 files modified
src/identityprovider/emailutils.py (+20/-0) src/identityprovider/templates/email/printed-codes-nearly-exhausted-warning.txt (+19/-0) src/identityprovider/tests/test_emailutils.py (+71/-0) src/webui/tests/test_views_account.py (+2/-2) src/webui/tests/test_views_ui.py (+56/-0) src/webui/views/ui.py (+8/-1) |
||||
To merge this branch: | bzr merge lp:~jamestait/canonical-identity-provider/lp1648775-email-reminder-of-paper-exhaustion | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Manrique (community) | Approve | ||
Review via email:
|
Commit message
Send an email reminder to renew paper codes that are close to exhaustion, as long as another list exists that does not need renewal (otherwise renewal is forced).
Description of the change
In the case where a user has multiple lists of paper codes and at least one is
close to exhaustion and at least one is not, send an email reminder to renew
the lists that are close to exhaustion. In the case where all lists are close
to exhaustion (where all can also mean all of a list of length 1), renewal is
forced at login.
To post a comment you must log in.
A couple of questions/nitpicks below.