Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0043073Openbravo ERPA. Platformpublic2020-01-30 15:272020-03-20 17:54
inigo_lerga 
inigo_lerga 
normalminorhave not tried
closedfixed 
5
 
3.0PR20Q2 
dmiguelez
Core
No
0043073: Apply new HQL Style in CostingUtils.java
CostingUtils.java has 8 HQL queries with:
- the HQL is hard to read because of formatting
- and it is mixing txt and i.e PROPERTY_ID constant which is not recommended by default
-
Follow new format as in http://wiki.openbravo.com/wiki/HQL_Coding_Conventions [^]
No tags attached.
related to design defect 0041287 acknowledged Triage Platform Base Tracking issue: Convert HQL to apply new style 
Issue History
2020-01-30 15:27inigo_lergaNew Issue
2020-01-30 15:27inigo_lergaAssigned To => inigo_lerga
2020-01-30 15:27inigo_lergaModules => Core
2020-01-30 15:27inigo_lergaTriggers an Emergency Pack => No
2020-01-30 15:27inigo_lergaRelationship addedrelated to 0041287
2020-01-30 15:27inigo_lergaStatusnew => scheduled
2020-02-20 10:51inigo_lergaNote Added: 0117962
2020-02-27 11:09hgbotCheckin
2020-02-27 11:09hgbotNote Added: 0118149
2020-02-27 11:09hgbotStatusscheduled => resolved
2020-02-27 11:09hgbotResolutionopen => fixed
2020-02-27 11:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/02b5813c8afa771faa0b4c9197853a025b0125e5 [^]
2020-02-27 11:09hgbotCheckin
2020-02-27 11:09hgbotNote Added: 0118150
2020-02-27 11:10dmiguelezReview Assigned To => dmiguelez
2020-02-27 11:10dmiguelezNote Added: 0118151
2020-02-27 11:10dmiguelezStatusresolved => closed
2020-02-27 11:10dmiguelezFixed in Version => 3.0PR20Q2
2020-02-27 16:18hgbotCheckin
2020-02-27 16:18hgbotNote Added: 0118170
2020-03-20 17:54hudsonbotCheckin
2020-03-20 17:54hudsonbotNote Added: 0118738

Notes
(0117962)
inigo_lerga   
2020-02-20 10:51   
--Test Plan Mantis HQL queries--
Part of the modified hqls in this Issue can be executed
running the JUnit tests found in the TestCosting.java file.

#In this moment the modified HQLs are executed#
(0118149)
hgbot   
2020-02-27 11:09   
Repository: erp/devel/pi
Changeset: 02b5813c8afa771faa0b4c9197853a025b0125e5
Author: IƱigo Lerga <inigo.lerga <at> openbravo.com>
Date: Thu Feb 20 10:49:43 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/02b5813c8afa771faa0b4c9197853a025b0125e5 [^]

fixes BUG-43073:Applied new HQL Style

---
M src/org/openbravo/costing/CostingUtils.java
---
(0118150)
hgbot   
2020-02-27 11:09   
Repository: erp/devel/pi
Changeset: f95a4b4cda69f2b4e185f727c2a7d9c8c55b6ee7
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Feb 27 11:09:02 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/f95a4b4cda69f2b4e185f727c2a7d9c8c55b6ee7 [^]

Related to ISSUE-43073. Code Review changes:
* Split case when statements in different lines to improve redability
* Renamed variable to use a more descriptive name

---
M src/org/openbravo/costing/CostingUtils.java
---
(0118151)
dmiguelez   
2020-02-27 11:10   
Code Review + Testing Ok
(0118170)
hgbot   
2020-02-27 16:18   
Repository: erp/devel/pi
Changeset: 3e846a4de56f0a42672b336d5fb1e32162b521fd
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Feb 27 16:17:13 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3e846a4de56f0a42672b336d5fb1e32162b521fd [^]

Related to ISSUE 43073. Changed hql query to compare string with string

---
M src/org/openbravo/costing/CostingUtils.java
---
(0118738)
hudsonbot   
2020-03-20 17:54   
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/b31620115262 [^]
Maturity status: Test