Openbravo Issue Tracking System - POS2
View Issue Details
0055223POS2Corepublic2024-04-17 14:352024-06-03 17:17
alostale 
cberner 
normalmajorhave not tried
closedfixed 
5
 
24Q224Q3 
Production - Confirmed Stable
2022-03-10
22Q3
https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/2f9085eac2a9c579fbf9fdaa0958fbbca06ad4cc [^]
No
0055223: duplicated data fetched as part of offline user masterdata models
When requesting data for offline user master data model, lots of duplicated records are fetched. Although they are cleaned up while inserting, it is suboptimal.

1. Log in POS and refresh master data to ensure there is no additional records to fetch
2. Log in BO
3. Check Group - Admin role can approve at least one user action
4. Open User window and select Demouser
5. Update some field (ie. email)
6. Log in POS
7. Refresh masterdata and check the request for OfflineUser model in the network panel
    EXPECTED: 1 row should have been fetched as only one user was modified
    GOT: 28 identical rows, all with the same information for demouser

Inner joins in the queries should be replaced by exists clauses.
Performance
caused by feature request 0048528 closed AugustoMauch Offline Approval Improvements 
Issue History
2024-04-17 14:35alostaleNew Issue
2024-04-17 14:35alostaleAssigned To => Triage Platform Base
2024-04-17 14:35alostaleTriggers an Emergency Pack => No
2024-04-17 14:37alostaleRegression date => 2022-03-10
2024-04-17 14:37alostaleRegression introduced in release => 22Q3
2024-04-17 14:37alostaleRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/2f9085eac2a9c579fbf9fdaa0958fbbca06ad4cc [^]
2024-04-17 14:38alostaleTag Attached: Performance
2024-04-17 14:38alostaleRelationship addedcaused by 0048528
2024-04-17 14:38alostaleRegression level => Production - Confirmed Stable
2024-04-19 09:47AugustoMauchAssigned ToTriage Platform Base => cberner
2024-05-07 16:24lorenzofidalgoTarget Version => 24Q2
2024-05-23 10:43hgbotNote Added: 0165009
2024-05-23 17:46AugustoMauchStatusnew => scheduled
2024-06-03 17:17hgbotNote Added: 0165488
2024-06-03 17:17hgbotResolutionopen => fixed
2024-06-03 17:17hgbotStatusscheduled => closed
2024-06-03 17:17hgbotFixed in Version => 24Q3
2024-06-03 17:17hgbotNote Added: 0165489

Notes
(0165009)
hgbot   
2024-05-23 10:43   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1496 [^]
(0165488)
hgbot   
2024-06-03 17:17   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1496 [^]
(0165489)
hgbot   
2024-06-03 17:17   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 2dfd17467cdfd2c9215945a389cde1285668f331
Author: adrian.blasco <adrian.blasco@openbravo.com>
Date: 03-06-2024 17:16:28
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/2dfd17467cdfd2c9215945a389cde1285668f331 [^]

Fixes ISSUE-55223: In order to provide unique results, inner Joins have been replaced by exists clauses in hql query

---
M src/org/openbravo/core2/master/OfflineUser.java
---