Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012824Openbravo ERPZ. Otherspublic2010-03-26 15:082010-04-19 21:13
shuehner 
dalsasua 
immediatecriticalhave not tried
closedfixed 
5
pi 
 
Core
No
0012824: api check build 327 fails - part2
This api check build fails:

http://builds.openbravo.com/job/erp_devel_pi-module-integrity-test/326/console [^]

 [checkAPI] 25977 ERROR - +++++++++++++++++++++++++++++++++++++++++++++++++++
 [checkAPI] 25985 ERROR - Errors in API model validation
 [checkAPI] 25989 ERROR - +++++++++++++++++++++++++++++++++++++++++++++++++++
 [checkAPI] 25996 ERROR - Unique constraint modified, column removed: table: C_BP_VENDOR_ACCT - Unique constraint: C_BP_VENDOR_ACCT_ACCTSCHEMA_UN - removed column AD_ORG_ID
No tags attached.
related to defect 00125892.50MP17 closed dalsasua The constraint C_BP_VENDOR_ACCT_ACCTSCHEMA_UN on the C_BP_VENDOR_ACCT should not include the organization 
Issue History
2010-03-26 15:08shuehnerNew Issue
2010-03-26 15:08shuehnerAssigned To => balamurugan
2010-03-26 15:09shuehnerRelationship addedrelated to 0012589
2010-03-26 15:09shuehnerNote Added: 0025752
2010-03-26 15:14jpabloaeIssue Monitored: jpabloae
2010-04-06 13:54balamuruganNote Added: 0025894
2010-04-06 13:54balamuruganAssigned Tobalamurugan => pjuvara
2010-04-06 14:40balamuruganNote Added: 0025899
2010-04-06 14:40balamuruganStatusnew => feedback
2010-04-06 14:52shuehnerNote Added: 0025901
2010-04-06 21:15pjuvaraNote Added: 0025915
2010-04-06 21:15pjuvaraAssigned Topjuvara => balamurugan
2010-04-06 21:15pjuvaraStatusfeedback => new
2010-04-07 12:37marvintmNote Added: 0025930
2010-04-07 16:42pjuvaraNote Added: 0025950
2010-04-09 18:38hgbotCheckin
2010-04-09 18:38hgbotNote Added: 0026042
2010-04-09 18:38hgbotStatusnew => resolved
2010-04-09 18:38hgbotResolutionopen => fixed
2010-04-09 18:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5c592e20669af9595f420264548768f1bc6e7248 [^]
2010-04-09 18:48shuehnerAssigned Tobalamurugan => dalsasua
2010-04-09 18:48shuehnerStatusresolved => new
2010-04-09 18:48shuehnerResolutionfixed => open
2010-04-09 18:51hgbotCheckin
2010-04-09 18:51hgbotNote Added: 0026043
2010-04-09 18:51hgbotStatusnew => resolved
2010-04-09 18:51hgbotResolutionopen => fixed
2010-04-09 18:51hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/5c592e20669af9595f420264548768f1bc6e7248 [^] => http://code.openbravo.com/erp/devel/api-checks/rev/63452bd73c719b5e2889e962b8f4d13e958033a5 [^]
2010-04-09 19:05hgbotCheckin
2010-04-09 19:05hgbotNote Added: 0026044
2010-04-09 19:05hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/api-checks/rev/63452bd73c719b5e2889e962b8f4d13e958033a5 [^] => http://code.openbravo.com/erp/devel/pi/rev/6c78ad9d51765ab3f499895fae814e7bf27da3af [^]
2010-04-09 20:27shuehnerNote Added: 0026045
2010-04-09 20:27shuehnerStatusresolved => closed
2010-04-10 00:00anonymoussf_bug_id0 => 2984777
2010-04-19 21:13hudsonbotCheckin
2010-04-19 21:13hudsonbotNote Added: 0026446
2010-04-19 21:13hudsonbotCheckin
2010-04-19 21:13hudsonbotNote Added: 0026447

