Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037411
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformtrivialhave not tried2017-11-28 16:342018-01-03 12:39
ReportershuehnerView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version3.0PR18Q1
StatusclosedFix in branchFixed in SCM revision94f270f9358c
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0037411: TreeTablesEventHandler.getDataSource does useless ad_table read

Description  private DataSourceService getDataSource(String tableId) {
    Table table = OBDal.getInstance().get(Table.class, tableId);
    OBCriteria<TableTree> obq = OBDal.getInstance().createCriteria(TableTree.class);
    obq.add(Restrictions.eq(TableTree.PROPERTY_TABLE, table));

That code is uselessly reading from ad_table and should use a getProxy instead.

Steps To Reproduce-
TagsPerformance
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0100810)
hgbot (developer)
2017-11-29 12:16

Repository: erp/devel/pi
Changeset: 94f270f9358c66b98a1b103ba4789d1212d4a6d5
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Nov 29 12:15:58 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/94f270f9358c66b98a1b103ba4789d1212d4a6d5 [^]

fixed bug 37411: useless ad_table query in TreeTablesEventHandler.getDataSource

  Use proxy as table value is never used.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/event/TreeTablesEventHandler.java
---
(0101051)
caristu (developer)
2017-12-15 09:11

Code reviewed + tested OK.
(0101496)
hudsonbot (developer)
2018-01-03 12:39

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c81e0d3cbab5 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2017-11-28 16:34 shuehner New Issue
2017-11-28 16:34 shuehner Assigned To => platform
2017-11-28 16:34 shuehner Modules => Core
2017-11-28 16:34 shuehner Triggers an Emergency Pack => No
2017-11-28 16:34 shuehner Tag Attached: Performance
2017-11-29 12:16 alostale Assigned To platform => alostale
2017-11-29 12:16 hgbot Checkin
2017-11-29 12:16 hgbot Note Added: 0100810
2017-11-29 12:16 hgbot Status new => resolved
2017-11-29 12:16 hgbot Resolution open => fixed
2017-11-29 12:16 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/94f270f9358c66b98a1b103ba4789d1212d4a6d5 [^]
2017-11-29 12:16 alostale Review Assigned To => caristu
2017-12-15 09:11 caristu Note Added: 0101051
2017-12-15 09:11 caristu Status resolved => closed
2017-12-15 09:11 caristu Fixed in Version => 3.0PR18Q1
2018-01-03 12:39 hudsonbot Checkin
2018-01-03 12:39 hudsonbot Note Added: 0101496


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker