Merge lp:~therp-nl/openupgrade-server/7.0-doc_reorder_migration_bits into lp:openupgrade-server

Proposed by Stefan Rijnhart (Opener)
Status: Merged
Merged at revision: 4650
Proposed branch: lp:~therp-nl/openupgrade-server/7.0-doc_reorder_migration_bits
Merge into: lp:openupgrade-server
Diff against target: 139 lines (+61/-53)
3 files modified
openerp/openupgrade/doc/source/index.rst (+0/-1)
openerp/openupgrade/doc/source/intro.rst (+6/-52)
openerp/openupgrade/doc/source/migration_details.rst (+55/-0)
To merge this branch: bzr merge lp:~therp-nl/openupgrade-server/7.0-doc_reorder_migration_bits
Reviewer Review Type Date Requested Status
Pedro Manuel Baeza code review Approve
Holger Brunn (Therp) Approve
Review via email: mp+214185@code.launchpad.net

Description of the change

Reorder migration part of table of contents as follows

Migrating your database
. Automated migration script
... Introduction
... Problems
... In a nutshell
. Migration process details
... Configuration options

To post a comment you must log in.
Revision history for this message
Holger Brunn (Therp) (hbrunn) :
review: Approve
Revision history for this message
Sylvain LE GAL (GRAP) (sylvain-legal) wrote :

Hi.

Thanks for refactoring documentation.

Just a question. I didn't test, just read the MP, but don't you have to write extension of the files L78,L79 ?
migrate.py.rst
migration_details.rst

Regards.

review: Needs Information (code review, no test)
Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

no, the extension would actually hurt

Revision history for this message
Sylvain LE GAL (GRAP) (sylvain-legal) wrote :

OK !

review: Approve
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Thanks for continuing improving documentation.

Regards.

