summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Use the more convenient API.Barry Warsaw2016-01-251-3/+2
|
* Full coverage of the accept chain.Barry Warsaw2016-01-252-2/+78
| | | | Fix some comments.
* Boost coverage and remove dead code.Barry Warsaw2016-01-252-4/+11
|
* Boost coverage.Barry Warsaw2016-01-253-2/+20
| | | | Also, ignore `raise AssertionError` lines globally.
* Make creating Link objects a more convenient.Barry Warsaw2016-01-2510-48/+29
| | | | | | Link.__init__() can now take an IRule or the string naming a rule, which will be looked up in config.rules. Similarly, it can take an IChain or the name of a chain.
* Use the default python3 interpreter sometimes.Barry Warsaw2016-01-241-3/+3
| | | | | For the non-default test environments, use whatever Python 3 version is the default.
* remove tags for sqlite to run with specific runnersAbhilash Raj2016-01-231-3/+0
|
* Add docker images to .gitlab-ci.yml, Contributed by Simon Hanna (!72)Abhilash Raj2016-01-231-5/+14
| | | | Add variables to create databases in postgres and mysql
* It's okay if some interpreters are missing.Barry Warsaw2016-01-211-0/+1
|
* Also add a test for the global ban listAurélien Bompard2016-01-201-0/+12
|
* Give a meaningful message when a banned member tries to joinAurélien Bompard2016-01-202-0/+16
|
* Branch tweaks:Barry Warsaw2016-01-142-5/+13
| | | | | | | | - Fix an interface description. - Fix a copyright year. - Fix quote styles. - Tweak a test. - Add a test.
* Delete bans when their associated list is deletedAurélien Bompard2016-01-144-2/+73
| | | | Also add indexes on the Ban fields that are filtered on.
* Add indexes on the MailingList tableAurélien Bompard2016-01-142-3/+34
| | | | | Ensure that list_id is unique, and add indexes on two commonly filtered-on fields: list_name and mail_host.
* Add NEWS and tweak.Barry Warsaw2016-01-135-8/+11
|
* Member search can be done using GET requestsAurélien Bompard2016-01-132-1/+35
|
* Allow fuzz search for members in SubscriptionServiceAurélien Bompard2016-01-133-4/+31
|
* Clean up the branch for landing.Barry Warsaw2016-01-134-46/+132
| | | | | | | | | | | | * Add NEWS * Update copyright years. * Adjust for new IAPI.path_to() interface. * Style. * Remove some unreachable code. * Boost coverage. * Change some Bad Requests into Not Founds. * Do not include `list_id` in resource JSON for global bans. * Rephrase some doctests.
* Add the self_link for bans and factor some codeAurélien Bompard2016-01-132-18/+41
|
* Expose the ban list on the REST APIAurélien Bompard2016-01-136-0/+222
|
* Just a little more UUID conversion convenience.Barry Warsaw2016-01-133-21/+19
|
* Use common idiom for converting the UUID.Barry Warsaw2016-01-132-14/+15
| | | | Wrap lines.
* Fix getting a list member through the 3.1 APIAurélien Bompard2016-01-132-11/+31
|
* Refactor API differences into a separate class.Barry Warsaw2016-01-1319-94/+128
| | | | | | | | | | | We now have an IAPI interface which defines methods to convert to/from UUIDs to their REST representations, and to calculate the API-homed full URL path to a resource. Add implementations API30 and API31 to handle the two different implementations so far. This also simplifies the various path_to() calls. Also: Add support for diff_cover to tox.ini to check that all differences against the master branch have full test coverage.
* Refactor API contexts.Barry Warsaw2016-01-1314-100/+158
| | | | | | Rather than sprinkle API version string tests all over the place, create an IAPI interface which encapsulates the differences between API 3.0 and 3.1, and arrange for this to be used to convert to and from UUIDs.
* Several optimizations:Barry Warsaw2016-01-1120-97/+105
| | | | | | | | | | | | * Use `yield from` wherever appropriate. * Use SA's .one_or_none() where appropriate. - Fix a bug in MailingList.pass_extensions. - Use ValueError in other places for consistency. - Remove unreached/nonsense code. - Simplify the SubscriptionService.find_member() and .find_members() implementations. - Boost coverage.
* Use the more efficient find_member() API.Barry Warsaw2016-01-111-4/+3
|
* Delegate more to the underlying query object and don't use a cached results.Barry Warsaw2016-01-102-4/+10
|
* Boost coverage.Barry Warsaw2016-01-095-15/+94
|
* Boost coverage.Barry Warsaw2016-01-085-29/+131
|
* Refactor some tests and documentation.Barry Warsaw2016-01-075-216/+339
| | | | | | Increase coverage. Add ISubscriptionService.find_member() as per discussion.
* Docstring.Barry Warsaw2016-01-061-0/+6
|
* A little bit more refactoring, just to keep things cleaner.Barry Warsaw2016-01-062-4/+5
|
* Complete the layer violation fixes by moving the SubscriptionService class toBarry Warsaw2016-01-063-109/+133
| | | | the mailman.model package.
* Additional refactoring to use the QuerySequence wrapper, so that we can stillBarry Warsaw2016-01-069-33/+75
| | | | | | use len() and slicing on SQLAlchemy query results. We also don't need to list()-ify the results in the tests. This isn't perfect, but at least it doesn't introduce yet another layer violation.
* Make the members request pageableAurélien Bompard2016-01-067-24/+26
|
* Return SQL queries in IListRequests.of_typeAurélien Bompard2016-01-062-4/+2
|
* Support SQL queries for CollectionMixin._get_collectionAurélien Bompard2016-01-062-4/+20
|
* More coverage.Barry Warsaw2016-01-042-2/+25
|
* Boost coverage.Barry Warsaw2016-01-038-11/+100
| | | | | | Use coverage.ini to ignore a few common idioms, so as to reduce code clutter. Invoke coverage slightly differently in the tox.ini.
* Happy New Year.Barry Warsaw2016-01-02365-370/+370
|
* Cleanups, corner case fixes, and coverage.Barry Warsaw2015-12-319-24/+97
|
* Major push for completing issue #121. Now in API 3.1, all UUIDs must be theBarry Warsaw2015-12-3016-80/+497
| | | | | | | | | hex representations of a UUID, not the int representation. Also: * Some general code cleanup. * Fix issue 185 (REST server crash when subscribing a user without a preferred address).
* More coverage.Barry Warsaw2015-12-294-2/+27
|
* Coverage improvements.Barry Warsaw2015-12-297-10/+54
| | | | | | | | * Boost coverage. * Don't report coverage on the test modules. * In one test, when acquiring the lock, set a timeout. Hopefully this will eliminate the occasional test deadlock. * Fix a buglet in wrap()
* Boost coverage.Barry Warsaw2015-12-264-11/+92
| | | | | Use Python 3.5 to run the coverage tests. Clean up the code style a bit.
* Tweak the API.Barry Warsaw2015-12-261-23/+37
|
* Give the predictable ID factories similar APIs.Aurélien Bompard2015-12-265-34/+54
|
* Return predictable token IDs in testing mode.Aurélien Bompard2015-12-262-17/+33
| | | | | | This commits builds upon the mailman.utilities.uid.UniqueIDFactory to generate predictable tokens when the testing mode is activated. This will make VCR tapes more diffable between runs.
* The ``mailman members`` command can now be used to display members based onBarry Warsaw2015-12-226-176/+270
| | | | | subscription roles. Also, the positional "list" argument can now accept list names or list-ids.