Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020624Openbravo ERPA. Platformpublic2012-05-28 15:402012-05-30 18:13
marvintm 
marvintm 
highmajoralways
closedfixed 
5
 
3.0MP12 
Core
No
0020624: The check for local changes should be done before installing any modules or updates
Currently, the update.database task searches for possible local changes (in structure and data) in the database, and stops if it finds them, because the process would revert them.

However, in case a user installs a module in an instance with local changes, and then tries to do a rebuild (which stops because these local changes are found), he is in a difficult situation, because to be able to export his changes correctly, he needs to revert the installed modules first.

The correct thing to do would be to check if these local changes exist before allowing the user to install anything. This way, the changes would be detected early, and the user would be able to resolve his problems much easier.
- Create a local change (by changing an AD element, for instance).
- Try to install a module. Notice that it can be done.
- Try to rebuild. The rebuild will fail, because the check for local changes will find your change.
The install process will automatically search for local changes before doing anything else.
No tags attached.
Issue History
2012-05-28 15:40marvintmNew Issue
2012-05-28 15:40marvintmAssigned To => marvintm
2012-05-28 15:40marvintmModules => Core
2012-05-28 17:54hgbotCheckin
2012-05-28 17:54hgbotNote Added: 0049381
2012-05-28 17:54hgbotStatusnew => resolved
2012-05-28 17:54hgbotResolutionopen => fixed
2012-05-28 17:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/237ce7d9967e2037002129532d6e92e7bf58ab5e [^]
2012-05-29 08:35alostaleNote Added: 0049394
2012-05-29 08:35alostaleStatusresolved => closed
2012-05-29 08:35alostaleFixed in Version => 3.0MP12
2012-05-30 18:13hudsonbotCheckin
2012-05-30 18:13hudsonbotNote Added: 0049499

Notes
(0049381)
hgbot   
2012-05-28 17:54   
Repository: erp/devel/pi
Changeset: 237ce7d9967e2037002129532d6e92e7bf58ab5e
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon May 28 17:37:06 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/237ce7d9967e2037002129532d6e92e7bf58ab5e [^]

Fixed issue 20624. When installing/updating modules, the check for local changes will be done.
This check will from now on be done early, before installing anything, to prevent a situation in which the user installs modules, but then the rebuild fails with local changes. If these changes are detected early, then the user can more easily fix them by just exporting his changes before proceeding with the installation.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_TEXTINTERFACES.xml
M src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java
A src/org/openbravo/erpCommon/ad_forms/ModuleManagement_LocalChanges.html
A src/org/openbravo/erpCommon/ad_forms/ModuleManagement_LocalChanges.xml
---
(0049394)
alostale   
2012-05-29 08:35   
code reviewed and verified on pi@0ed463f70606
(0049499)
hudsonbot   
2012-05-30 18:13   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/3752a665362c [^]

Maturity status: Test