Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0042736Openbravo ERP02. Master data managementpublic2020-01-08 13:462020-01-16 16:27
AtulOpenbravo 
AtulOpenbravo 
normalminorhave not tried
closedfixed 
5
 
3.0PR20Q2 
dmiguelez
Core
No
0042736: Apply new HQL style in VariantChDescUpdateProcess
Apply new HQL style for fetching data from Product, ProductCharacteristic and ProductCharacteristicValue in update & updateProduct methods in VariantChDescUpdateProcess class as use of normal strings is mandatory instead of
1. StringBuffer
2. Property Constants for eg: PROPERTY_PRODUCTCHARACTERISTICLIST, PROPERTY_PRODUCTCHARACTERISTICVALUELIST, PROPERTY_CHARACTERISTICVALUE, PROPERTY_PRODUCT, PROPERTY_SEQUENCENUMBER, PROPERTY_CHARACTERISTIC
**HQL formatting is important for improving readability.
-
Follow new style available here 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-08 13:46AtulOpenbravoNew Issue
2020-01-08 13:46AtulOpenbravoAssigned To => platform
2020-01-08 13:46AtulOpenbravoModules => Core
2020-01-08 13:46AtulOpenbravoTriggers an Emergency Pack => No
2020-01-08 13:46AtulOpenbravoIssue generated from0041287
2020-01-08 13:46AtulOpenbravoAssigned Toplatform => AtulOpenbravo
2020-01-08 13:47AtulOpenbravoRelationship addedrelated to 0041287
2020-01-08 13:48AtulOpenbravoStatusnew => scheduled
2020-01-08 13:49AtulOpenbravoDescription Updatedbug_revision_view_page.php?rev_id=20044#r20044
2020-01-08 13:52AtulOpenbravoSeveritytrivial => minor
2020-01-08 13:52AtulOpenbravoDescription Updatedbug_revision_view_page.php?rev_id=20045#r20045
2020-01-08 13:52AtulOpenbravoProposed Solution updated
2020-01-08 13:57AtulOpenbravoDescription Updatedbug_revision_view_page.php?rev_id=20046#r20046
2020-01-08 13:58AtulOpenbravoDescription Updatedbug_revision_view_page.php?rev_id=20047#r20047
2020-01-08 14:04AtulOpenbravoIssue cloned0042740
2020-01-13 11:15AtulOpenbravoNote Added: 0116788
2020-01-16 16:25hgbotCheckin
2020-01-16 16:25hgbotNote Added: 0116936
2020-01-16 16:26hgbotStatusscheduled => resolved
2020-01-16 16:26hgbotResolutionopen => fixed
2020-01-16 16:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7b13593cab651e88544ba5f9e6d9af2be303aa93 [^]
2020-01-16 16:26hgbotCheckin
2020-01-16 16:26hgbotNote Added: 0116937
2020-01-16 16:26hgbotCheckin
2020-01-16 16:27hgbotNote Added: 0116938
2020-01-16 16:27dmiguelezReview Assigned To => dmiguelez
2020-01-16 16:27dmiguelezNote Added: 0116940
2020-01-16 16:27dmiguelezStatusresolved => closed
2020-01-16 16:27dmiguelezFixed in Version => 3.0PR20Q2

Notes
(0116788)
AtulOpenbravo   
2020-01-13 11:15   
Test Plan
- Define a Product Characteristics, set Variant = Yes, Explode Configuration Tab = Yes
- Add records in Value Tab
- Add record in Subset Tab
- Add records in Subset value Tab.
- Create a Generic Product
- Add above Characteristics defined in Product Window Characteristics Tab.
- Run Create Variants process.
- Realize that Variant Products are created successfully.
- Execute Manage Variants.
- Realize that Variants Products are shown in the P&E window.
- Select any Product and try to modify name of one of Product
- Click on Done button.
- Realize that process is successful and name of Product is updated accordingly.
- Navigate to Update Product Characteristic Description process
- Select any Product
- Run the process and realize that it is successful.
- Navigate to Update Product Characteristic Description process
- Select any Characteristic
- Run the process and realize that it is successful.
(0116936)
hgbot   
2020-01-16 16:25   
Repository: erp/devel/pi
Changeset: 7b13593cab651e88544ba5f9e6d9af2be303aa93
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Mon Jan 13 11:03:13 2020 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/7b13593cab651e88544ba5f9e6d9af2be303aa93 [^]

Fixes BUG-42736:Apply new HQL style in VariantChDescUpdateProcess

**Applied new HQL style, avoid use of StringBuffer and Property
constants

---
M src/org/openbravo/materialmgmt/VariantChDescUpdateProcess.java
---
(0116937)
hgbot   
2020-01-16 16:26   
Repository: erp/devel/pi
Changeset: 82e1d231e16ba383b30eb81e1f0092dd0ce5cf96
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Mon Jan 13 14:43:32 2020 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/82e1d231e16ba383b30eb81e1f0092dd0ce5cf96 [^]

Related To ISSUE-42736:Apply new HQL style in VariantChDescUpdateProcess

**Apply changes as per SonarLint Report

---
M src/org/openbravo/materialmgmt/VariantChDescUpdateProcess.java
---
(0116938)
hgbot   
2020-01-16 16:26   
Repository: erp/devel/pi
Changeset: 29e254d4f560dee57d1c6a0f14d5e774a3906948
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Jan 16 16:24:48 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/29e254d4f560dee57d1c6a0f14d5e774a3906948 [^]

Related to ISSUE-42736: Code Review Changes:

  * Simplified expression to generate the query object
  * Use id's instead of objects in the query
  * Changed names to be more descriptive

---
M src/org/openbravo/materialmgmt/VariantChDescUpdateProcess.java
---
(0116940)
dmiguelez   
2020-01-16 16:27   
Code Review + Testing Ok