Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0033618 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2016-08-03 15:22 | 2016-08-30 10:50 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 3.0PR16Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 12e245f1bfea | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | alostale | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0033618: Unneeded datasource requests after creating a new record in grid view having summary functions | |||||||
Description | Having a grid with a summary function, if we create a new record in grid view, multiple (not needed) datasource requests are fired. | |||||||
Steps To Reproduce | 1) Go to the [Unit of Measure] window 2) Add a summary field in any column 3) Create a new record in grid view and check that multiple datasource requests are fired | |||||||
Tags | Performance | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||||||||||||||||||||||||||||||
|
Notes | |
(0088821) hgbot (developer) 2016-08-04 15:27 |
Repository: erp/devel/pi Changeset: 12e245f1bfeaa36650801918365d0f04cb70be2c Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Thu Aug 04 15:18:01 2016 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/12e245f1bfeaa36650801918365d0f04cb70be2c [^] fixes issue 33618: Unneeded datasource requests having summary functions After editing a record in grid view, having summary functions, several DS request were fired. This was happening when processing the FIC return: setting the values for each field was causing a datasource call for refreshing the summaries, because Smartclient detected that the grid summary record was displayed. This wrong behavior also affected when editing manually the fields in grid view. To fix this problem, if the summary record is displayed, we prevent those calls by setting the showGridSummary property of the grid to false, therefore Smartclient will not fire those unneeded requests. And once the edit function has finished we restore the value. Together with this, there were some additional requests being fired when saving/updating a record in grid view. This was happening because the getSummaryRow() was being used to refresh the summaries but at the same time, the dataChanged function of the grid was indeed doing the same. To solve this second problem, we just invoke getSummaryRow() when saving a new record in grid view, because this is the only case where the dataChanged function was not firing the request for refreshing the summaries. --- M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js --- |
(0089039) hudsonbot (developer) 2016-08-11 18:40 |
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/edaa05b1fb18 [^] Maturity status: Test |
(0089538) alostale (manager) 2016-08-30 10:50 |
code reviewed Tested after new record creation in grid a single request to calculate summary functions is performed and the values get properly updated. |
Issue History | |||
Date Modified | Username | Field | Change |
2016-08-03 15:22 | caristu | New Issue | |
2016-08-03 15:22 | caristu | Assigned To | => platform |
2016-08-03 15:22 | caristu | Modules | => Core |
2016-08-03 15:22 | caristu | Triggers an Emergency Pack | => No |
2016-08-03 15:22 | caristu | Tag Attached: Performance | |
2016-08-03 15:22 | caristu | Relationship added | related to 0033588 |
2016-08-04 09:21 | caristu | Assigned To | platform => caristu |
2016-08-04 09:22 | caristu | Status | new => scheduled |
2016-08-04 14:55 | caristu | Relationship added | related to 0025621 |
2016-08-04 14:55 | caristu | Relationship added | related to 0026363 |
2016-08-04 15:27 | hgbot | Checkin | |
2016-08-04 15:27 | hgbot | Note Added: 0088821 | |
2016-08-04 15:27 | hgbot | Status | scheduled => resolved |
2016-08-04 15:27 | hgbot | Resolution | open => fixed |
2016-08-04 15:27 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/12e245f1bfeaa36650801918365d0f04cb70be2c [^] |
2016-08-04 15:27 | caristu | Review Assigned To | => alostale |
2016-08-04 15:30 | caristu | Relationship added | related to 0033626 |
2016-08-10 10:28 | caristu | Relationship added | related to 0033669 |
2016-08-11 18:40 | hudsonbot | Checkin | |
2016-08-11 18:40 | hudsonbot | Note Added: 0089039 | |
2016-08-30 10:50 | alostale | Note Added: 0089538 | |
2016-08-30 10:50 | alostale | Status | resolved => closed |
2016-08-30 10:50 | alostale | Fixed in Version | => 3.0PR16Q4 |
Copyright © 2000 - 2009 MantisBT Group |