Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036956Openbravo ERPY. DBSourceManagerpublic2017-09-26 15:522022-02-01 08:05
inigosanchez 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0036956: Some warnings appear (when it shouldn't) in "ret-api" job is executed.
Some warnings appear (when it shouldn't) in "ret-api" job is executed:
...................................
 [checkAPI] 10672 INFO - Loading and applying configuration scripts
 [checkAPI] 10677 INFO - Applying data part of configuration script: org.openbravo.retail.pack
 [checkAPI] 10679 INFO - Loading configuration script: /srv/ci/workspace/ret-api/SANDBOX/api-checks/model/modules/org.openbravo.retail.pack/src-db/database/configScript.xml
 [checkAPI] Warning: old value in row not equal to expected one. Table:[AD_TAB] PK[: 800222] Old Value found: Y Old value expected N
 [checkAPI] Warning: old value in row not equal to expected one. Table:[AD_TAB] PK[: 800223] Old Value found: Y Old value expected N
...................................

The CheckAPIDistribution task is not working as expected if you execute the task as follows (same as ret-api):

ant run.api.test.model -DstableDBdir=/srv/ci/workspace/try-ret-api/SANDBOX/api-checks/model -Dmodules=org.openbravo.retail.pack,org.openbravo.retail.config,org.openbravo.retail.posterminal,org.openbravo.retail.poshwmanager,org.openbravo.retail.discounts,org.openbravo.mobile.core,org.openbravo.retail.sampledata,org.openbravo.retail.returns

These modules (-Dmodules=...) are used to load the data from their source data (xml). This generates the problem because the loaded data is used to find all the templates and for this reason core template is not found and is not applied as expected.
*Having an instance with the modules of retail execute CheckAPIDistribution task as follows:

- Execute ant run.api.test.model -DstableDBdir=. -Dmodules=org.openbravo.retail.pack,org.openbravo.retail.config,org.openbravo.retail.posterminal,org.openbravo.retail.poshwmanager,org.openbravo.retail.discounts,org.openbravo.mobile.core,org.openbravo.retail.sampledata,org.openbravo.retail.returns
- See warnings in console log:
 [checkAPI] Warning: old value in row not equal to expected one. Table:[AD_TAB] PK[: 800222] Old Value found: Y Old value expected N
 [checkAPI] Warning: old value in row not equal to expected one. Table:[AD_TAB] PK[: 800223] Old Value found: Y Old value expected N
The solution could be include javapackages of the core modules into the modulesList [1]. The data is loaded from the list of modules inside moduleList. The data changes defined in retail template will be applied as expected because core template is applied before.

[1].- https://code.openbravo.com/erp/devel/dbsm-main/file/5711f00fc293/src/org/openbravo/ddlutils/task/CheckAPIDistribution.java#l96 [^]
No tags attached.
related to defect 0036950 closed inigosanchez CheckAPIDistribution task is not working as expected 
Issue History
2017-09-26 15:52inigosanchezNew Issue
2017-09-26 15:52inigosanchezAssigned To => platform
2017-09-26 15:52inigosanchezModules => Core
2017-09-26 15:52inigosanchezTriggers an Emergency Pack => No
2017-09-26 15:54inigosanchezRelationship addedrelated to 0036950
2017-10-04 10:30inigosanchezProposed Solution updated
2017-11-24 09:25caristuStatusnew => acknowledged
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.