Openbravo Issue Tracking System - POS2 | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0049452 | POS2 | POS | public | 2022-05-31 16:23 | 2022-06-02 10:46 | |||||||
Reporter | AugustoMauch | |||||||||||
Assigned To | jarmendariz | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0049452: Ripple effect in product buttons have a bad performance impact | |||||||||||
Description | We noticed than the performance of the addProduct action is shighly impacted by the ripple effect defined for BaseButtons [1]. We took some measurements and for instance adding a product that has product modifiers takes ~1.1 seconds if the ripple effect is enabled, and ~0.3 seconds if the effect is removed from the scss file. Also see the two attached images to notive the extra computation done when the effect is enabled. [1] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blob/master/web-jspack/org.openbravo.core2/src/components/BaseButton/BaseButton.scss#L72 [^] | |||||||||||
Steps To Reproduce | Add a product that has modifiers (i.e. Cheeseburguer) with, and without the ripple effect. You will notice that if the effect is enabled the product configuration window will take much longer to open. Also if you run chrome debugger's profile while you add the products, you will notice the extra computation done (see attached files). | |||||||||||
Proposed Solution | Disable the ripple effect for the ProductButtons. It can remain in other buttons ebceuase their performance does not seem to be impacted | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | withEffect.png (16,368) 2022-05-31 16:24 https://issues.openbravo.com/file_download.php?file_id=17097&type=bug withoutEffect.png (16,654) 2022-05-31 16:24 https://issues.openbravo.com/file_download.php?file_id=17098&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2022-05-31 16:23 | AugustoMauch | New Issue | ||||||||||
2022-05-31 16:23 | AugustoMauch | Assigned To | => jarmendariz | |||||||||
2022-05-31 16:23 | AugustoMauch | Triggers an Emergency Pack | => No | |||||||||
2022-05-31 16:24 | AugustoMauch | File Added: withEffect.png | ||||||||||
2022-05-31 16:24 | AugustoMauch | File Added: withoutEffect.png | ||||||||||
2022-05-31 16:26 | AugustoMauch | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24203#r24203 | |||||||||
2022-05-31 16:26 | AugustoMauch | Status | new => scheduled | |||||||||
2022-06-01 11:04 | hgbot | Note Added: 0137930 | ||||||||||
2022-06-02 10:45 | hgbot | Resolution | open => fixed | |||||||||
2022-06-02 10:45 | hgbot | Status | scheduled => closed | |||||||||
2022-06-02 10:45 | hgbot | Note Added: 0137964 | ||||||||||
2022-06-02 10:46 | hgbot | Note Added: 0137965 | ||||||||||
2022-06-02 17:18 | AugustoMauch | Relationship added | has duplicate 0049402 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|