Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0007306
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2009-02-02 10:032009-03-06 12:34
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revision12775
ProjectionnoneETAnoneTarget Versionpi
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0007306: Solve various validation errors reported by the validate.database task

DescriptionThe reported validation errors with the change which needs to be made:

c.- Table C_TEMP_SELECTION and C_TEMP_SELECTION2 present in the database but
not defined in the Application Dictionary -> MTA should change the
validation to not take into account "TEMPORARY" tables when reading db
tables. Both tables are not in our standard model but generated in the
prescript. Temporary tables will never be part of our model (dbSourceManager
will never create a temporary table from the model). DB dictionary tables
(USER_TABLES) have a isTemporary column ("TEMPORARY" in oracle)
d.- Mandatory but nullable columns: I would disable this validation in 2.50.
To properly manage this case we need to implement the "mandatory" attribute
in fields. In 2.60 there is a clean-up project planned that should enable
back this validation and include a review on this columns. -> MTA should
send an email to Stefan -who will lead the cleanup- to put this as a feature
request for the cleanup project. You should explain to him the validation
process because for sure Stefan will extend it with new rules during the
clean-up
e.- Not nullable but not mandatory columns -> MTA should set all of them as
mandatory in AD (automatic script)
f.- Wrong type: mistakes with lists -> MTA should change the validation for
lists, it should be VARCHAR(60). In my last email I said that datatype in
lists should be VARCHAR2(60) but it is the sub-type in oracle (sorry, my
fault). VARCHAR2 in oracle is equivalent to VARCHAR in postgresql and the
type in our model is VARCHAR (afaic you are using DBSourceManager to read
the model from db). Oracle has VARCHAR2 and NVARCHAR2 and not VARCHAR AND
NVARCHAR (strange naming in oracle due to historical reasons).
g.- Wrong type: mistakes with USER1_ID, USER2_ID -> MTA should change the
ad_reference_id of these columns to 10 (string) and ad_referencevalue_id to
null (these columns are supposed to be used as foreing keys to user defined
dimensions, so they should be tableDir or tableReference or search, but
since the referenced entity does not exist is is better to put them as
string)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0013143)
svnbot (reporter)
2009-02-04 14:56

Repository: openbravo
Revision: 12775
Author: mtaal
Date: 2009-02-04 14:55:55 +0100 (Wed, 04 Feb 2009)

Fixes issue 7306, Solve various validation errors reported by the validate.database task

---
U trunk/src/org/openbravo/base/model/ModelProvider.java
U trunk/src/org/openbravo/base/model/Property.java
U trunk/src/org/openbravo/service/system/DatabaseValidator.java
U trunk/src-db/database/model/tables/AD_EXCEPTIONS.xml
U trunk/src-db/database/model/tables/AD_FIELD.xml
U trunk/src-db/database/model/tables/C_BANKSTATEMENTLINE.xml
U trunk/src-db/database/model/tables/C_CASHLINE.xml
U trunk/src-db/database/model/tables/C_TAXPAYMENT.xml
U trunk/src-db/database/sourcedata/AD_COLUMN.xml
U trunk/src-db/database/sourcedata/AD_ELEMENT.xml
U trunk/src-db/database/sourcedata/AD_FIELD.xml
U trunk/src-db/database/sourcedata/AD_TABLE.xml
U trunk/src-db/database/sourcedata/AD_TEXTINTERFACES.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=12775&sc=1 [^]

- Issue History
Date Modified Username Field Change
2009-02-02 10:03 mtaal New Issue
2009-02-02 10:03 mtaal Assigned To => mtaal
2009-02-02 10:03 mtaal sf_bug_id 0 => 2556395
2009-02-02 10:03 mtaal Regression testing => No
2009-02-03 10:52 psarobe Status new => scheduled
2009-02-03 10:52 psarobe fix_in_branch => trunk
2009-02-04 14:56 svnbot Checkin
2009-02-04 14:56 svnbot Note Added: 0013143
2009-02-04 14:56 svnbot Status scheduled => resolved
2009-02-04 14:56 svnbot Resolution open => fixed
2009-02-04 14:56 svnbot svn_revision => 12775
2009-03-06 12:34 psarobe Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker