doc/3.18.rst
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 08 Jan 2014 12:09:44 +0100
changeset 9375 8e88576787c3
parent 9374 1236d9058ad3
child 9382 ac0661486568
permissions -rw-r--r--
[schema] fix unique together index handling We now provide a more compact indexname, using the schema constraint entity type and the position of the columns set in the entity type unique constraints list. This avoids a nasty name truncation issue. The UniqueTogetherError object is made smarter: it computes the rtypes, abstracting the underlying backend (pg/sqlserver vs sqlite). The `user friendly` adapter is much simplified since there is no longer any truncation issue. Uses a new logilab.database version (ticket #151507) and a new yams version (ticket #189299) Closes #2514939 [jcr: disable hooks when temporarily dropping CWUniqueTogetherConstraint entities]
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9218
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     1
What's new in CubicWeb 3.18?
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     2
============================
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     3
9375
8e88576787c3 [schema] fix unique together index handling
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9374
diff changeset
     4
The migration script does not handle sqlite nor mysql instances.
8e88576787c3 [schema] fix unique together index handling
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9374
diff changeset
     5
8e88576787c3 [schema] fix unique together index handling
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9374
diff changeset
     6
9218
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     7
New functionalities
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     8
--------------------
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     9
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    10
* add a security debugging tool
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    11
  (see `#2920304 <http://www.cubicweb.org/2920304>`_)
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    12
9341
099a3a33eaaa [uicfg] give a set_fields_order method to the primary view display control
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9302
diff changeset
    13
* the primary view display controller (uicfg) now has a
099a3a33eaaa [uicfg] give a set_fields_order method to the primary view display control
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9302
diff changeset
    14
  `set_fields_order` method similar to the one available for forms
099a3a33eaaa [uicfg] give a set_fields_order method to the primary view display control
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9302
diff changeset
    15
9218
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    16
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    17
API changes
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    18
-----------
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    19
9254
e1369f2dba79 [hooks/security] Defer entity permission checks to an Operation.
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9218
diff changeset
    20
* not really an API change, but the entity permission checks are now
e1369f2dba79 [hooks/security] Defer entity permission checks to an Operation.
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9218
diff changeset
    21
  systematically deferred to an operation, instead of a) trying in a
e1369f2dba79 [hooks/security] Defer entity permission checks to an Operation.
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9218
diff changeset
    22
  hook and b) if it failed, retrying later in an operation
9218
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    23
9301
84ff860a966b [doc] document changed attribute default value storage
Julien Cristau <julien.cristau@logilab.fr>
parents: 9291
diff changeset
    24
* The default value storage for attributes is no longer String, but
84ff860a966b [doc] document changed attribute default value storage
Julien Cristau <julien.cristau@logilab.fr>
parents: 9291
diff changeset
    25
  Bytes.  This opens the road to storing arbitrary python objects, e.g.
84ff860a966b [doc] document changed attribute default value storage
Julien Cristau <julien.cristau@logilab.fr>
parents: 9291
diff changeset
    26
  numpy arrays, and fixes a bug where default values whose truth value
84ff860a966b [doc] document changed attribute default value storage
Julien Cristau <julien.cristau@logilab.fr>
parents: 9291
diff changeset
    27
  was False were not properly migrated.
9218
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    28
9361
0542a85fe667 symmetric relations: replace bogus rql2sql translation by a hook
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9341
diff changeset
    29
* `symmetric` relations are no more handled by an rql rewrite but are
0542a85fe667 symmetric relations: replace bogus rql2sql translation by a hook
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9341
diff changeset
    30
  now handled with hooks (from the `activeintegrity` category); this
0542a85fe667 symmetric relations: replace bogus rql2sql translation by a hook
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9341
diff changeset
    31
  may have some consequences for applications that do low-level database
0542a85fe667 symmetric relations: replace bogus rql2sql translation by a hook
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9341
diff changeset
    32
  manipulations or at times disable (some) hooks.
0542a85fe667 symmetric relations: replace bogus rql2sql translation by a hook
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9341
diff changeset
    33
9375
8e88576787c3 [schema] fix unique together index handling
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9374
diff changeset
    34
* `unique together` constraints (multi-columns unicity constraints)
8e88576787c3 [schema] fix unique together index handling
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9374
diff changeset
    35
  get a `name` attribute that maps the CubicWeb contraint entities to
8e88576787c3 [schema] fix unique together index handling
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9374
diff changeset
    36
  corresponding backend index.
8e88576787c3 [schema] fix unique together index handling
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9374
diff changeset
    37
9361
0542a85fe667 symmetric relations: replace bogus rql2sql translation by a hook
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9341
diff changeset
    38
9218
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    39
Deprecation
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    40
---------------------
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    41
9374
1236d9058ad3 [pyrorql] deprecate pyrorql source (closes #2919299)
David Douard <david.douard@logilab.fr>
parents: 9361
diff changeset
    42
* ``pyrorql`` sources have been deprecated. Multisource will be fully dropped
1236d9058ad3 [pyrorql] deprecate pyrorql source (closes #2919299)
David Douard <david.douard@logilab.fr>
parents: 9361
diff changeset
    43
  in the next version. If you are still using pyrorql, switch to ``datafeed``
1236d9058ad3 [pyrorql] deprecate pyrorql source (closes #2919299)
David Douard <david.douard@logilab.fr>
parents: 9361
diff changeset
    44
  **NOW**!
1236d9058ad3 [pyrorql] deprecate pyrorql source (closes #2919299)
David Douard <david.douard@logilab.fr>
parents: 9361
diff changeset
    45
9302
af36f459d2f0 [server] deprecate the old multi-source system
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9301
diff changeset
    46
* the old multi-source system
9218
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    47
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    48
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    49
Deprecated Code Drops
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    50
----------------------
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    51
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    52
* ``ldapuser`` have been dropped; use ``ldapfeed`` now
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    53
  (see `#2936496 <http://www.cubicweb.org/2936496>`_)
c027ed79f1ce [doc] add a what's new file for 3.18
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    54
9291
4894bb92558a [web] remove action "Got Rhythm" (closes #3093362)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 9259
diff changeset
    55
* action ``GotRhythm`` was removed, make sure you do not
4894bb92558a [web] remove action "Got Rhythm" (closes #3093362)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 9259
diff changeset
    56
  import it in your cubes (even to unregister it)
4894bb92558a [web] remove action "Got Rhythm" (closes #3093362)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 9259
diff changeset
    57
  (see `#3093362 <http://www.cubicweb.org/3093362>`_)
4894bb92558a [web] remove action "Got Rhythm" (closes #3093362)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 9259
diff changeset
    58
9255
46f41c3e1443 remove 3.8 bw compat
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9254
diff changeset
    59
* all 3.8 backward compat is gone
9256
697a8181ba30 remove 3.9 bw compat
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9255
diff changeset
    60
9259
68cde7431c2c [js] remove 3.9 bw compat (where apparently unused)
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9257
diff changeset
    61
* all 3.9 backward compat (including the javascript side) is gone