Openbravo Issue Tracking System - Modules
View Issue Details
0044050ModulesAdvanced Warehouse Operationspublic2020-05-13 11:332020-05-20 12:28
inigo_lerga 
inigo_lerga 
normalminorhave not tried
closedfixed 
5
 
 
dmiguelez
0044050: Apply new HQL Style in AvailableLocatorsUtils.java
AvailableLocatorsUtils.java has 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 Openbravo ERP Tracking issue: Convert HQL to apply new style 
Issue History
2020-05-13 11:33inigo_lergaNew Issue
2020-05-13 11:33inigo_lergaAssigned To => inigo_lerga
2020-05-13 11:33inigo_lergaRelationship addedrelated to 0041287
2020-05-13 11:33inigo_lergaStatusnew => scheduled
2020-05-13 13:50inigo_lergaNote Added: 0119836
2020-05-15 11:56inigo_lergaNote Edited: 0119836bug_revision_view_page.php?bugnote_id=0119836#r21032
2020-05-15 11:58inigo_lergaNote Edited: 0119836bug_revision_view_page.php?bugnote_id=0119836#r21037
2020-05-20 12:25hgbotCheckin
2020-05-20 12:25hgbotNote Added: 0120093
2020-05-20 12:25hgbotCheckin
2020-05-20 12:25hgbotNote Added: 0120094
2020-05-20 12:25hgbotStatusscheduled => resolved
2020-05-20 12:25hgbotResolutionopen => fixed
2020-05-20 12:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/4484dda1b5bf0f65d550b11414b913fe61ad1cba [^]
2020-05-20 12:25hgbotCheckin
2020-05-20 12:25hgbotNote Added: 0120095
2020-05-20 12:25hgbotCheckin
2020-05-20 12:25hgbotNote Added: 0120096
2020-05-20 12:25hgbotCheckin
2020-05-20 12:25hgbotNote Added: 0120097
2020-05-20 12:25hgbotCheckin
2020-05-20 12:25hgbotNote Added: 0120098
2020-05-20 12:28dmiguelezReview Assigned To => dmiguelez
2020-05-20 12:28dmiguelezNote Added: 0120099
2020-05-20 12:28dmiguelezStatusresolved => closed
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

Notes
(0119836)
inigo_lerga   
2020-05-13 13:50   
(edited on: 2020-05-15 11:58)
--Test Plan Mantis HQL--
Beforehand, the environment needs to have AWO modules
installed and working.
Execute the AWOTestSuite.java JUnit tests file.
#In this moment the modified HQLs are executed#

(0120093)
hgbot   
2020-05-20 12:25   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 85983242ca5e71e7a1c0b66fe0465f884e843778
Author: Iñigo Lerga <inigo.lerga <at> openbravo.com>
Date: Wed May 13 13:58:34 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/85983242ca5e71e7a1c0b66fe0465f884e843778 [^]

related to ISSUE-44050:SimpleQueryBuilder uses now String

Instead of StringBuilder, now String is used to save
the hql query. This change is made to follow new
hql queries format.

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/task/SimpleQueryBuilder.java
---
(0120094)
hgbot   
2020-05-20 12:25   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 4484dda1b5bf0f65d550b11414b913fe61ad1cba
Author: Iñigo Lerga <inigo.lerga <at> openbravo.com>
Date: Wed May 13 14:09:30 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/4484dda1b5bf0f65d550b11414b913fe61ad1cba [^]

fixes BUG-44050:Applied new HQL Style

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/task/AvailableLocatorsUtils.java
---
(0120095)
hgbot   
2020-05-20 12:25   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: a31230a4bca3aa7aaf91647817bee7b4de2436d6
Author: Iñigo Lerga <inigo.lerga <at> openbravo.com>
Date: Wed May 13 15:16:19 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/a31230a4bca3aa7aaf91647817bee7b4de2436d6 [^]

related to ISSUE-44050:PA_QueryBuilder SimpleQueryBuilder update

Due to the modification of SimpleQueryBuilder to use String
insted of SimpleBuilder to save the hql query, the hql in
PA_QueryBuilder now can be made also with String.

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/warehousealgorithm/PA_QueryBuilder.java
---
(0120096)
hgbot   
2020-05-20 12:25   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 5f7e381f991dc8a2f489df25946340b6f85012ec
Author: Iñigo Lerga <inigo.lerga <at> openbravo.com>
Date: Wed May 13 15:41:58 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/5f7e381f991dc8a2f489df25946340b6f85012ec [^]

related to ISSUE-44050:GroupOfTasksConfirmator SimpleQueryBuilder update

Due to the modification of SimpleQueryBuilder to use String
insted of SimpleBuilder to save the hql query, the hql in
GroupOfTasksConfirmator now can be made also with String.

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/centralbroker/GroupOfTasksConfirmator.java
---
(0120097)
hgbot   
2020-05-20 12:25   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 49decd0c175f1c66d33d724ad973c7dfc19571e9
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Wed May 20 10:23:14 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/49decd0c175f1c66d33d724ad973c7dfc19571e9 [^]

Related to ISSUE-44050. Improve redability
  * Collapse senteces to make them easier to read
  * remove some consecutive formatters on/off to make the code easier to read

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/centralbroker/GroupOfTasksConfirmator.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/task/AvailableLocatorsUtils.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/warehousealgorithm/PA_QueryBuilder.java
---
(0120098)
hgbot   
2020-05-20 12:25   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 194dc64b9273a949a4b6a277348b6c14bff8d76e
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Wed May 20 12:25:31 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/194dc64b9273a949a4b6a277348b6c14bff8d76e [^]

Related to ISSUE-44050. Added back alias for tables using a class constant.

Since this classes are meant to be extended to modify the query, some
class constants have been defined to use as table aliases.
By doing so, it avoid possible problems when extending the query.
This constants are now used as the table alias in the hql query.

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/task/AvailableLocatorsUtils.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/warehousealgorithm/PA_QueryBuilder.java
---
(0120099)
dmiguelez   
2020-05-20 12:28   
Code Review + Testing Ok