review: Approve (code review)
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Merged manually into 8.0 which will be the reference project for the docs soon.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openerp/openupgrade/doc/source/index.rst'
2--- openerp/openupgrade/doc/source/index.rst 2014-04-03 18:27:24 +0000
3+++ openerp/openupgrade/doc/source/index.rst 2014-04-04 09:05:31 +0000
4@@ -20,7 +20,6 @@
5 analysis.rst
6 development.rst
7 API.rst
8- migrate.py.rst
9
10 You should find the latest version of this documentation here: `<https://doc.therp.nl/openupgrade>`_
11
12
13=== modified file 'openerp/openupgrade/doc/source/intro.rst'
14--- openerp/openupgrade/doc/source/intro.rst 2013-08-02 12:35:06 +0000
15+++ openerp/openupgrade/doc/source/intro.rst 2014-04-04 09:05:31 +0000
16@@ -19,57 +19,11 @@
17
18 Please do not use the OpenUpgrade software to run a live instance of your OpenERP database. It is not maintained for that purpose. Use the official OpenERP software for that.
19
20-Migrating Your Database
21+Migrating your database
22 =======================
23
24-1. Check out the OpenUpgrade source code from Launchpad for the branches you
25- need. Each branch migrates to its version from the previous version, so
26- branch 6.0 migrates from 5.0 to 6.0. If you are skipping versions, you still
27- need to run all the branches in between.
28-
29-2. Compare your set of installed modules with the modules that are covered by
30- the OpenUpgrade Addons branch you are using. Upgrading a database that has
31- uncovered modules installed is likely to fail. Authoritative in this respect
32- is the existence and contents of a *user_notes.txt* file in the
33- migrations/[version] subdirectory of each module. We also try to indicate
34- module coverage in the documentation but it sometimes lags behind.
35-
36-3. Decide which database you are going to upgrade. You absolutely *must* make a
37- backup of your live database before you start this process!
38-
39-4. Edit the configuration files and command line parameters to point to the
40- database you are going to upgrade. The parameters will probably be the same
41- as you use on your live server, except they point to the OpenUpgrade
42- addons source code, point to the database you want to upgrade, and add the
43- *--update all --stop-after-init* flags.
44-
45-5. Run the upgrade and check for errors. You will probably learn a lot about
46- your data and have to do some manual clean up before and after the upgrade.
47- Expect to repeat the process several times as you encounter errors, clean up
48- your data, and try again. If necessary, ask for help or report bugs on
49- Launchpad.
50-
51-6. Once the data migration is successful, run the official version of OpenERP
52- against it to test how the migrated data behaves under the new version.
53- Remember that the OpenUpgrade version of the source code is only intended to
54- perform the migration, not run the OpenERP server.
55-
56-Configuration options
57-=====================
58-
59-OpenUpgrade allows for the following configuration options. Add these options
60-to a separate stanza in the server configuration file under a header
61-*[openupgrade]*
62-
63-* *autoinstall* - A dictionary with module name keys and lists of module names
64- as values. If a key module is installed on your database, the modules from
65- the value (and their dependencies) are selected for installation as well.
66-
67-* *forced_deps* - A dictionary with module name keys and lists of module names
68- as values. If a key module is installed on your database, the modules from
69- the value will be treated as a module dependency. With this directive, you
70- can manipulate the order in which the modules are migrated. If the modules
71- from the value are not already installed on your database, they will be
72- selected for installation (as will their dependencies). Be careful not to
73- introduce a circular dependency using this directive.
74-
75+.. toctree::
76+ :maxdepth: 2
77+
78+ migrate.py
79+ migration_details
80
81=== added file 'openerp/openupgrade/doc/source/migration_details.rst'
82--- openerp/openupgrade/doc/source/migration_details.rst 1970-01-01 00:00:00 +0000
83+++ openerp/openupgrade/doc/source/migration_details.rst 2014-04-04 09:05:31 +0000
84@@ -0,0 +1,55 @@
85+Migration process details
86+=========================
87+
88+Instead of running *migrate.py*, you can also check out the code manually and upgrade your database by calling openerp-server directly. You will want to do this when you are working on developing migration scripts for uncovered modules.
89+
90+1. Check out the OpenUpgrade source code from Launchpad for the branches you
91+ need. Each branch migrates to its version from the previous version, so
92+ branch 7.0 migrates from 6.1 to 7.0. If you are skipping versions, you still
93+ need to run all the branches in between.
94+
95+2. Compare your set of installed modules with the modules that are covered by
96+ the OpenUpgrade Addons branch you are using. Upgrading a database that has
97+ uncovered modules installed is likely to fail. Authoritative in this respect
98+ is the existence and contents of a *user_notes.txt* file in the
99+ migrations/[version] subdirectory of each module. We also try to indicate
100+ module coverage in the documentation but it sometimes lags behind.
101+
102+3. Decide which database you are going to upgrade. You absolutely *must* make a
103+ backup of your live database before you start this process!
104+
105+4. Edit the configuration files and command line parameters to point to the
106+ database you are going to upgrade. The parameters will probably be the same
107+ as you use on your live server, except they point to the OpenUpgrade
108+ addons source code, point to the database you want to upgrade, and add the
109+ *--update all --stop-after-init* flags.
110+
111+5. Run the upgrade and check for errors. You will probably learn a lot about
112+ your data and have to do some manual clean up before and after the upgrade.
113+ Expect to repeat the process several times as you encounter errors, clean up
114+ your data, and try again. If necessary, ask for help or report bugs on
115+ Launchpad.
116+
117+6. Once the data migration is successful, run the official version of OpenERP
118+ against it to test how the migrated data behaves under the new version.
119+ Remember that the OpenUpgrade version of the source code is only intended to
120+ perform the migration, not run the OpenERP server.
121+
122+Configuration options
123++++++++++++++++++++++
124+
125+OpenUpgrade allows for the following configuration options. Add these options
126+to a separate stanza in the server configuration file under a header
127+*[openupgrade]*
128+
129+* *autoinstall* - A dictionary with module name keys and lists of module names
130+ as values. If a key module is installed on your database, the modules from
131+ the value (and their dependencies) are selected for installation as well.
132+
133+* *forced_deps* - A dictionary with module name keys and lists of module names
134+ as values. If a key module is installed on your database, the modules from
135+ the value will be treated as a module dependency. With this directive, you
136+ can manipulate the order in which the modules are migrated. If the modules
137+ from the value are not already installed on your database, they will be
138+ selected for installation (as will their dependencies). Be careful not to
139+ introduce a circular dependency using this directive.

Subscribers

People subscribed via source and target branches