Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0033853 | Openbravo ERP | A. Platform | public | 2016-08-30 10:58 | 2016-12-23 08:15 |
|
Reporter | alostale | |
Assigned To | NaroaIriarte | |
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q1 | |
Merge Request Status | |
Review Assigned To | alostale |
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 | 0033853: summary functions: extra DS requests when relocating grid column |
Description | If a grid has at least a column with a summary function, when any column is relocated to another position, 3 DS requests to calculate summary function values are triggered. |
Steps To Reproduce | 1. Open Sales Order window
2. Add a summary function on any column
3. Drag any column to a different position
-> Check 3 DS requests are executed |
Proposed Solution | |
Additional Information | |
Tags | Performance |
Relationships | related to | defect | 0033588 | | closed | caristu | Datasource Request done having a summary function with lazy filtering enabled | related to | defect | 0033626 | | closed | NaroaIriarte | Unneeded datasource request after cancelling a newly created record in grid view having summary functions |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-08-30 10:58 | alostale | New Issue | |
2016-08-30 10:58 | alostale | Assigned To | => platform |
2016-08-30 10:58 | alostale | Modules | => Core |
2016-08-30 10:58 | alostale | Triggers an Emergency Pack | => No |
2016-08-30 10:58 | alostale | Tag Attached: Performance | |
2016-08-30 10:58 | alostale | Relationship added | related to 0033588 |
2016-08-30 10:59 | alostale | Status | new => acknowledged |
2016-08-30 14:00 | caristu | Relationship added | related to 0033626 |
2016-12-01 13:20 | alostale | Priority | urgent => normal |
2016-12-01 14:05 | alostale | Priority | normal => urgent |
2016-12-01 14:05 | alostale | Priority | urgent => high |
2016-12-02 09:00 | NaroaIriarte | Assigned To | platform => NaroaIriarte |
2016-12-02 09:32 | NaroaIriarte | Status | acknowledged => scheduled |
2016-12-14 12:52 | NaroaIriarte | Review Assigned To | => alostale |
2016-12-14 12:53 | hgbot | Checkin | |
2016-12-14 12:53 | hgbot | Note Added: 0092349 | |
2016-12-14 12:53 | hgbot | Status | scheduled => resolved |
2016-12-14 12:53 | hgbot | Resolution | open => fixed |
2016-12-14 12:53 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/bb721685f50aa502095c9b8be09f66595b8d9106 [^] |
2016-12-16 08:38 | alostale | Note Added: 0092431 | |
2016-12-16 08:38 | alostale | Status | resolved => new |
2016-12-16 08:38 | alostale | Resolution | fixed => open |
2016-12-16 08:48 | alostale | Note Edited: 0092431 | bug_revision_view_page.php?bugnote_id=0092431#r14016 |
2016-12-16 10:43 | hgbot | Checkin | |
2016-12-16 10:43 | hgbot | Note Added: 0092467 | |
2016-12-16 10:54 | NaroaIriarte | Status | new => scheduled |
2016-12-16 10:54 | NaroaIriarte | Status | scheduled => resolved |
2016-12-16 10:54 | NaroaIriarte | Resolution | open => fixed |
2016-12-16 18:39 | hudsonbot | Checkin | |
2016-12-16 18:39 | hudsonbot | Note Added: 0092711 | |
2016-12-16 18:39 | hudsonbot | Checkin | |
2016-12-16 18:39 | hudsonbot | Note Added: 0092725 | |
2016-12-23 08:15 | alostale | Note Added: 0092955 | |
2016-12-23 08:15 | alostale | Status | resolved => closed |
2016-12-23 08:15 | alostale | Fixed in Version | => 3.0PR17Q1 |
Notes |
|
(0092349)
|
hgbot
|
2016-12-14 12:53
|
|
Repository: erp/devel/pi
Changeset: bb721685f50aa502095c9b8be09f66595b8d9106
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Mon Dec 12 16:10:29 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bb721685f50aa502095c9b8be09f66595b8d9106 [^]
Fixed issue 33853: There were too much DS request
When a column with a summary function was set, if any of the grid columns was reordered, there were three DS requests triggered. To fix the problem two different things have been done. The first, in ob-view-grid.js, consists on setting the showGridSummary property to false before the call to the function "reorderField" of the Super- This avoids one flow of smartclient which was, at the end, triggering two DS requests.
The second approach is also in ob-view-grid, but also in ob-grid. The problem was that when the ob-grid.getSummaryRow function was invoked, the return statement was calling the "getSummaryRow" function of the Super. There, once again a DS request was triggered. To fix this, a new object has been created. This object contains three properties. One of them is a property which is true if the columns have been reordered.
Now, in the ob-grid.getSummaryRow, if that property is true and if there is a summary function, the summary row is returned.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
|
|
|
(0092431)
|
alostale
|
2016-12-16 08:38
(edited on: 2016-12-16 08:48) |
|
|
|
(0092467)
|
hgbot
|
2016-12-16 10:43
|
|
Repository: erp/devel/pi
Changeset: a5d7d303b6c2b96bee3f652c918d83909bde3d92
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Fri Dec 16 10:33:06 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a5d7d303b6c2b96bee3f652c918d83909bde3d92 [^]
Related to issue 33853: Code review improvements
In js variables must be declared at the top of the function.
Also there were problems when reordering if there was not a summary function declared. This has been prevented with an if statement. A new function has been created, this, handles the behavior of the summary functions' grid when it is necessary.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
|
|
|
|
|
|
|
|
|
|
code reviewed
tested:
1. no extra request when relocating columns having summary functions in grid
2. working fine when relocating columns without summary functions |
|