doc/3.21.rst
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Jun 2015 13:04:25 +0200
changeset 10473 23a2fa8cb725
parent 10469 bd78f563e812
permissions -rw-r--r--
avoid sanitizing warnings
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10215
96085e379066 [views,js] remove user_callback feature
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
     1
What's new in CubicWeb 3.21?
96085e379066 [views,js] remove user_callback feature
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
     2
============================
96085e379066 [views,js] remove user_callback feature
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
     3
10325
d2e1e67af4e1 [doc] mention datadir-url configuration option in release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10305
diff changeset
     4
New features
d2e1e67af4e1 [doc] mention datadir-url configuration option in release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10305
diff changeset
     5
------------
d2e1e67af4e1 [doc] mention datadir-url configuration option in release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10305
diff changeset
     6
d2e1e67af4e1 [doc] mention datadir-url configuration option in release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10305
diff changeset
     7
* the datadir-url configuration option lets one choose where static data files
d2e1e67af4e1 [doc] mention datadir-url configuration option in release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10305
diff changeset
     8
  are served (instead of the default ${base-url}/data/)
d2e1e67af4e1 [doc] mention datadir-url configuration option in release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10305
diff changeset
     9
10469
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    10
* some integrity checking that was previously implemented in Python was
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    11
  moved to the SQL backend.  This includes some constraints, and
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    12
  referential integrity.  Some consequences are that:
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    13
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    14
  - disabling integrity hooks no longer disables those checks
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    15
  - upgrades that modify constraints will fail when running on sqlite
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    16
    (but upgrades aren't supported on sqlite anyway)
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    17
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    18
* for easier instance monitoring, cubicweb can regularly dump some statistics
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    19
  (basically those exposed by the 'info' and 'gc' views) in json format to a file
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    20
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    21
User-visible changes
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    22
--------------------
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    23
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    24
* the use of fckeditor for text form fields is disabled by default
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    25
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    26
* the 'https-deny-anonymous' configuration setting no longer exists
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    27
10232
cda1bdc3652e [web] split timeline in an individual cube
Julien Cristau <julien.cristau@logilab.fr>
parents: 10215
diff changeset
    28
Code movement
cda1bdc3652e [web] split timeline in an individual cube
Julien Cristau <julien.cristau@logilab.fr>
parents: 10215
diff changeset
    29
-------------
cda1bdc3652e [web] split timeline in an individual cube
Julien Cristau <julien.cristau@logilab.fr>
parents: 10215
diff changeset
    30
cda1bdc3652e [web] split timeline in an individual cube
Julien Cristau <julien.cristau@logilab.fr>
parents: 10215
diff changeset
    31
The cubicweb.web.views.timeline module (providing the timeline-json, timeline
cda1bdc3652e [web] split timeline in an individual cube
Julien Cristau <julien.cristau@logilab.fr>
parents: 10215
diff changeset
    32
and static-timeline views) has moved to a standalone cube_
cda1bdc3652e [web] split timeline in an individual cube
Julien Cristau <julien.cristau@logilab.fr>
parents: 10215
diff changeset
    33
cda1bdc3652e [web] split timeline in an individual cube
Julien Cristau <julien.cristau@logilab.fr>
parents: 10215
diff changeset
    34
.. _cube: https://www.cubicweb.org/project/cubicweb-timeline
10215
96085e379066 [views,js] remove user_callback feature
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    35
10305
937deb71a681 [web] kill GMTOFFSET (closes #2154655)
Julien Cristau <julien.cristau@logilab.fr>
parents: 10237
diff changeset
    36
API changes
937deb71a681 [web] kill GMTOFFSET (closes #2154655)
Julien Cristau <julien.cristau@logilab.fr>
parents: 10237
diff changeset
    37
-----------
937deb71a681 [web] kill GMTOFFSET (closes #2154655)
Julien Cristau <julien.cristau@logilab.fr>
parents: 10237
diff changeset
    38
937deb71a681 [web] kill GMTOFFSET (closes #2154655)
Julien Cristau <julien.cristau@logilab.fr>
parents: 10237
diff changeset
    39
* req.set_cookie's "expires" argument, if not None, is expected to be a
937deb71a681 [web] kill GMTOFFSET (closes #2154655)
Julien Cristau <julien.cristau@logilab.fr>
parents: 10237
diff changeset
    40
  date or a datetime in UTC.  It was previously interpreted as localtime
937deb71a681 [web] kill GMTOFFSET (closes #2154655)
Julien Cristau <julien.cristau@logilab.fr>
parents: 10237
diff changeset
    41
  with the UTC offset the server started in, which was inconsistent (we
937deb71a681 [web] kill GMTOFFSET (closes #2154655)
Julien Cristau <julien.cristau@logilab.fr>
parents: 10237
diff changeset
    42
  are not aware of any users of that API).
937deb71a681 [web] kill GMTOFFSET (closes #2154655)
Julien Cristau <julien.cristau@logilab.fr>
parents: 10237
diff changeset
    43
10469
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    44
* the way to run tests on a postgresql backend has changed slightly, use
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    45
  cubicweb.devtools.{start,stop}pgcluster in setUpModule and tearDownModule
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    46
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    47
* the Connection and ClientConnection objects introduced in CubicWeb 3.19 have
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    48
  been unified.  To connect to a repository, use:
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    49
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    50
  session = repo.new_session(login, password=...)
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    51
  with session.new_cnx() as cnx:
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    52
      cnx.execute(...)
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    53
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    54
  In tests, the 'repo_cnx' and 'client_cnx' methods of RepoAccess are now
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    55
  aliases to 'cnx'.
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    56
10215
96085e379066 [views,js] remove user_callback feature
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    57
Deprecated code drops
96085e379066 [views,js] remove user_callback feature
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    58
---------------------
96085e379066 [views,js] remove user_callback feature
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    59
96085e379066 [views,js] remove user_callback feature
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    60
* the user_callback api has been removed; people should use plain
96085e379066 [views,js] remove user_callback feature
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    61
  ajax functions instead
10235
684215aca046 Remove remote repository-access-through-pyro support
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 10232
diff changeset
    62
10236
ef3059a692cb Remove the remote repository-access-through-zmq support
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 10235
diff changeset
    63
* the `Pyro` and `Zmq-pickle` remote repository access methods have
ef3059a692cb Remove the remote repository-access-through-zmq support
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 10235
diff changeset
    64
  been entirely removed (emerging alternatives such as rqlcontroller
10237
1e030b1a5622 Remove leftover bits from start-repository command, and document its demise
Julien Cristau <julien.cristau@logilab.fr>
parents: 10236
diff changeset
    65
  and cwclientlib should be used instead).  Note that as a side effect,
1e030b1a5622 Remove leftover bits from start-repository command, and document its demise
Julien Cristau <julien.cristau@logilab.fr>
parents: 10236
diff changeset
    66
  "repository-only" instances (i.e. without a http component) are no
1e030b1a5622 Remove leftover bits from start-repository command, and document its demise
Julien Cristau <julien.cristau@logilab.fr>
parents: 10236
diff changeset
    67
  longer possible.  If you have any such instances, you will need to
1e030b1a5622 Remove leftover bits from start-repository command, and document its demise
Julien Cristau <julien.cristau@logilab.fr>
parents: 10236
diff changeset
    68
  rename the configuration file from repository.conf to all-in-one.conf
10469
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    69
  and run ``cubicweb-ctl upgrade`` to update it.  Likewise, remote cubicweb-ctl
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    70
  shell is no longer available.
10237
1e030b1a5622 Remove leftover bits from start-repository command, and document its demise
Julien Cristau <julien.cristau@logilab.fr>
parents: 10236
diff changeset
    71
10331
6f25c7e4f19b [dbapi] remove the dbapi module and its immediate remaining users
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 10325
diff changeset
    72
* the old (deprecated since 3.19) `DBAPI` api is completely removed
10469
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    73
bd78f563e812 [doc] update 3.21 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 10331
diff changeset
    74
* cubicweb.toolsutils.config_connect() has been removed