summaryrefslogtreecommitdiff
path: root/src/mailman/database
Commit message (Collapse)AuthorAgeFilesLines
* Convert to click for CLI optionsBarry Warsaw2017-07-222-6/+17
|
* Fix the bogus migration on Template.passwordAurélien Bompard2017-05-241-0/+25
| | | | Fixes #336
* Fix the template name of the welcome message.Barry Warsaw2017-05-242-8/+8
| | | | | | | | | | | | | | | | | We did not previously complete the renaming of the templates. Rename: * user:ack:welcome -> list:user:notice:welcome * user:ack:goodbye -> list:user:notice:goodbye The new names are what are actually used in send_welcome_message() and send_goodbye_message() so the old names were actually never used. NOTE: If you added welcome or goodbye templates through REST from git head, the old names will not be used. Given that this wasn't a feature in 3.0, and the above use case is very unlikely, I've decided not to do a migration. If anybody is affected, the changes can be made manually in withlist. Closes: #337
* Implement SQLAlchemy pre-ping to detect dropped connections.Mark Sapiro2017-03-271-1/+41
|
* Enforce a stricter coding style.Barry Warsaw2017-01-261-3/+3
|
* Bump copyright years.Barry Warsaw2017-01-0416-16/+16
|
* Merge gitlab.com:mailman/mailman into dmarcMark Sapiro2016-12-301-3/+3
|\
| * Yet another typo in database/types.pyMark Sapiro2016-12-301-1/+1
| |
| * Fix typos Mark Sapiro2016-12-301-2/+2
| |
* | Simplified the various list settings and remamed several things.Mark Sapiro2016-12-261-31/+18
| |
* | Fixed alembic down_revision following merge of another migration.Mark Sapiro2016-12-231-2/+2
| |
* | Merge gitlab.com:mailman/mailman into dmarcMark Sapiro2016-12-231-0/+27
|\|
| * Increase pendedkeyvalue table value column width.Mark Sapiro2016-12-151-0/+27
| | | | | | | | | | Also require docutils==0.12 to work around https://github.com/sphinx-doc/sphinx/issues/3212
* | Modifications based on feedback from Barry.Mark Sapiro2016-12-161-7/+1
| | | | | | | | | | | | Also, the change to the value column of pendedkeyvalue from SAUnicode to SAUnicodeLarge is removed as it is a separate MR now. This will cause mysql CI to fail until that MR lands.
* | Merged from master.Mark Sapiro2016-12-0911-11/+11
|\|
| * Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-2911-11/+11
| |
* | Merge branch 'dmarc' of gitlab.com:msapiro/mailman into dmarcMark Sapiro2016-11-261-0/+89
|\ \ | |/ |/|
| * Modified 'pendedkeyvalue' table 'value' column type to SAUnicodeLarge forMark Sapiro2016-11-111-1/+7
| | | | | | | | MySQL.
| * DMARC mitigations, part 1a.Mark Sapiro2016-10-311-0/+83
| |
* | Fix the Flake8 ignore tagsAurélien Bompard2016-11-211-1/+1
|/
* Confirm unsubscriptions by default.Barry Warsaw2016-10-251-3/+2
|
* Simplify the implementation.Barry Warsaw2016-10-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | This merges the SubscriptionManager and UnsubscriptionManager into a single SubscriptionManager implementation that handles both register() and unregister(). This allows us to use direct class-based adaptation instead of the more clunky getAdapter() API. We can also eliminate the funky _get_workflow() implementation detail. This has a couple of side-effects. .confirm() must lookup the token in the pendings database and pull out the pending type, dispatching to the proper class depending on the type, or raising a LookupError if the token is None or there is no pendable associated with the given token. This feels like an acceptable trade-off. However, this *also* means that IWorkflowStateManager must lose its 'name' argument in its methods. That's because we won't actually know the name until its too late. Honestly, the name wasn't providing much value anyway (it was always the subclass's name), so losing that seems fine too. The complication here is that the name was a primary key in the 'workflowstate' table, so we need to add its removal in the database migration.
* More test repair.Barry Warsaw2016-10-161-18/+27
|
* Another test repair.Barry Warsaw2016-10-161-12/+33
|
* Fix one migration failure.Barry Warsaw2016-10-161-5/+7
|
* flake8 fixes.Barry Warsaw2016-10-161-0/+1
|
* Minor changes.Barry Warsaw2016-09-193-7/+4
|
* Fix migration.Barry Warsaw2016-09-021-4/+4
|
* CheckpointingBarry Warsaw2016-09-011-14/+15
|
* Intermediate CommitAbhilash Raj2016-09-011-0/+42
|
* MySQL is now an officially supported database.Barry Warsaw2016-07-2916-89/+212
| | | | Given by Abhilash Raj.
* Rebase mailman/mailman!180 and cleanup # noqaBarry Warsaw2016-07-285-8/+9
|
* New template system. Closes #249Barry Warsaw2016-07-164-3/+337
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* Use contextlib.suppress() where appropriate.Barry Warsaw2016-04-301-5/+4
|
* public() takes keyword arguments.Barry Warsaw2016-04-042-5/+5
|
* Use flake8-respect-noqa plugin and fix more complaints.Barry Warsaw2016-04-011-3/+1
|
* Don't use `flake8: noqa`.Barry Warsaw2016-04-012-3/+3
| | | | | | | This suppresses all errors in the file. Use `noqa`, although pep8 doesn't honor this for all errors. There may be a plugin which helps.
* Allow fall backs for moderation actions.Barry Warsaw2016-04-012-27/+42
| | | | | | | | | The `moderation_action` for members and nonmember can now be ``None`` which signals falling back to the appropriate list default action, e.g. `default_member_action` and `default_nonmember_action`. Given by Aurélien Bompard. Closes #189
* Appease flake8.Barry Warsaw2016-04-011-4/+12
|
* Add caching to the data migrationAurélien Bompard2016-03-311-4/+14
| | | | Very useful on large installations.
* Migrate data from the static member moderation action to the list fallbackAurélien Bompard2016-03-312-0/+140
|
* Import order flake8 plugin.Barry Warsaw2016-03-277-9/+9
| | | | Fix lots of import order errors discovered by the new plugin.
* Clean up the database directory.Barry Warsaw2016-03-2425-156/+111
|
* Last cleanups.Barry Warsaw2016-02-292-2/+0
| | | | | | | | | * Remove an unused import. * Opportunistically remove ^Ls * Add a missing interface attribute. * Fix up some docstrings. * Rename a parameter in an interface for clarity. * Random code style cleanups.
* Revert "Rename the HeaderMatch.chain column to action"Aurélien Bompard2016-02-292-108/+0
| | | | This reverts commit 703fc135dfcd496a704562ddc263aa0f4f828de9.
* Review suggestions: rename the new index column to positionAurélien Bompard2016-02-291-20/+17
|
* Fix test on PostgreSQLAurélien Bompard2016-02-291-21/+29
|
* Rename the HeaderMatch.chain column to actionAurélien Bompard2016-02-292-0/+100
| | | | It makes it clearer what values are valid, and allows validation.
* The order of a mailing list's header matches is significantAurélien Bompard2016-02-292-2/+44
| | | | | | | Add a numerical index property to HeaderMatch objects, and change the HeaderMatchSet manager to take the order into account. Items can now be inserted and removed by index.
* Super duper.Barry Warsaw2016-01-262-2/+2
| | | | | * Python 3-ify super() calls. * Remove a bunch of obsolete exception classes.