7 * Generative tests *à la logilab-common* are not supported anymore in |
7 * Generative tests *à la logilab-common* are not supported anymore in |
8 `CubicWebTC`. It is advised to use the subtests_ API (available on |
8 `CubicWebTC`. It is advised to use the subtests_ API (available on |
9 `CubicWebTC` either from the standard library as of Python 3.4 or through |
9 `CubicWebTC` either from the standard library as of Python 3.4 or through |
10 unittest2 package otherwise). |
10 unittest2 package otherwise). |
11 |
11 |
|
12 Database handling |
|
13 ----------------- |
|
14 |
|
15 * Most indexes and constraints will be rebuilt during the migration, because |
|
16 they are now named after a md5 hash to control the name's size. |
|
17 |
|
18 * Index are renamed upon renaming of an entity type, so they are still |
|
19 correctly tracked. |
|
20 |
|
21 * A new `db-check-index` command is added to `cubicweb-ctl`, to display the |
|
22 differences between the indexes in the database and those expected by the |
|
23 schema. It's recommended to run this command after the migration to 3.23 and |
|
24 to adjust things manually for cases that are not easily handled by the |
|
25 migration script, such as indexes of entity types that have been renamed. It |
|
26 should be mostly about dropping extra indexes. |
|
27 |
|
28 |
|
29 Data-import |
|
30 ----------- |
|
31 |
|
32 * Deprecated `MetaGenerator` in favor of slightly adapted API in |
|
33 `MetadataGenerator` (more consistent, giving more control to sub-classes and |
|
34 suitable for usage with the `MassiveObjectStore`) |
|
35 |
|
36 * Major cleanups of the `MassiveObjectStore` and its `PGHelper` companion |
|
37 class: |
|
38 |
|
39 - dropped a bunch of unnecessary / unused attributes |
|
40 - refactored / renamed internal methods |
|
41 - added support for a metadata generator, the now recommended way to control |
|
42 metadata generation |
|
43 |
|
44 |
12 .. _subtests: https://docs.python.org/3/library/unittest.html#distinguishing-test-iterations-using-subtests |
45 .. _subtests: https://docs.python.org/3/library/unittest.html#distinguishing-test-iterations-using-subtests |