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

Releases: mozilla-services/cliquet

2.3.1

15 Jul 16:20
Compare
Choose a tag to compare

Bug fixes

  • Fix crash on hello view when application is not deployed from Git
    repository (fixes #382)
  • Expose Content-Length header to Kinto.js (#390)

2.3

13 Jul 11:22
Compare
Choose a tag to compare
2.3

New features

  • Provide details about existing record in 412 error responses
    (fixes Kinto/kinto#122)
  • Add ETag on record PUT/PATCH responses (fixes #352)
  • Add StatsD counters for the permission backend

Bug fixes

  • Fix crashes in permission backends when permission set is empty (fixes #368, #371)
  • Fix value of ETag on record: provide collection timestamp on collection
    endpoints only (fixes #356)
  • Default resources do accept permissions attribute in payload anymore
  • Default resources do not require a root factory (fixes #348)
  • Default resources do not hit the permission backend anymore
  • Default viewset was split and does not handle permissions anymore (fixes #322)
  • Permissions on views is now set only on resources
  • Fix missing last_modified field in PATCH response when no field
    was changed (fixes #371)
  • Fix lost querystring during version redirection (fixes #364)

Internal changes

2.2.1

08 Jul 08:24
Compare
Choose a tag to compare

Bug fixes

  • Fix permissions handling on PATCH /resource (#358)

2.2.0

02 Jul 11:49
Compare
Choose a tag to compare

New features

  • Add public settings in hello view (#318)

Bug fixes

  • Fix version redirection behaviour for unsupported versions (#341)
  • PostgreSQL dependencies are now fully optional in code (#340)
  • Prevent overriding final settings from default_settings parameter
    in cliquet.initialize() (#343)

Internal changes

  • Fix installation documentation regarding PostgreSQL 9.4 (#338, thanks @elemoine!)
  • Add detail about UTC and UTF-8 for PostgreSQL (#347, thanks @elemoine!)
  • Remove UserWarning exception when running tests (#339, thanks @elemoine!)
  • Move build_request and build_response to cliquet.utils (#344)
  • Pypy is now tested on Travis CI (#337)

2.1.0

26 Jun 21:22
Compare
Choose a tag to compare

New features

  • Cliquet does not require authentication policies to prefix
    user ids anymore (fixes #299).
  • Pypy support (thanks Balthazar Rouberol #325)
  • Allow to override parent id of resources (#333)

Bug fixes

  • Fix crash in authorization on OPTIONS requests (#331)
  • Fix crash when If-Match is provided without If-None-Match (#335)

Internal changes

  • Fix docstrings and documentation (#329)

Cliquet 2.0.0

16 Jun 19:47
Compare
Choose a tag to compare

2.0.0 (2015-06-16)

New features

  • Authentication and authorization policies, as well as group finder function
    can now be specified via configuration (fixes #40, #265)
  • Resources can now be protected by fine-grained permissions (#288 via #291, #302)

Minor

  • Preserve provided id field of records using POST on collection (#293 via #294)
  • Logging value for authentication type is now available for any kind of
    authentication policy.
  • Any resource endpoint can now be disabled from settings (#46 via #268)

Bug fixes

  • Do not limit cache values to string (#279)
  • When PUT creates the record, the HTTP status code is now 201 (#298, #300)
  • Add safety check in utils.current_service() (#316)

Breaking changes

  • cliquet.storage.postgresql now requires PostgreSQL version 9.4, since it
    now relies on JSONB. Data will be migrated automatically using the migrate
    command.
  • the @crud decorator was replaced by @register() (fixes #12, #268)
  • Firefox Accounts code was removed and published as external package cliquet-fxa
  • The Cloud storage storage backend was removed out of Cliquet and should
    be revamped in Kinto repository (Kinto/kinto#45)

API

  • Resource endpoints now expect payloads to have a data attribute (#254, #287)
  • Resource endpoints switched from If-Modified-Since and If-Unmodified-Since
    to Etags (fixes #251 via #275), thanks @michielbdejong!

Minor

  • existing attribute of conflict errors responses was moved inside a generic
    details attribute that is also used to list validation errors.
  • Setting cliquet.basic_auth_enabled is now deprecated.
    Use pyramid_multiauth <https://github.com/mozilla-services/pyramid_multiauth>_
    configuration instead to specify authentication policies.
  • Logging value for authentication type is now authn_type (with FxAOAuth
    or BasicAuth as default values).

Internal changes

  • Cliquet resource code was split into Collection and Resource (fixes #243, #282)
  • Cleaner separation of concern between Resource and the new notion of ViewSet (#268)
  • Quickstart documentation improvement (#271, #312) thanks @n1k0 and @brouberol!
  • API versioning documentation improvements (#313)
  • Contribution documentation improvement (#306)

1.8.0

18 May 09:33
Compare
Choose a tag to compare

Breaking changes

  • Switch PostgreSQL storage to JSONB: requires 9.4+ (#104)
  • Resource name is not a Python property anymore (ref #243)
  • Return existing record instead of raising 409 on POST (fixes #75)
  • cliquet.storage.postgresql now requires version PostgreSQL 9.4, since it
    now relies on JSONB. Data will be migrated automatically using the migrate
    command.
  • Conflict errors responses existing attribute was moved inside a generic
    details attribute that is also used to list validation errors.
  • In heartbeat end-point response, database attribute was renamed to storage

New features

  • Storage records ids are now managed in python (fixes #71, #208)
  • Add setting to disable version redirection (#107, thanks @hiromipaw)
  • Add response behaviour headers for PATCH on record (#234)
  • Provide details in error responses (#233)
  • Expose new function cliquet.load_default_settings() to ease reading of
    settings from defaults and environment (#264)
  • Heartbeat callback functions can now be registered during startup (#261)

Bug fixes

  • Fix migration behaviour when metadata table is flushed (#221)
  • Fix backoff header presence if disabled in settings (#238)

Internal changes

  • Require 100% of coverage for tests to pass
  • Add original error message to storage backend error
  • A lots of improvements in documentation (#212, #225, #228, #229, #237, #246,
    #247, #248, #256, #266, thanks Michiel De Jong)
  • Migrate Kinto storage schema on startup (#218)
  • Fields id and last_modified are not part of resource schema anymore
    (#217, mozilla-services/readinlist#170)
  • Got rid of redundant indices in storage schema (#208, ref #138)
  • Disable Cornice schema request binding (#172)
  • Do not hide FxA errors (fixes mozilla-services/readinglist#70)
  • Move initialization functions to dedicated module (ref #137)
  • Got rid of request custom attributes for storage and cache (#245)

1.7.0

10 Apr 14:12
Compare
Choose a tag to compare

Breaking changes

  • A command must be ran during deployment for database schema migration:
    $ cliquet --ini production.ini migrate
  • Sentry custom code was removed. Sentry logging is now managed through the
    logging configuration, as explained in docs.

New features

  • Add PostgreSQL schema migration system (#139)
  • Add cache and oauth in heartbeat view (#184)
  • Add monitoring features using NewRelic (#189)
  • Add profiling features using Werkzeug (#196)
  • Add ability to override default settings in initialization (#136)
  • Add more statsd counter for views and authentication (#200)
  • Add in-memory cache class (#127)

Bug fixes

  • Fix crash in DELETE on collection with PostgreSQL backend
  • Fix Heka logging format of objects (#199)
  • Fix performance of record insertion using ordered index (#138)
  • Fix 405 errors not JSON formatted (#88)
  • Fix basic auth prompt when disabled (#182)

Internal changes

  • Improve development setup documentation (thanks @hiromipaw)
  • Deprecated cliquet.initialize_cliquet, renamed to cliquet.initialize.
  • Code coverage of tests is now 100%
  • Skip unstable tests on TravisCI, caused by fsync = off in their PostgreSQL.
  • Perform random creation and deletion in heartbeat view (#202)

1.6.0

30 Mar 16:28
Compare
Choose a tag to compare

New features

  • Split schema initialization from application startup, using a command-line
    tool.
     cliquet --ini production.ini init

Bug fixes

  • Fix connection pool no being shared between cache and storage (#176)
  • Default connection pool size to 10 (instead of 50) (#176)
  • Warn if PostgreSQL session has not UTC timezone (#177)

Internal changes

  • Deprecated cliquet.storage_pool_maxconn and cliquet.cache_pool_maxconn
    settings (renamed to cliquet.storage_pool_size and cliquet.cache_pool_size)

1.5.0

27 Mar 16:38
Compare
Choose a tag to compare

New features

  • Mesure calls on the authentication policy (#167)

Breaking changes

  • Prefix statsd metrics with the value of cliquet.statsd_prefix or
    cliquet.project_name (#162)
  • http_scheme setting has been replaced by cliquet.http_scheme and
    cliquet.http_host was introduced ((#151, #166)
  • URL in the hello view now has version prefix (#165)

Bug fixes

  • Fix Next-Page url if service has key in url (#158)
  • Fix some PostgreSQL connection bottlenecks (#170)

Internal changes

  • Update of PyFxA to get it working with gevent monkey patching (#168)
  • Reload kinto on changes (#158)