Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0046178 | Openbravo ERP | I. Performance | public | 2021-03-30 07:31 | 2021-04-06 14:26 |
|
Reporter | jetxarri | |
Assigned To | markmm82 | |
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | PR20Q3.4 | |
Target Version | | Fixed in Version | PR21Q3 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0046178: Avoid trying to find the general ledger configuration if it is not configured in any organization |
Description | When the ERP is being used with Web POS the accounting of the system is not configured, however in each login the system tries to find general ledger configuration to set in the session |
Steps To Reproduce | Do a login |
Proposed Solution | Attached file |
Additional Information | |
Tags | NOR |
Relationships | related to | defect | 0046177 | | closed | jetxarri | Avoid ordering preferences by id because it only adds time to the statement execution | related to | defect | 0046217 | | new | Triage Platform Base | Organization entity and OBCriteria.setFilterOnReadableOrganization(true) won't work | blocks | defect | 0046176 | | closed | jetxarri | Create an index in ad_preference table to execute read statements faster |
|
Attached Files | patch.diff (3,881) 2021-03-30 07:31 https://issues.openbravo.com/file_download.php?file_id=15480&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2021-03-30 07:31 | jetxarri | New Issue | |
2021-03-30 07:31 | jetxarri | Assigned To | => platform |
2021-03-30 07:31 | jetxarri | File Added: patch.diff | |
2021-03-30 07:31 | jetxarri | Modules | => Core |
2021-03-30 07:31 | jetxarri | Triggers an Emergency Pack | => No |
2021-03-30 17:31 | rafaroda | Tag Attached: NOR | |
2021-03-30 17:32 | rafaroda | Resolution time | => 1618264800 |
2021-03-30 17:33 | rafaroda | Relationship added | related to 0046177 |
2021-03-30 17:33 | rafaroda | Relationship added | blocks 0046176 |
2021-03-31 10:35 | alostale | Assigned To | platform => Triage Finance |
2021-03-31 12:39 | rafaroda | Severity | minor => major |
2021-04-01 09:09 | vmromanos | Assigned To | Triage Finance => markmm82 |
2021-04-01 18:30 | markmm82 | Status | new => scheduled |
2021-04-05 20:03 | hgbot | Note Added: 0127091 | |
2021-04-06 14:24 | vmromanos | Relationship added | related to 0046217 |
2021-04-06 14:26 | hgbot | Note Added: 0127109 | |
2021-04-06 14:26 | hgbot | Resolution | open => fixed |
2021-04-06 14:26 | hgbot | Status | scheduled => closed |
2021-04-06 14:26 | hgbot | Fixed in Version | => PR21Q3 |
2021-04-06 14:26 | hgbot | Note Added: 0127110 | |
2021-04-06 14:26 | hgbot | Note Added: 0127111 | |
Notes |
|
(0127091)
|
hgbot
|
2021-04-05 20:03
|
|
|
|
(0127109)
|
hgbot
|
2021-04-06 14:26
|
|
|
|
(0127110)
|
hgbot
|
2021-04-06 14:26
|
|
|
|
(0127111)
|
hgbot
|
2021-04-06 14:26
|
|
Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 674e5f969d4d69e340613312e24fcabab1c79a7e
Author: Víctor Martínez Romanos <victor.martinez@openbravo.com>
Date: 2021-04-06T12:20:10+00:00
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/674e5f969d4d69e340613312e24fcabab1c79a7e [^]
Related to ISSUE-46178: Code review improvements
Removed setFilterOnReadableOrganization(false) because it has no sense. Note that
just after this, the flow gets the list of editable organizations using:
Utility.getContext(conn, vars, "#User_Org", "LoginHandler")
and it iterates over them (and their parent tree) to get the ledger configuration.
The ledger configuration must be in a readable organization (either in an editable
organization or in a parent editable/readable organization), so the filter by
readable organization should be in.
Note that ideally we should filter by the editable organizations and their parents,
which is what later on is going to be used, however the purpose of this fix is to
avoid performance penalty, so having a fast (although inaccurate query in some corner
cases) is a good approach.
Apart from that the method has been renamed to be more clear.
---
M src/org/openbravo/base/secureApp/LoginUtils.java
---
|
|