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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0013664
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformmajorhave not tried2010-06-15 17:262011-01-27 00:00
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionb8c227ba3b24
ProjectionnoneETAnoneTarget Version
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

0013664: api-check should get special case for newly added std-boolean-constraint for newly added columns.

DescriptionThe api-check always complains about newly added constraint. However those are safe, if they only concern newly added columns.
However detecting this would mean parsing all the sql-check-string which is unfeasible.

However a simple special case occurs often. A new char(1) (aka boolean) column is added and the usual check-constraint (for 'Y','N') with it. This constraint has a defined syntax always and should be able to be detected easily.

Adding this special case to the api-check would mean less false-positives which need to be handled differently.
Proposed SolutionAdd new special case to api-check

in case a new check constraint is added and matches the pattern for the standard 'Y','N' constraint and hte column name in the pattern is also a newly added column in the same check -> don't report as error

in all other cases -> report as done now
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0033842)
hgbot (developer)
2011-01-24 17:52

Repository: erp/devel/dbsm-main
Changeset: b411b82706ed8a7c14066e4827fd3fdd9a1e4c98
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Mon Jan 24 17:51:09 2011 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/b411b82706ed8a7c14066e4827fd3fdd9a1e4c98 [^]

Issue 13664: Skip complaining about new bool-constraint for new columns
Adding a new boolean column with its 'usual' boolean constraint is fine and
common so special case it in the api-check so no complaint is generated.

Api-Check errors are still generated for other new constraints
as well as warnings for changing check constraints.

To allow to follow that reasoning an info message block is added to the output
for informal messages not letting the api-check fail.

---
M src/org/openbravo/ddlutils/task/CheckAPI.java
M src/org/openbravo/ddlutils/task/CheckAPIDistribution.java
M src/org/openbravo/ddlutils/util/ValidateAPI.java
M src/org/openbravo/ddlutils/util/ValidateAPIModel.java
---
(0033843)
shuehner (administrator)
2011-01-24 17:53

Tested in pi using the following three testcases
a.) add new boolean column + check constraint for it together -> no error but info message now
b.) add boolean check constraint for existing column -> should trigger error as before
c.) add non-boolean check constraint (some other check constraint) -> should trigger error as before

all worked fine.
(0033844)
hgbot (developer)
2011-01-24 17:57

Repository: erp/devel/pi
Changeset: b8c227ba3b2400ddea4052259ef72299444b0627
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Mon Jan 24 17:57:12 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b8c227ba3b2400ddea4052259ef72299444b0627 [^]

Fixed 13664: Skip complaining about new bool-constraint for new columns
Adding a new boolean column with its 'usual' boolean constraint is fine and
common so special case it in the api-check so no complaint is generated.

Api-Check errors are still generated for other new constraints
as well as warnings for changing check constraints.

To allow to follow that reasoning an info message block is added to the output
for informal messages not letting the api-check fail.

---
M src-db/database/lib/dbsourcemanager.jar
---

- Issue History
Date Modified Username Field Change
2010-06-15 17:26 shuehner New Issue
2010-06-15 17:26 shuehner Assigned To => alostale
2011-01-24 17:46 shuehner Assigned To alostale => shuehner
2011-01-24 17:52 hgbot Checkin
2011-01-24 17:52 hgbot Note Added: 0033842
2011-01-24 17:53 shuehner Note Added: 0033843
2011-01-24 17:57 hgbot Checkin
2011-01-24 17:57 hgbot Note Added: 0033844
2011-01-24 17:57 hgbot Status new => resolved
2011-01-24 17:57 hgbot Resolution open => fixed
2011-01-24 17:57 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b8c227ba3b2400ddea4052259ef72299444b0627 [^]
2011-01-26 12:04 marvintm Status resolved => closed
2011-01-27 00:00 anonymous sf_bug_id 0 => 3166237


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker