Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0051036 | POS2 | Core | public | 2022-11-30 09:35 | 2022-12-19 08:57 |
|
Reporter | mtaal | |
Assigned To | mtaal | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 23Q1 | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0051036: RM-2721: master data cache contains less data than in indexeddb causing missing data in functionality using the cache |
Description | The master data cache contains less data then the database. Some functionality will use the cache and then not find specific data causing the logic to fail. This can happen with any master data but the specific case for which this happened was product data (see RM-) |
Steps To Reproduce | To reproduce:
goto the pos2 login page (do not login in).
change a product in the backoffice (so it will be loaded by the master data refresh)
find this line in pos2.js (to always force refresh):
} else if (isNeededIncrementalRefreshOnLogin()) {
change to:
} else if (true || isNeededIncrementalRefreshOnLogin()) {
set a breakpoint in the loginInitActions before the refresh master data
during login when it stops do this:
OB.App.MasterdataModels.Product.searchCache = []
after the call to loadMasterDataCache in the login init actions js file check that the OB.App.MasterdataModels.Product.searchCache array contains only the product changed in the backoffice but not any other products in the database |
Proposed Solution | Load the master data cache before the refresh of the master data |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-11-30 09:35 | mtaal | New Issue | |
2022-11-30 09:35 | mtaal | Assigned To | => mtaal |
2022-11-30 09:35 | mtaal | OBNetwork customer | => No |
2022-11-30 09:35 | mtaal | Triggers an Emergency Pack | => No |
2022-11-30 09:38 | hgbot | Merge Request Status | => open |
2022-11-30 09:38 | hgbot | Note Added: 0144238 | |
2022-12-01 11:46 | guilleaer | Status | new => scheduled |
2022-12-15 23:02 | hgbot | Note Added: 0144750 | |
2022-12-16 14:16 | hgbot | Merge Request Status | open => approved |
2022-12-19 08:46 | hgbot | Note Added: 0144807 | |
2022-12-19 08:46 | hgbot | Resolution | open => fixed |
2022-12-19 08:46 | hgbot | Status | scheduled => closed |
2022-12-19 08:46 | hgbot | Fixed in Version | => RR23Q1 |
2022-12-19 08:46 | hgbot | Note Added: 0144808 | |
2022-12-19 08:57 | hgbot | Fixed in Version | RR23Q1 => 23Q1 |
2022-12-19 08:57 | hgbot | Note Added: 0144809 | |
2022-12-19 08:57 | hgbot | Note Added: 0144810 | |
Notes |
|
(0144238)
|
hgbot
|
2022-11-30 09:38
|
|
|
|
(0144750)
|
hgbot
|
2022-12-15 23:02
|
|
|
|
(0144807)
|
hgbot
|
2022-12-19 08:46
|
|
|
|
(0144808)
|
hgbot
|
2022-12-19 08:46
|
|
|
|
(0144809)
|
hgbot
|
2022-12-19 08:57
|
|
|
|
(0144810)
|
hgbot
|
2022-12-19 08:57
|
|
|