Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025108Openbravo ERPA. Platformpublic2013-11-07 18:232014-03-31 18:11
ioritzCia 
AugustoMauch 
urgentmajoralways
closedfixed 
20Community Appliance
pi 
3.0PR14Q23.0PR14Q2 
marvintm
Core
No
0025108: export.config.script no taking in account templates dependency
export.config.script no taking in account templates dependency

it results in inconsistent changes in the configScript.xml.
1) Create 3 templates with the following hierarchy
 - Openbravo 3
 --- Template A (depends on Openbravo 3)
 ------ Template B (depends on A)
 --------- Template C (depends on B)

2) ant export.config.script

it wont fail but it is exporting invalid changes
No tags attached.
duplicate of defect 0022529 closed AugustoMauch export.config.script no taking in account templates dependency 
gz templates.tar.gz (1,757) 2014-03-21 09:51
https://issues.openbravo.com/file_download.php?file_id=6765&type=bug
Issue History
2013-11-07 18:23ioritzCiaNew Issue
2013-11-07 18:23ioritzCiaAssigned To => AugustoMauch
2013-11-07 18:23ioritzCiaModules => Core
2013-11-07 18:23ioritzCiaTriggers an Emergency Pack => No
2013-11-07 18:23ioritzCiaIssue generated from0022529
2013-11-07 18:23ioritzCiaRelationship addedduplicate of 0022529
2014-03-11 17:17jonalegriaesarteResolution time => 1395961200
2014-03-11 17:17jonalegriaesarteTarget Version => PR14Q2
2014-03-21 08:56hgbotCheckin
2014-03-21 08:56hgbotNote Added: 0065333
2014-03-21 08:56hgbotStatusnew => resolved
2014-03-21 08:56hgbotResolutionopen => fixed
2014-03-21 08:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/dbsm-main/rev/3f0764688bff165a7ea614eb0c24de3edaa6f2f7 [^]
2014-03-21 08:56AugustoMauchIssue Monitored: marvintm
2014-03-21 08:57AugustoMauchReview Assigned To => marvintm
2014-03-21 08:57AugustoMauchStatusresolved => closed
2014-03-21 08:57AugustoMauchStatusclosed => new
2014-03-21 08:57AugustoMauchResolutionfixed => open
2014-03-21 09:48hgbotCheckin
2014-03-21 09:48hgbotNote Added: 0065337
2014-03-21 09:48hgbotStatusnew => resolved
2014-03-21 09:48hgbotResolutionopen => fixed
2014-03-21 09:48hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/dbsm-main/rev/3f0764688bff165a7ea614eb0c24de3edaa6f2f7 [^] => http://code.openbravo.com/erp/devel/pi/rev/bcdd38a8d45e3c1d6afeab5a37bd1c9038b4429c [^]
2014-03-21 09:48hgbotCheckin
2014-03-21 09:48hgbotNote Added: 0065338
2014-03-21 09:48hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/bcdd38a8d45e3c1d6afeab5a37bd1c9038b4429c [^] => http://code.openbravo.com/erp/devel/pi/rev/a6a8aa7884ae1cd80cc57169235f9e598ab75493 [^]
2014-03-21 09:51AugustoMauchNote Added: 0065339
2014-03-21 09:51AugustoMauchStatusresolved => new
2014-03-21 09:51AugustoMauchResolutionfixed => open
2014-03-21 09:51AugustoMauchFile Added: templates.tar.gz
2014-03-21 09:51AugustoMauchStatusnew => scheduled
2014-03-21 09:51AugustoMauchfix_in_branch => pi
2014-03-21 09:52AugustoMauchStatusscheduled => resolved
2014-03-21 09:52AugustoMauchResolutionopen => fixed
2014-03-21 10:02AugustoMauchNote Added: 0065343
2014-03-22 04:14hudsonbotCheckin
2014-03-22 04:14hudsonbotNote Added: 0065370
2014-03-22 04:14hudsonbotCheckin
2014-03-22 04:14hudsonbotNote Added: 0065371
2014-03-31 18:11marvintmNote Added: 0065630
2014-03-31 18:11marvintmStatusresolved => closed
2014-03-31 18:11marvintmFixed in Version => PR14Q2

Notes
(0065333)
hgbot   
2014-03-21 08:56   
Repository: erp/devel/dbsm-main
Changeset: 3f0764688bff165a7ea614eb0c24de3edaa6f2f7
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Mar 21 08:55:19 2014 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/3f0764688bff165a7ea614eb0c24de3edaa6f2f7 [^]

Fixes issue 25108: export.config.script takes into account templates dependency

The ExportConfigScript class now orders the templates according to its dependencies.

---
M src/org/openbravo/ddlutils/task/ExportConfigScript.java
---
(0065337)
hgbot   
2014-03-21 09:48   
Repository: erp/devel/pi
Changeset: bcdd38a8d45e3c1d6afeab5a37bd1c9038b4429c
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Mar 21 08:57:54 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bcdd38a8d45e3c1d6afeab5a37bd1c9038b4429c [^]

Fixes issue 25108: export.config.script takes into account templates dependency

The ExportConfigScript class now orders the templates according to its dependencies.

---
M src-db/database/lib/dbsourcemanager.jar
---
(0065338)
hgbot   
2014-03-21 09:48   
Repository: erp/devel/pi
Changeset: a6a8aa7884ae1cd80cc57169235f9e598ab75493
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Mar 21 09:47:44 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a6a8aa7884ae1cd80cc57169235f9e598ab75493 [^]

Fixes issue 25108: export.config.script takes into account templates dependency

The ExportConfigScript class now orders the templates according to its dependencies.

---
M src-db/database/lib/dbsourcemanager.jar
---
(0065339)
AugustoMauch   
2014-03-21 09:51   
Reopened to include an attachment
(0065343)
AugustoMauch   
2014-03-21 10:02   
Test Plan:
- Download the attached file templates.tar.gz and extract it in the modules/ folder. It contains three templates:
* org.openbravo.a.template1. Depends from the Openbravo template. Changes the seqno of a tab from 10 to 20.
* org.openbravo.b.template2. Depends from org.openbravo.a.template1. Changes the seqno of the same tab from 20 to 30.
* org.openbravo.c.template3. Depends from org.openbravo.b.template2. It does not have any changes
- Change the 'In Development' flag of the modules so the only module in development is the org.openbravo.c.template3 template.
- Execute ant export.database -Dforce=yes -DcheckTranslationConsistency=no and ant export.config.script.
- Check that the file modules/org.openbravo.c.template3/src-db/database/configScript.xml does not contain any changes. Before the fix, it would have contained the change of the tab seqno from 20 to 30.
(0065370)
hudsonbot   
2014-03-22 04:14   
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/b70224bef848 [^]
Maturity status: Test
(0065371)
hudsonbot   
2014-03-22 04:14   
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/b70224bef848 [^]
Maturity status: Test
(0065630)
marvintm   
2014-03-31 18:11   
Works