Merge lp:~sinzui/launchpad/project-notify-3 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Curtis Hovey on 2012-03-19 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 14981 |
| Proposed branch: | lp:~sinzui/launchpad/project-notify-3 |
| Merge into: | lp:launchpad |
| Prerequisite: | lp:~sinzui/launchpad/project-notify-1 |
| Diff against target: |
465 lines (+436/-0) 4 files modified
lib/lp/registry/enums.py (+32/-0) lib/lp/registry/interfaces/productjob.py (+67/-0) lib/lp/registry/model/productjob.py (+151/-0) lib/lp/registry/tests/test_productjob.py (+186/-0) |
| To merge this branch: | bzr merge lp:~sinzui/launchpad/project-notify-3 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Benji York (community) | code | 2012-03-19 | Approve on 2012-03-19 |
|
Review via email:
|
|||
Commit Message
Add base productjob model classes and tests.
Description of the Change
Launchpad bug: https:/
Pre-
This branch adds a productjob models to track automated and manual jobs
that are scheduled for a product. The immediate use is for an automated
system that send out commercial subscription expiration emails at 4 weeks
and 1 week before expiration. After expiration an automated process will
update or deactivate the project and send an email.
This branch adds the base classes for the job, but the specifc jobs
we need are deferred to my next branch.
-------
RULES
* Create base and derived classes for ProductJob that can be
used to create specific classes to for tasks like sending
a commericial subscription expiration email.
QA
None because this branch only contains the classes needed by other
branches.
LINT
lib/
lib/
lib/
lib/
TEST
./bin/test -vv lp.registry.
IMPLEMENTATION
Update enums with the actual types of job Lp needs to support.
lib/
Created the base and derived job classes based on the person transfer job.
I the branch was already large after adding and testing the support classes
so I decided to submit this for merging separately from the real work.
lib/
lib/
lib/

This branch looks good. It also makes me wish we had an easier way of creating jobs.