summaryrefslogtreecommitdiff
path: root/src/mailman/rest/lists.py
Commit message (Collapse)AuthorAgeFilesLines
* Updated rest/lists.py to handle list name error exceptions and addedMark Sapiro2017-02-191-1/+9
| | | | | | tests for for the exceptions. Enhanced the InvalidListNameError exception to return the invalid name.
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-291-1/+1
|
* Merge branch 'hide-system-disabled-archivers' into 'master' Barry Warsaw2016-11-261-2/+4
|\ | | | | | | | | | | | | | | | | | | | | | | Don't show the disabled archivers in the REST API Previously, system-disabled archivers were shown in the REST API. As a result it was possible to enable them without a validation error, but they would stay disabled on the next API GET call (their actual activation status depends on the list-specific *and* the system-wide status). Because one can't add a configuration overlay to the running REST server in testing mode, the prototype archiver was disabled in the testing configuration. This is where most of the changes in this commit come from. See merge request !87
| * Don't show the disabled archivers in the REST APIAurélien Bompard2016-08-181-2/+4
| | | | | | | | | | | | | | Because one can't add a configuration overlay to the running REST server in testing mode, the prototype archiver was disabled in the testing configuration. This is where most of the changes in this commit come from.
* | Implement the review suggestionsAurélien Bompard2016-10-261-2/+2
| | | | | | | | See !161
* | Add a method to find list using properties filtersAurélien Bompard2016-10-261-8/+5
| | | | | | | | | | | | This allows the filtering to be done at the database level. It also makes list pagination much more efficient, since the slicing is done at the database level too.
* | REST: add a query string to only get advertised listsAurélien Bompard2016-10-261-2/+12
|/
* New template system. Closes #249Barry Warsaw2016-07-161-2/+20
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* Tweaks and clean up.Barry Warsaw2016-04-291-12/+8
| | | | | | | | * Add NEWS entry. * De-duplicate emails in the sequence passed to the model's ISubscriptionService.unsubscribe_members() method. * Modify the semantics of the DELETE method to return a mapping of addresses to boolean status.
* Add batch unsubscribe option to REST API.Harshit Bansal2016-04-281-1/+23
|
* Revert a few incorrect renames.Barry Warsaw2016-04-031-18/+18
|
* Don't pass `api` when it's readily available.Barry Warsaw2016-04-031-1/+1
|
* API consistency.Barry Warsaw2016-04-031-27/+27
|
* Complete the port to Falcon 1.0.Barry Warsaw2016-04-021-2/+2
|
* Checkpointing.Barry Warsaw2016-04-021-3/+3
|
* Import order flake8 plugin.Barry Warsaw2016-03-271-1/+1
| | | | Fix lots of import order errors discovered by the new plugin.
* Clean up the rest directory.Barry Warsaw2016-03-251-10/+9
|
* Add a test for header-matches on missing lists.Barry Warsaw2016-02-291-7/+0
| | | | Also: Opportunistically remove ^L for better coverage results.
* Expose the header matches in the REST APIAurélien Bompard2016-02-291-1/+9
|
* Expose the ban list on the REST APIAurélien Bompard2016-01-131-0/+8
|
* Refactor API differences into a separate class.Barry Warsaw2016-01-131-2/+2
| | | | | | | | | | | 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-131-1/+1
| | | | | | 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
|
* Additional refactoring to use the QuerySequence wrapper, so that we can stillBarry Warsaw2016-01-061-8/+5
| | | | | | 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-061-9/+11
|
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Cleanups, corner case fixes, and coverage.Barry Warsaw2015-12-311-2/+0
|
* Major push for completing issue #121. Now in API 3.1, all UUIDs must be theBarry Warsaw2015-12-301-4/+4
| | | | | | | | | 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).
* Bump coverage to 100%Barry Warsaw2015-12-221-2/+1
|
* Expose the "bump digest" and "send digest" functionality though the REST APIBarry Warsaw2015-12-221-2/+45
| | | | | | | via the ``<api>/lists/<list-id>/digest`` end-point. GETting this resource returns the ``next_digest_number`` and ``volume`` as the same values accessible through the list's configuraiton resource. POSTing to the resource with either ``send=True``, ``bump=True``, or both invokes the given action.
* Rework pagination to fix the 'start' and 'total_size' valuesAurélien Bompard2015-11-041-4/+1
|
* Clean up based on review.Barry Warsaw2015-07-181-2/+1
|
* * REST API version 3.1 introduced. Mostly backward compatible with versionBarry Warsaw2015-07-181-4/+6
| | | | | | 3.0 except that UUIDs are represented as hex strings instead of 128-bit integers, since the latter are not compatible with all versions of JavaScript.
* Checkpointing.Barry Warsaw2015-04-161-1/+2
|
* We don't need the 'six' package any more.Barry Warsaw2015-01-041-4/+2
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* * You can access the system configuration via the resource pathBarry Warsaw2014-12-261-1/+1
| | | | | | | | | ``/3.0/system/configuration/<section>``. This returns a dictionary with the keys being the section's variables and the values being their value from ``mailman.cfg`` as verbatim strings. You can get a list of all section names via ``/3.0/system/configuration`` which returns a dictionary containing the ``http_etag`` and the section names as a sorted list under the ``sections`` key. The system configuration resource is read-only.
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-6/+2
|
* Lots of REST test fixes.Barry Warsaw2014-12-151-4/+3
|
* Checkpointing.Barry Warsaw2014-11-301-2/+4
| | | | | | | | | | 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.
* Refactor so that most modules don't need to import falcon, and so fewerBarry Warsaw2014-08-141-28/+18
| | | | | unnecessary changes are needed for upstream falcon to support restish-ish traversal.
* Complete the conversion from restish to falcon, modulo a clean up pass. AllBarry Warsaw2014-08-141-20/+12
| | | | REST tests pass. This requires an as yet unmerged internal change to falcon.
* Lists and pagination are ported.Barry Warsaw2014-08-131-30/+49
|
* Domains are ported to falcon.Barry Warsaw2014-08-131-15/+19
|
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-281-1/+1
| | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Add lists/<list-id>/archivers as the resource end-point.Barry Warsaw2013-11-271-1/+68
| | | | | | We won't set archivers in the list's configuration. Add doctests and unittests for archivers.
* Switch to PEP 435 enums from flufl.enums.Barry Warsaw2013-06-181-2/+2
|
* Tweaks and fixes by Barry.Barry Warsaw2013-03-211-1/+1
|