Notes
(0025752)
shuehner   
2010-03-26 15:09   
The removal of a column from the unique-constraint makes it more strict, which could make it fail for existing data.
(0025894)
balamurugan   
2010-04-06 13:54   
This api change is related to the fixing of the issue 12589. In 12589, the constraint C_BP_VENDOR_ACCT_ACCTSCHEMA_UN in the table C_BP_VENDOR_ACCT includes the following columns C_ACCTSCHEMA_ID, C_BPARTNER_ID, STATUS and AD_ORG_ID. so, the system allows to create two vendor accounting lines using same account schema with different organization. So, the AD_ORG_ID is removed from the constraint not allow to create such that.

In order to fix this api break, i need a confirmation whether this api change is valid or not.
(0025899)
balamurugan   
2010-04-06 14:40   
This api change is related to the fixing of the issue 12589. In 12589, the constraint C_BP_VENDOR_ACCT_ACCTSCHEMA_UN in the table C_BP_VENDOR_ACCT includes the following columns C_ACCTSCHEMA_ID, C_BPARTNER_ID, STATUS and AD_ORG_ID. so, the system allows to create two vendor accounting lines using same account schema with different organization. So, the AD_ORG_ID is removed from the constraint not allow to create such that.

In order to fix this api break, i need a confirmation whether this api change is valid or not.
(0025901)
shuehner   
2010-04-06 14:52   
@paolo:
The problem with that issue is that there might be local data, which is not fine with the new changed/stricter constraint.

Using the new BuildValidation project (will be included in MP15, see [1]) we can add a check if the data is fine, and if not stop the upgrade with a error message explaining what/why and what needs to be checked/changed in the local system.

If we add this validation, then it should be fine to accept this changed constraint.

[1] http://wiki.openbravo.com/wiki/Projects/ValidationsAndPrescripts [^]
(0025915)
pjuvara   
2010-04-06 21:15   
The proposed constraint change is certainly correct functionally (it mirrors the customer account constraints) but I understand shuehner's concern on update for existing customers.

Can we postpone the fix for issue 12589 till after MP15 so that we can add a validation script prompting users to clean up the data before applying the update?
(0025930)
marvintm   
2010-04-07 12:37   
Hi

As Stefan mentioned, the Build Validations will be included in MP15 (the project was already merged to pi), so there is no problem afaics in including both the API change and the validation now, as everything should be fine (in the validation we can include a specific message telling the users what they should do).
(0025950)
pjuvara   
2010-04-07 16:42   
I am OK with marvintm suggestion.
(0026042)
hgbot   
2010-04-09 18:38   
Repository: erp/devel/pi
Changeset: 5c592e20669af9595f420264548768f1bc6e7248
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Fri Apr 09 18:50:30 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5c592e20669af9595f420264548768f1bc6e7248 [^]

Fixes issue 12824: api check build 327

---
M src-db/database/sourcedata/AD_MESSAGE.xml
A src-util/buildvalidation/src/org/openbravo/buildvalidation/Cbpvendoracct.java
A src-util/buildvalidation/src/org/openbravo/buildvalidation/Cbpvendoracct_data.xsql
---
(0026043)
hgbot   
2010-04-09 18:51   
Repository: erp/devel/api-checks
Changeset: 63452bd73c719b5e2889e962b8f4d13e958033a5
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Fri Apr 09 19:03:41 2010 +0200
URL: http://code.openbravo.com/erp/devel/api-checks/rev/63452bd73c719b5e2889e962b8f4d13e958033a5 [^]

Fixes issue 12824: api check build 327

---
M model/model/tables/C_BP_VENDOR_ACCT.xml
---
(0026044)
hgbot   
2010-04-09 19:05   
Repository: erp/devel/pi
Changeset: 6c78ad9d51765ab3f499895fae814e7bf27da3af
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Fri Apr 09 19:17:41 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/6c78ad9d51765ab3f499895fae814e7bf27da3af [^]

Fixes issue 12824: api check build 327

---
A src-util/buildvalidation/build/classes/org/openbravo/buildvalidation/Cbpvendoracct.class
A src-util/buildvalidation/build/classes/org/openbravo/buildvalidation/CbpvendoracctData.class
---
(0026045)
shuehner   
2010-04-09 20:27   
api-check build now fine -> closing
(0026446)
hudsonbot   
2010-04-19 21:13   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/5c592e20669a [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/91d98bda46c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17088.obx [^]
(0026447)
hudsonbot   
2010-04-19 21:13   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/6c78ad9d5176 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/91d98bda46c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17088.obx [^]