summaryrefslogtreecommitdiff
path: root/src/mailman/database
Commit message (Collapse)AuthorAgeFilesLines
* Full test suite passes.Barry Warsaw2015-04-141-0/+17
| | | | | | | | | | | | | * Make sure Registrar.discard() removces any workflow state manager state associated with the token, and that this is flushed to SA. * Adjust the email commands to the new IRegistrar API. * Update the IRegistrar interface. * Add IWorkflowStateManager.discard() and make `count` an attribute/property. * Mark two tests as expected failures due to LP: #1444184.
* Rebase Alembic revisions.Barry Warsaw2015-04-071-2/+2
|
* Trunk mergeBarry Warsaw2015-04-071-0/+56
|\
| * Checkpointing:Barry Warsaw2015-04-061-7/+27
| | | | | | | | | | | | * Cleanups. * Updates to domains and users. * Allow is_server_owner to be PUT.
| * * Add `drop_column` inside sqlite check, fix indentationAbhilash Raj2015-03-311-17/+8
| | | | | | | | | | | | | | | | * Change `Owner` to `DomainOwner` * Fix indentation errors in docs * add multiple owners using `add_owners` * all dummy addresses should be using example.com, example.org to avoid conflict ever * add dummy tests
| * merge serverowner branchAbhilash Raj2015-03-271-0/+45
| |\
| | * all tests passing now (except doctests)Abhilash Raj2015-03-262-13/+14
| | |
| | * add domainowner and serverowner optionsAbhilash Raj2015-03-211-0/+45
| | | | | | | | | | | | | | | | | | * Add is_serverowner flag in User model and api * Add owner table for user-domain's many to many relationship * add owners subresource in domain's rest api
| * | Make a test less susceptible to churn when migrations are added. Given byBarry Warsaw2015-03-251-7/+4
| |/ | | | | | | abompard.
* | Refactorings and tests.Barry Warsaw2015-03-291-1/+1
| | | | | | | | | | | | | | | | * Move the basic Workflow class to a module in mailman.app. * Rename the interface and model modules. * Update the configure.zcml. * Minor style fixes. * Add a test for the workflow model.
* | Workflow: allow saving and restoring with an empty queueAurélien Bompard2015-03-271-1/+1
| |
* | Add a table to store workflow statesAurélien Bompard2015-03-251-0/+28
| |
* | Make the subscription policy a database columnAurélien Bompard2015-03-212-7/+45
|/
* * A new API is provided to support non-production testing infrastructures,Barry Warsaw2015-02-131-2/+5
| | | | | | | | | | | | allowing a client to cull all orphaned UIDs via ``DELETE`` on ``<api>/reserved/uids/orphans``. Note that *no guarantees* of API stability will ever be made for resources under ``reserved``. (LP: #1420083) Also: - Allow @dbconnection methods to be @staticmethods taking only one argument, the store to perform the query on.
* Python 2 -> 3 migration.Barry Warsaw2015-01-201-0/+60
|
* fix for migration autogeneration using alembicAbhilash Raj2015-01-101-2/+7
|
* We don't need the 'six' package any more.Barry Warsaw2015-01-041-1/+1
|
* Bump copyright years.Barry Warsaw2015-01-0411-11/+11
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-2211-51/+14
|
* Checkpointing.Barry Warsaw2014-11-301-1/+1
| | | | | | | | | | By using `six` I think I have most of the imports squared away. There's probably still uses of `unicode` built-ins that need fixing. The idea is to first get the test suite running (which it doesn't yet), and then to fix tests. There's a bug in lazr.config which requires us to patch it for now.
* Add comments and rewrite test a bit.Barry Warsaw2014-11-291-1/+5
|
* Remove debugging.Barry Warsaw2014-11-281-1/+0
|
* Repair broken test. Given by Aurélien Bompard.Barry Warsaw2014-11-281-9/+15
|\
| * Fix a failing schemamanager testAurélien Bompard2014-11-271-8/+13
|/
* Remove some unnecessary code, and revert back to SQLite by default for theBarry Warsaw2014-11-011-6/+0
| | | | test suite.
* DatabaseBarry Warsaw2014-11-0128-2938/+494
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -------- * The ORM layer, previously implemented with Storm, has been replaced by SQLAlchemy, thanks to the fantastic work by Abhilash Raj and Aurélien Bompard. Alembic is now used for all database schema migrations. * The new logger `mailman.database` logs any errors at the database layer. API --- * Several changes to the internal API: - `IListManager.mailing_lists` is guaranteed to be sorted in List-ID order. - `IDomains.mailing_lists` is guaranteed to be sorted in List-ID order. - Iteration over domains via the `IDomainManager` is guaranteed to be sorted by `IDomain.mail_host` order. - `ITemporaryDatabase` interface and all implementations are removed.
| * Merge abompard's fixes to the Postgres test suite.Barry Warsaw2014-10-301-0/+6
| |
| * Move alembic settings to a separate alembic.cfg.Barry Warsaw2014-10-131-1/+1
| |
| * Merge Aurélien Bompard's latest merge branch, with some cleaning up by Barry.Barry Warsaw2014-10-136-22/+191
| |\
| | * Merge Barry's changesAurélien Bompard2014-10-135-88/+103
| | |\ | | |/ | |/|
| * | Remove some unused stuff.Barry Warsaw2014-10-111-5/+0
| | |
| * | Merge Abhilash's latest revisions.Barry Warsaw2014-10-115-53/+73
| | |
| | * Fix unit tests with SQLite nowAurélien Bompard2014-10-102-4/+8
| | |
| | * Fix unit tests with PostgreSQLAurélien Bompard2014-10-102-9/+36
| | |
| | * * remove migrate commandAbhilash Raj2014-10-104-30/+36
| | | | | | | | | | | | | | | | | | | | | | | | * remove alembic.cfg, move contents to schema.cfg * fix import errors in src/mailman/model/language.py * add indexes * change the previously wrong written tablename autoresponserecord * change alembic_cfg to use schema.cfg instead of alembic.cfg
| | * merge branch from abompardAbhilash Raj2014-10-105-19/+148
| | |\
| | | * Properly close transactions on schema changesAurélien Bompard2014-10-081-0/+2
| | | |
| | | * Include Alembic and SQLAlchemy logging into the Mailman logging systemAurélien Bompard2014-10-071-3/+0
| | | |
| | | * Don't use a testing layer for database testsAurélien Bompard2014-10-061-5/+10
| | | |
| | | * Merge from Abhilash's branchAurélien Bompard2014-10-067-51/+73
| | | |\ | | |_|/ | |/| |
| | | * Fix DB unit testsAurélien Bompard2014-10-061-35/+19
| | | |
| | | * Add unit tests for the automatic migration codeAurélien Bompard2014-10-032-0/+144
| | | |
| | | * Alembic stamping is done in the schema manager nowAurélien Bompard2014-10-031-12/+0
| | | |
| | | * Split DB creation and upgrade into separate functions to ease testingAurélien Bompard2014-10-031-4/+11
| | | |
| | * | fix database reset error due to foreign key constraint between user and ↵Abhilash Raj2014-10-091-1/+0
| |/ / | | | | | | | | | address tables
| * | add central alembic configAbhilash Raj2014-10-034-22/+40
| | |
| * | Merge barry\'s branch with test fixes and clean codeAbhilash Raj2014-10-024-38/+40
| |\ \ | | |/ | |/|
| | * Remove an unused import.Barry Warsaw2014-10-021-1/+0
| | |
| | * Fix the test suite.Barry Warsaw2014-10-021-1/+1
| | | | | | | | | | | | | | | * Fix a couple of typos. * Make the script_location and alembic_scripts a resource paths.
| | * PostgreSQL support by Abhilash, cleaned by Barry.Barry Warsaw2014-09-276-15/+24
| | |\