Skip to content

Commit

Permalink
Upgrade to Cliquet 3 (fixes #345, fixes #fixes #369, fixes #421, fixes
Browse files Browse the repository at this point in the history
…#424, fixes #433, fixes #434, fixes #461)
  • Loading branch information
leplatrem committed Mar 7, 2016
1 parent 82e6243 commit 97cab99
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 5 deletions.
50 changes: 49 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,61 @@ This document describes changes between each past release.
1.12.0 (unreleased)
===================

**Protocol**

- Allow buckets to store arbitrary properties. (#462)
- Clients are redirected to URLs without trailing slash only if the current URL
does not exist (#656)
- Partial responses can now be specified for nested objects (#445)
For example, ``/records?_fields=address.street``.
- List responses are now sorted by last_modified descending by default (#434,
thanks @ayusharma)
- Server now returns 415 error response if client cannot accept JSON response (#461, mozilla-services/cliquet#667)
- Server now returns 415 error response if client does not send JSON request (#461, mozilla-services/cliquet#667)

**Breaking changes**

- Errors are not swallowed anymore during the execution of ``ResourceChanged``
events subscribers.

Subscribers are still executed within the transaction like before.

Subscribers are still executed even if the transaction is eventually rolledback.
Every subscriber execution succeeds, or none.

Thus, subscribers of these events should only perform operations that are reversed
on transaction rollback: most likely database storage operations.

For irreversible operations see the new ``AfterResourceChanged`` event.

**New features**

- Event subscribers are now ran synchronously and can thus alter responses (#421)
- Resource events are now merged in batch requests. One event per resource and
per action is emitted when a transaction is committed (mozilla-services/cliquet#634)
- Monitor time of events listeners execution (mozilla-services/cliquet#503)
- Added a new ``AfterResourceChanged`` event, that is sent only when the commit
in database is done and successful.
`See more details <http://cliquet.readthedocs.org/en/latest/reference/notifications.html>`_.
- Track execution time on StatsD for each authentication sub-policy (mozilla-services/cliquet#639)

**Bug fixes**

- Fix PostgreSQL backend timestamps when collection is empty (#433)
- ``ResourceChanged`` events are not emitted if a batch subrequest fails (mozilla-services/cliquet#634)
There are still emitted if the whole batch transaction is eventually rolledback.
- Fix a migration of PostgreSQL schema introduced that was never executed (mozilla-services/cliquet#604)
- Fix statsd initialization on storage (mozilla-services/cliquet#637)
- Providing bad last modified values on delete now returns 400 (mozilla-services/cliquet#665)
- Providing last modified in the past for delete now follows behaviour create/update (mozilla-services/cliquet#665)

**Internal changes**

- Changed default duration between retries on error (``Retry-After`` header)
from 30 to 3 seconds.
- Allow buckets to store arbitrary properties. (#462)
- Speed-up startup (ref #490)

- Optimized (and cleaned) usage of (un)authenticated_userid (#424, mozilla-services/cliquet#641)

1.11.2 (2016-02-03)
===================
Expand Down
8 changes: 7 additions & 1 deletion docs/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ API
Changelog
---------

1.4 (2016-02-26)
1.4 (unreleased)
''''''''''''''''

- Allow bucket to get arbitrary attributes.
- URLs with trailing slash are redirected only if the current URL does not exist
- Partial responses can now be specified for nested objects.
For example, ``/records?_fields=address.street``.
- List responses are now sorted by last_modified descending by default
- Return 415 error response if client cannot accept JSON response
- Return 415 error response if client does not send JSON request


1.3 (2016-01-28)
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ def read_file(filename):

REQUIREMENTS = [
'waitress',
'cliquet>=2.15,<3',
'cliquet>=3,<4',
'jsonschema',
]

POSTGRESQL_REQUIREMENTS = REQUIREMENTS + [
'cliquet[postgresql]>=2.15,<3'
'cliquet[postgresql]>=3,<4'
]

MONITORING_REQUIREMENTS = REQUIREMENTS + [
'cliquet[monitoring]>=2.15,<3'
'cliquet[monitoring]>=3,<4'
]

FXA_REQUIREMENTS = REQUIREMENTS + [
Expand Down

0 comments on commit 97cab99

Please sign in to comment.