Openbravo Issue Tracking System - POS2
View Issue Details
0046892POS2Restaurantspublic2021-05-28 15:432021-06-14 18:37
timothee_catteeuw 
agonzalez 
normalmajorsometimes
closedfixed 
5
 
 
No
0046892: JIRA 1903 - Keymap takes long time to be displayed [performance]
The display of keymap has to be optimize because, it is necessary to wait for displaying at least 1 sec once I change the category.
When I test on Livebuild, it seems to be quicker but there are no keymaps with several page for example (so less articles)
I have done a video if needed but it is just needed to follow the described steps in order to reproduce.
Go to NewWebPOS
Start a new ticket
Try to display several keymap by selecting several categories (cf. screenshot)
Performance
depends on backport 0046897TAP closed Retail JIRA 1903 - Keymap takes long time to be displayed [performance] 
png KEYMAP.png (80,277) 2021-05-28 15:43
https://issues.openbravo.com/file_download.php?file_id=15847&type=bug
png
Issue History
2021-05-28 15:43timothee_catteeuwNew Issue
2021-05-28 15:43timothee_catteeuwAssigned To => Retail
2021-05-28 15:43timothee_catteeuwFile Added: KEYMAP.png
2021-05-28 15:43timothee_catteeuwTriggers an Emergency Pack => No
2021-05-31 09:05guilleaerResolution time => 1623362400
2021-05-31 09:05guilleaerStatusnew => acknowledged
2021-05-31 09:05guilleaerStatusacknowledged => scheduled
2021-05-31 09:05guilleaerStatusscheduled => acknowledged
2021-05-31 10:27AugustoMauchAssigned ToRetail => AugustoMauch
2021-05-31 10:27AugustoMauchStatusacknowledged => scheduled
2021-06-04 13:15dmiguelezSummaryJIRA 1903 - Display keymap is really long => JIRA 1903 - Keymap takes long time to be displayed
2021-06-04 13:15dmiguelezSummaryJIRA 1903 - Keymap takes long time to be displayed => JIRA 1903 - Keymap takes long time to be displayed [performance]
2021-06-04 13:16dmiguelezTag Attached: Performance
2021-06-11 09:07AugustoMauchAssigned ToAugustoMauch => agonzalez
2021-06-11 16:02hgbotNote Added: 0129415
2021-06-11 19:43hgbotNote Added: 0129420
2021-06-14 18:36hgbotNote Added: 0129487
2021-06-14 18:36hgbotNote Added: 0129488
2021-06-14 18:37hgbotResolutionopen => fixed
2021-06-14 18:37hgbotStatusscheduled => closed
2021-06-14 18:37hgbotNote Added: 0129489
2021-06-14 18:37hgbotNote Added: 0129490

Notes
(0129415)
hgbot   
2021-06-11 16:02   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/556 [^]
(0129420)
hgbot   
2021-06-11 19:43   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/547 [^]
(0129487)
hgbot   
2021-06-14 18:36   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 237c2e03034562708d625f341b6885dd7c86d656
Author: Angel Eduardo <angel.gonzalez@smfconsulting.com>
Date: 2021-06-14T18:33:53+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/237c2e03034562708d625f341b6885dd7c86d656 [^]

Related with ISSUE-46892: Uses an alternator to always refresh the usePagination hook so it won't skip the update phase when setting a new reference

---
M web-jspack/org.openbravo.core2/src/components/BaseKeymap/BaseKeymap.jsx
M web-jspack/org.openbravo.core2/src/components/BaseKeymap/hooks/usePagination.js
---
(0129488)
hgbot   
2021-06-14 18:36   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/556 [^]
(0129489)
hgbot   
2021-06-14 18:37   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: de848832bce5e5ed57d9700a81e75fb5cfd6690f
Author: Angel Eduardo <angel.gonzalez@smfconsulting.com>
Date: 2021-06-14T18:37:19+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/de848832bce5e5ed57d9700a81e75fb5cfd6690f [^]

Fixes ISSUE-46892: Loads the keymap product information in the keymap configuration generation instead of loading it every time the selected keymap category is changed.

---
A web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/__test__/mockAssortmentProducts.js
M web-jspack/org.openbravo.pos2/src/components/ProductKeymap/GetProductKeymapInfo.js
M web-jspack/org.openbravo.pos2/src/components/ProductKeymap/ProductKeymap.jsx
M web-jspack/org.openbravo.pos2/src/components/ProductKeymap/__mock__/ProductKeymap.mock1.json
M web-jspack/org.openbravo.pos2/src/components/ProductKeymap/__mock__/ProductKeymapWithPrices.mock.json
M web-jspack/org.openbravo.pos2/src/components/ProductKeymap/__test__/ProductKeymap.test.jsx
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/__test__/generateKeymapConfig.test.js
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/__test__/mockAutomaticButtonGenerationConfigResult.js
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/__test__/mockDefaultForTwoResolutionsConfigResult.js
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/__test__/mockFullAssortmentConfigResult.js
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/__test__/mockKeymapDefinesPositionsAndLayoutForOnlyOneResolutionKeymapConfigResult.js
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/__test__/mockOneResolutionConfigResult.js
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/__test__/mockOnlyProductCategoryWithExclusionConfigResult.js
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/__test__/mockOnlyProductCategoryWithManualProductConfigResult.js
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/__test__/mockTwoResolutionConfigResult.js
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/__test__/mockWithDefinedSchemaPriceListConfigResult.js
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/__test__/mockWithOnlyProductCategoryConfigResult.js
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/generateKeymapConfig.js
M web-jspack/org.openbravo.pos2/src/configurations/keymapConfiguration/loadKeymapConfigurations.js
---
(0129490)
hgbot   
2021-06-14 18:37   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/547 [^]