Openbravo Issue Tracking System - Openbravo ERP  | ||||||||||||||||||||||||||
| View Issue Details | ||||||||||||||||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
| 0033706 | Openbravo ERP | A. Platform | public | 2016-08-12 17:36 | 2016-08-24 22:47 | |||||||||||||||||||||
| 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 | 3.0PR16Q4 | ||||||||||||||||||||||||
| Merge Request Status | ||||||||||||||||||||||||||
| Review Assigned To | caristu | |||||||||||||||||||||||||
| 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 | 0033706: SelectorDataSourceFilter does accidental extra queries in 'Add Payment' flow of Sales Orders | |||||||||||||||||||||||||
| Description | This class does some accidental extra queries by calling .list() several time for the same OBCriteria instance. OBCriteria<Parameter> qParam = OBDal.getInstance().createCriteria(Parameter.class); qParam.add(Restrictions.eq(Parameter.PROPERTY_ID, parameters.get(SelectorConstants.DS_REQUEST_SELECTOR_FIELD_ID))); Parameter param = qParam.list().get(0); Validation validation = qParam.list().get(0).getValidation(); if (validation != null) { if (validation.getType().equals("HQL_JS")) { String validationCode = qParam.list().get(0).getValidation().getValidationCode(); Also that code does read parameter via its primary key. So query could instead be just a OBDal.getInstance().get call  | |||||||||||||||||||||||||
| Steps To Reproduce | 1.) Create sales order with 1 line and book it. 2.) Open 'Add Payment' via toolbar button 3.) Review extra queries to obuiapp_parameter done in step 2  | |||||||||||||||||||||||||
| Proposed Solution | ||||||||||||||||||||||||||
| Additional Information | ||||||||||||||||||||||||||
| Tags | Performance | |||||||||||||||||||||||||
| Relationships | 
  | |||||||||||||||||||||||||
| Attached Files | ||||||||||||||||||||||||||
| Issue History | ||||||||||||||||||||||||||
| Date Modified | Username | Field | Change | |||||||||||||||||||||||
| 2016-08-12 17:36 | shuehner | New Issue | ||||||||||||||||||||||||
| 2016-08-12 17:36 | shuehner | Assigned To | => platform | |||||||||||||||||||||||
| 2016-08-12 17:36 | shuehner | OBNetwork customer | => No | |||||||||||||||||||||||
| 2016-08-12 17:36 | shuehner | Modules | => Core | |||||||||||||||||||||||
| 2016-08-12 17:36 | shuehner | Triggers an Emergency Pack | => No | |||||||||||||||||||||||
| 2016-08-12 17:36 | shuehner | Relationship added | related to 0033704 | |||||||||||||||||||||||
| 2016-08-12 17:38 | shuehner | Description Updated | bug_revision_view_page.php?rev_id=12832#r12832 | |||||||||||||||||||||||
| 2016-08-12 18:09 | shuehner | Tag Attached: Performance | ||||||||||||||||||||||||
| 2016-08-12 18:09 | shuehner | Assigned To | platform => shuehner | |||||||||||||||||||||||
| 2016-08-23 14:33 | hgbot | Checkin | ||||||||||||||||||||||||
| 2016-08-23 14:33 | hgbot | Note Added: 0089304 | ||||||||||||||||||||||||
| 2016-08-23 14:33 | hgbot | Status | new => resolved | |||||||||||||||||||||||
| 2016-08-23 14:33 | hgbot | Resolution | open => fixed | |||||||||||||||||||||||
| 2016-08-23 14:33 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/741a356c2150eeefa997b0dbbef653349330cd4f [^] | |||||||||||||||||||||||
| 2016-08-23 14:34 | shuehner | Review Assigned To | => caristu | |||||||||||||||||||||||
| 2016-08-23 14:44 | shuehner | Relationship added | related to 0033767 | |||||||||||||||||||||||
| 2016-08-24 15:50 | hgbot | Checkin | ||||||||||||||||||||||||
| 2016-08-24 15:50 | hgbot | Note Added: 0089358 | ||||||||||||||||||||||||
| 2016-08-24 15:51 | caristu | Note Added: 0089359 | ||||||||||||||||||||||||
| 2016-08-24 15:51 | caristu | Status | resolved => closed | |||||||||||||||||||||||
| 2016-08-24 15:51 | caristu | Fixed in Version | => 3.0PR16Q4 | |||||||||||||||||||||||
| 2016-08-24 22:47 | hudsonbot | Checkin | ||||||||||||||||||||||||
| 2016-08-24 22:47 | hudsonbot | Note Added: 0089369 | ||||||||||||||||||||||||
| 2017-09-19 18:49 | markmm82 | Relationship added | related to 0036898 | |||||||||||||||||||||||
| Notes | |||||
| 
		 | 
|||||
		
  | 
	
		
  | 
||||
| 
		 | 
|||||
		
  | 
	
		
  | 
||||
| 
		 | 
|||||
		
  | 
	
		
  | 
||||
| 
		 | 
|||||
		
  | 
	
		
  | 
||||