Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0050186 | Openbravo ERP | A. Platform | public | 2022-09-07 11:10 | 2022-09-27 07:58 |
|
Reporter | shuehner | |
Assigned To | shuehner | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | PR22Q4 | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0050186: junit test DataSourceSecuritytest is quite slow because of repeated changeProfile calls |
Description | This junit test does a single login and then runs several tests for various roles.
Before each individual (parametrized) test it calls changeProfile which essentially calls the UserInfoWidgetActionHandler in the backend.
Those repeated calls sum up to half of the total runtime of this test.
Skipping the call in case of not having any actual change in role removes most of the overhead. |
Steps To Reproduce | Check time spent in changeProfile call compared to per-test call. |
Proposed Solution | Save last values (role,org,lang,warehouse) inside the call and skip switching in case all parameters are the same last time |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-09-07 11:10 | shuehner | New Issue | |
2022-09-07 11:10 | shuehner | Assigned To | => shuehner |
2022-09-07 11:10 | shuehner | OBNetwork customer | => No |
2022-09-07 11:10 | shuehner | Modules | => Core |
2022-09-07 11:10 | shuehner | Triggers an Emergency Pack | => No |
2022-09-07 11:13 | hgbot | Merge Request Status | => open |
2022-09-07 11:13 | hgbot | Note Added: 0140784 | |
2022-09-27 07:58 | hgbot | Merge Request Status | open => approved |
2022-09-27 07:58 | hgbot | Resolution | open => fixed |
2022-09-27 07:58 | hgbot | Status | new => closed |
2022-09-27 07:58 | hgbot | Note Added: 0141386 | |
2022-09-27 07:58 | hgbot | Fixed in Version | => PR22Q4 |
2022-09-27 07:58 | hgbot | Note Added: 0141387 | |