summaryrefslogtreecommitdiff
path: root/src/mailman/rest
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow fall backs for moderation actions.Barry Warsaw2016-04-012-3/+7
| | | | | | | | | 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
* Members and nonmembers moderation action fallbackAurélien Bompard2016-03-313-48/+11
| | | | | | | | Members and nonmember's moderation action should be None by default, and in that case the moderation rule should fallback to the mailing list's default action. Fixes: #189
* Add a test to verify the problem isn't in core.Barry Warsaw2016-03-311-0/+14
|
* Import order flake8 plugin.Barry Warsaw2016-03-277-8/+8
| | | | Fix lots of import order errors discovered by the new plugin.
* Clean up the rest directory.Barry Warsaw2016-03-2538-343/+121
|
* Clean up the core directory.Barry Warsaw2016-03-243-8/+23
| | | | | | | mailman/core/errors.py is gone now. We had a duplicate base exception which now always comes from mailman/interfaces/errors.py. Obsolete/unused exceptions are remove. The other exceptions are moved to better locations.
* Closes #199Barry Warsaw2016-03-222-2/+51
| | | | | New subscription requests are rejected if there is already one pending. With thanks to Anirudh Dahiya. (Closes #199)
* Caught exception at the right placeAnirudh Dahiya2016-03-221-5/+4
|
* Removed unnecessary commentsAnirudh Dahiya2016-03-221-9/+0
|
* Incorporates suggested changesAnirudh Dahiya2016-03-221-3/+10
|
* Add necessary comment explaining the modificationAnirudh Dahiya2016-03-221-0/+1
|
* Block duplicate Subscription requestsAnirudh Dahiya2016-03-221-1/+6
|
* Document the pagination API.Barry Warsaw2016-03-162-1/+89
| | | | Closes #209
* Fix #198 - duplicate owner subscription errorBarry Warsaw2016-03-052-1/+19
| | | | | | Trying to subscribe an address as a list owner (or moderator or nonmember) which is already subscribed with that role produces a server error.
* Add AlreadySubscribedError Exception for better error messageAnirudh Dahiya2016-03-051-0/+3
|
* Add NEWS and clean up.Barry Warsaw2016-03-032-24/+30
|
* Exposed goodbye_message_uri attribute through REST API.Harshit Bansal2016-03-033-0/+40
|
* Last cleanups.Barry Warsaw2016-02-292-16/+24
| | | | | | | | | * 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.
* Add a test for header-matches on missing lists.Barry Warsaw2016-02-293-15/+9
| | | | Also: Opportunistically remove ^L for better coverage results.
* Review suggestions on the REST entry pointsAurélien Bompard2016-02-292-15/+24
| | | | | - validate HeaderMatch.chain values using Action - reformat the docs
* Review suggestions: rename the new index column to positionAurélien Bompard2016-02-293-33/+34
|
* Expose the header matches in the REST APIAurélien Bompard2016-02-294-1/+419
|
* Handle AlreadySubscribedError in REST.Barry Warsaw2016-02-152-1/+20
| | | | | | | | When approving a subscription request via the REST API, for a user who is already a member, return an HTTP 409 Conflict code instead of the previous server traceback (and resulting HTTP 500 code). Closes #193
* Prevent moderation of messages held for a different list.Barry Warsaw2016-02-071-0/+23
| | | | Closes: #161
* Add a set_preferred() helper.Barry Warsaw2016-02-062-17/+9
| | | | | This refactors the setting of a user's preferred address to the first in their list of linked addresses.
* Super duper.Barry Warsaw2016-01-262-3/+3
| | | | | * Python 3-ify super() calls. * Remove a bunch of obsolete exception classes.
* 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
|
* Add NEWS and tweak.Barry Warsaw2016-01-132-3/+4
|
* Member search can be done using GET requestsAurélien Bompard2016-01-132-1/+35
|
* Clean up the branch for landing.Barry Warsaw2016-01-133-46/+130
| | | | | | | | | | | | * 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-134-0/+210
|
* Just a little more UUID conversion convenience.Barry Warsaw2016-01-131-11/+5
|
* 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-1314-140/+45
| | | | | | | | | | | 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-1313-100/+121
| | | | | | 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.
* Use the more efficient find_member() API.Barry Warsaw2016-01-111-4/+3
|
* Boost coverage.Barry Warsaw2016-01-093-10/+56
|
* Boost coverage.Barry Warsaw2016-01-083-28/+110
|
* A little bit more refactoring, just to keep things cleaner.Barry Warsaw2016-01-061-2/+1
|
* Additional refactoring to use the QuerySequence wrapper, so that we can stillBarry Warsaw2016-01-064-21/+14
| | | | | | 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-062-12/+14
|
* Return SQL queries in IListRequests.of_typeAurélien Bompard2016-01-061-1/+1
|
* 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-033-4/+86
| | | | | | 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-0233-33/+33
|
* Cleanups, corner case fixes, and coverage.Barry Warsaw2015-12-319-24/+97
|