Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0042356 | Retail Modules | Web POS | public | 2019-11-20 22:59 | 2019-11-29 22:08 |
|
Reporter | mauricio_peccorini | |
Assigned To | ranjith_qualiantech_com | |
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR20Q1 | |
Merge Request Status | |
Review Assigned To | guilleaer |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0042356: Messages, translations and lists for all modules are loaded from the database every time WebPOS is accessed or refreshed |
Description | As part of the initial loading steps of WebPOS there are some pre-render actions that include loading all the messages, translations and lists. This information is not cached so the same results are loaded from the database many times. |
Steps To Reproduce | - Add a breakpoint in org.openbravo.mobile.core.login.LabelsComponent in functions getLabels() in line 'for (Object[] qryTrlObject : qryLists.list()) {'
- Load the WebPOS login screen (the breakpoint is hit)
- Refresh the page (the breakpoint is hit again)
- Load the WebPOS login screen from other computer (the breakpoint is hit again) |
Proposed Solution | Store the results of getLabels and getLists in a map (ConcurrentHashMap) keyed by the calling parameter moduleId and languageId. The languageId can be null so it should be calculated before getting/putting values in the map. The result from getLabels includes the userId, so the JSONObject without that value should be stored in the map and cloned on each call so the userId can be put into the returned JSONObject.
See the attached diff |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | design defect | 0045562 | | new | Retail | Messages, translations and lists for all modules are loaded from the database every time WebPOS is accessed or refreshed in HA | related to | design defect | 0053470 | | new | Triage Platform Base | Bad translation between the 2 nodes | causes | defect | 0044643 | | closed | ranjith_qualiantech_com | LabelComponent languageSk is not updated with language name | causes | defect | 0044670 | | closed | Retail | The language search key is set to the wrong value. |
|
Attached Files | LabelsComponent.diff (8,332) 2019-11-21 12:13 https://issues.openbravo.com/file_download.php?file_id=13571&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2019-11-20 22:59 | mauricio_peccorini | New Issue | |
2019-11-20 22:59 | mauricio_peccorini | Assigned To | => Retail |
2019-11-20 22:59 | mauricio_peccorini | File Added: LabelsComponent.diff | |
2019-11-20 22:59 | mauricio_peccorini | Triggers an Emergency Pack | => No |
2019-11-20 23:16 | mauricio_peccorini | File Deleted: LabelsComponent.diff | |
2019-11-20 23:16 | mauricio_peccorini | File Added: LabelsComponent.diff | |
2019-11-21 12:12 | mauricio_peccorini | File Deleted: LabelsComponent.diff | |
2019-11-21 12:13 | mauricio_peccorini | File Added: LabelsComponent.diff | |
2019-11-21 12:21 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2019-11-21 12:21 | ranjith_qualiantech_com | Status | new => scheduled |
2019-11-25 07:12 | hgbot | Checkin | |
2019-11-25 07:12 | hgbot | Note Added: 0115783 | |
2019-11-25 07:12 | hgbot | Status | scheduled => resolved |
2019-11-25 07:12 | hgbot | Resolution | open => fixed |
2019-11-25 07:12 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c5f12708ce47a14f3d8fba7dd2b1ff380fc18deb [^] |
2019-11-25 08:49 | hgbot | Checkin | |
2019-11-25 08:49 | hgbot | Note Added: 0115787 | |
2019-11-29 13:48 | hgbot | Checkin | |
2019-11-29 13:48 | hgbot | Note Added: 0115985 | |
2019-11-29 22:08 | guilleaer | Review Assigned To | => guilleaer |
2019-11-29 22:08 | guilleaer | Status | resolved => closed |
2019-11-29 22:08 | guilleaer | Fixed in Version | => RR20Q1 |
2020-07-21 10:08 | ranjith_qualiantech_com | Relationship added | causes 0044643 |
2020-07-22 18:04 | Leyre | Relationship added | causes 0044670 |
2020-12-14 09:30 | salvador_campanella | Relationship added | related to 0045562 |
2024-03-18 13:17 | alostale | Relationship added | related to 0053470 |