Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Releases: mozilla-services/cliquet

3.1.5

18 May 08:53
Compare
Choose a tag to compare

Bug fixes

  • Prevent the browser to cache server responses between two sessions. (#593)

3.1.4

10 May 17:13
Compare
Choose a tag to compare

Bug fixes

  • Redirects version prefix to hello page when trailing_slash_redirect is enabled. (#700)
  • Fix crash when setting empty permission list with PostgreSQL permission backend (fixes Kinto/kinto#575)
  • Fix crash when type of values in querystring for exclude/include is wrong (fixes Kinto/kinto#587)
  • Fix crash when providing duplicated principals in permissions with PostgreSQL permission backend (fixes #702)

3.1.3

29 Apr 10:23
Compare
Choose a tag to compare

Bug fixes

  • Fix migration of triggers in PostgreSQL storage backend when upgrading from <3.0.0.
    Running the migrate command will basically re-create them (fixes Kinto/kinto#559)

Documentation

  • Fix some typos in documentation (#696)
  • Update links to readthedocs (#697)

3.1.2

19 Apr 12:59
Compare
Choose a tag to compare

Bug fixes

  • Fix safe creation (If-None-Match: *) if a record used to exist with the
    same id (Kinto/kinto#512)

3.1.1

06 Apr 08:56
Compare
Choose a tag to compare

Bug fixes

  • Allow numeric comparison and sorting with the PostgreSQL backend. (#690)

3.1.0

08 Mar 09:44
Compare
Choose a tag to compare

Protocol

  • Add the __lbheartbeat__ endpoint, for load balancer membership test.

New features

  • Default console log renderer now has colours (#671)

Bug fixes

  • Do not always return 412 errors when request header If-None-Match: *
    is sent on POST /collection (fixes #673)

Internal changes

  • Remove some imports at initialization to speed startup (#674)

3.0.0

29 Feb 16:52
Compare
Choose a tag to compare

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 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.

Protocol

  • 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 (#660, Kinto/kinto#445)
    For example, /records?_fields=address.street.
  • List responses are now sorted by to last_modified descending by default (#662,
    thanks @ayusharma)

New features

  • Resource events are now merged in batch requests. One event per resource and
    per action is emitted when a transaction is committed (#634)

  • Monitor time of events listeners execution (fixes #503)

  • Add method to remove a principal from every user

  • Validate that the client can accept JSON response. (#667)

  • Validate that the client can only send JSON request body. (#667)

  • Added a new AfterResourceChanged event, that is sent only when the commit
    in database is done and successful.

    Subscribers of this event can fail, errors are swallowed and logged. The
    final transaction result (or response) cannot be altered.

    Since commit occured successfully and operations will not be rolledback,
    subcribers running irreversible actions should subscribe to this event
    (like sending messages, deleting files, or run asynchronous tasks).

  • Track execution time on StatsD for each authentication sub-policy (#639)

  • Output the cliquet version with --version (#636)

Bug fixes

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

Internal changes

  • Moved utils.current_service(request) to reified request method (ref #631)
  • Optimized (and cleaned) usage of (un)authenticated_userid (#641)
  • Apply request extensions on forged requests (ref Kinto/kinto#438)
  • Get rid of custom Enum (fixes #645)
  • Pyramid config link updated (#654, thanks @ayusharma)
  • Add missing readonly param for read operations in PostgreSQL (#653)
  • Move Retry-After to error responses in documentation (#657)
  • Improve batch endpoint documentation about transactions (ref #629)
  • Mac OS python installation command updated (#661)
  • Added details about forced timestamps (#665)
  • Added troubleshooting section in docs (thanks @ayusharma)

2.15.0

27 Jan 16:28
Compare
Choose a tag to compare

Protocol

  • Forward slashes (/) are not escaped anymore in JSON responses (#537)
  • The API capabilities can be exposed in a capabilities attribute in the
    root URL (#628). Clients can rely on this to detect optional features on the
    server (e.g. enabled plugins).

Bug fixes

2.14.0

15 Jan 14:05
Compare
Choose a tag to compare

Protocol

  • Fields can be filtered in GET requests using _fields=f1,f2 in querystring (fixes #384)

New features

Bug fixes

  • Do not overwrite original error message and details in batch requests (fixes #617)
  • Fix plugins not being able to use custom requests methods (#618)
  • Do not log batch subrequests twice (fixes #450, fixes Kinto/kinto#264)

Internal changes

  • Refactor filtering of events to use Pyramid subscribers predicates (fixes #609)
  • Refactor logger imports (fixes #102)

2.13.1

16 Dec 10:21
Compare
Choose a tag to compare

Bug fixes

Documentation