Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015958Openbravo ERPY. DBSourceManagerpublic2011-02-11 18:322011-02-23 00:00
egoitz 
marvintm 
urgentmajoralways
closedfixed 
5
2.50MP25 
2.50MP28 
Core
No
0015958: If you add an exeception for a trigger of a module different that core, this is not correctly managed
If you add an exeception for a trigger of a module different that core, this is not correctly managed.
The trigger is correctly exported to your module, but when executing update.database, the trigger is replaced with the trigger of the original module.
-Install APRM
-Modify a trigger from this module
-Add a new module, check it as indevelopment.
-Add an exception for the trigger modified
-Export the module.
-See that the module is correctly exported to your module
-Execute: update.database
*see that the module on the database is the original from ARPM instead of the trigger exported as exception.
No tags attached.
depends on backport 00159602.50MP28 closed marvintm If you add an exeception for a trigger of a module different that core, this is not correctly managed 
Issue History
2011-02-11 18:32egoitzNew Issue
2011-02-11 18:32egoitzAssigned To => marvintm
2011-02-11 18:32egoitzModules => Core
2011-02-11 18:32egoitzIssue Monitored: networkb
2011-02-14 08:18alostaleStatusnew => scheduled
2011-02-14 08:18alostalefix_in_branch => pi
2011-02-14 12:36marvintmTarget Version2.50MP27 => 2.50MP28
2011-02-14 12:36marvintmfix_in_branchpi =>
2011-02-22 12:08marvintmNote Added: 0034303
2011-02-22 15:06hgbotCheckin
2011-02-22 15:06hgbotNote Added: 0034313
2011-02-22 15:06hgbotStatusscheduled => resolved
2011-02-22 15:06hgbotResolutionopen => fixed
2011-02-22 15:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/dbsm-main/rev/7ea6b9f3a4f72a7c66e03d6d9ff854fc206f90d7 [^]
2011-02-22 15:18hgbotCheckin
2011-02-22 15:18hgbotNote Added: 0034314
2011-02-22 15:18hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/dbsm-main/rev/7ea6b9f3a4f72a7c66e03d6d9ff854fc206f90d7 [^] => http://code.openbravo.com/erp/devel/pi/rev/811e1c898389285ce7343588645100609e53aee2 [^]
2011-02-22 18:11hgbotCheckin
2011-02-22 18:11hgbotNote Added: 0034319
2011-02-22 18:13hgbotCheckin
2011-02-22 18:13hgbotNote Added: 0034320
2011-02-22 18:14hgbotCheckin
2011-02-22 18:14hgbotNote Added: 0034321
2011-02-22 20:20shuehnerNote Added: 0034326
2011-02-22 20:20shuehnerStatusresolved => closed
2011-02-23 00:00anonymoussf_bug_id0 => 3189587

Notes
(0034303)
marvintm   
2011-02-22 12:08   
The exception in this case was going to be used to overwrite a trigger which is contained in a module.

The change which is going to be done consists in allowing configuration scripts to disable triggers. This way, the user will then be able to overwrite the functionality of the trigger by disabling it and then creating a new trigger in his own module, which can then be normally named using modularity rules, and exported normally.
(0034313)
hgbot   
2011-02-22 15:06   
Repository: erp/devel/dbsm-main
Changeset: 7ea6b9f3a4f72a7c66e03d6d9ff854fc206f90d7
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Feb 22 15:06:32 2011 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/7ea6b9f3a4f72a7c66e03d6d9ff854fc206f90d7 [^]

Fixed issue 15958. Now RemoveTriggerChanges will be exported to the configuration scripts.

---
M src/mapping.xml
M src/org/apache/ddlutils/alteration/DataComparator.java
M src/org/apache/ddlutils/alteration/RemoveTriggerChange.java
---
(0034314)
hgbot   
2011-02-22 15:18   
Repository: erp/devel/pi
Changeset: 811e1c898389285ce7343588645100609e53aee2
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Feb 22 15:17:15 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/811e1c898389285ce7343588645100609e53aee2 [^]

Fixed issue 15958. Now RemoveTriggerChanges will be exported to the configuration scripts.

---
M src-db/database/lib/dbsourcemanager.jar
---
(0034319)
hgbot   
2011-02-22 18:11   
Repository: erp/devel/dbsm-main
Changeset: 324c95b80e9cbd656658077a1daf5485e9e9b45a
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Feb 22 18:11:18 2011 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/324c95b80e9cbd656658077a1daf5485e9e9b45a [^]

Related to issue 15958. Do not remove triggers which are changed in the database, but not removed

---
M src/org/apache/ddlutils/alteration/DataComparator.java
M src/org/apache/ddlutils/alteration/RemoveTriggerChange.java
---
(0034320)
hgbot   
2011-02-22 18:13   
Repository: erp/devel/pi
Changeset: 4222233f95c738419d7ce0d805e9215164e15d73
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Feb 22 18:12:05 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4222233f95c738419d7ce0d805e9215164e15d73 [^]

Related to issue 15958. Do not remove triggers which are changed in the database, but not removed

---
M src-db/database/lib/dbsourcemanager.jar
---
(0034321)
hgbot   
2011-02-22 18:14   
Repository: erp/stable/2.50
Changeset: ac312f1987debebade289181391e027a3cf7677c
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Feb 22 18:13:08 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/ac312f1987debebade289181391e027a3cf7677c [^]

Related to issue 15958. Do not remove triggers which are changed in the database, but not removed

---
M src-db/database/lib/dbsourcemanager.jar
---
(0034326)
shuehner   
2011-02-22 20:20   
Tested on pi/pgsql (rev: 811e1c898389) and stable/2.50/oracle (rev: 2938f20924f4). A removed triggers is added to the config.script on export, but a changed trigger (technically a removal/add is not). On a subsequent update.database that trigger is not re-created and if the trigger is really removed from its containing module the planned deletion declared in the config.script is a no-op. -> Closing