Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033588Openbravo ERPA. Platformpublic2016-08-02 09:242016-08-30 10:46
caristu 
caristu 
highmajoralways
closedfixed 
5
 
3.0PR16Q4 
alostale
Core
No
0033588: Datasource Request done having a summary function with lazy filtering enabled
Several datasource requests are done having a summary function with lazy filtering enabled in different cases:

a) When opening a tab with a grid that contains a summary function.

b) After saving a new record.

c) After updating an existing record.

d) After deleting a record.

e) After selecting a summary function.

Note that this does not happen if the summary function is already included in a saved view. In this case the request for the summary function is not done until the user decides to launch the request.
Note: use an environment with an activated instance
0) As system admin, use the [Grid Configuration] window to configure the Sales Order window with lazy filtering enabled.
1) Go to the [Sales Order] window
2) Add a summary function to any column, and close the window.
3) Open the [Sales Order] window again and notice that the request to the datasource is fired.

The same happens for the rest of the actions detailed in Description.
Performance
related to defect 00311043.0PR16Q1 closed caristu [PR15Q4] [Lazy filtering] Lazy filtering feature also affects column sorting 
related to feature request 00335823.0PR17Q1 closed caristu make summary functions deactivable 
related to design defect 0033591 new Triage Platform Base Datasource request fired after displaying a new column in grid having lazy filtering enabled 
related to defect 0033618 closed caristu Unneeded datasource requests after creating a new record in grid view having summary functions 
related to defect 0033669 closed caristu Unneeded datasource request after opening a window with a summary function on a child tab 
related to defect 0033853 closed NaroaIriarte summary functions: extra DS requests when relocating grid column 
Issue History
2016-08-02 09:24caristuNew Issue
2016-08-02 09:24caristuAssigned To => platform
2016-08-02 09:24caristuModules => Core
2016-08-02 09:24caristuTriggers an Emergency Pack => No
2016-08-02 09:25caristuRelationship addedrelated to 0033582
2016-08-02 09:26alostaleTag Attached: Performance
2016-08-02 09:26alostaleSeverityminor => major
2016-08-02 09:26alostaleStatusnew => scheduled
2016-08-02 09:26alostaleAssigned Toplatform => caristu
2016-08-02 09:27caristuAssigned Tocaristu => platform
2016-08-02 09:27caristuStatusscheduled => new
2016-08-02 09:27caristuDescription Updatedbug_revision_view_page.php?rev_id=12764#r12764
2016-08-02 09:28caristuAssigned Toplatform => caristu
2016-08-02 09:32caristuDescription Updatedbug_revision_view_page.php?rev_id=12765#r12765
2016-08-02 09:51caristuRelationship addedrelated to 0033591
2016-08-02 12:29caristuStatusnew => scheduled
2016-08-03 08:30caristuSummaryDatasource Request done when adding a summary function having lazy filtering enabled => Datasource Request done having a summary function with lazy filtering enabled
2016-08-03 08:30caristuDescription Updatedbug_revision_view_page.php?rev_id=12774#r12774
2016-08-03 08:30caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=12776#r12776
2016-08-03 15:00caristuDescription Updatedbug_revision_view_page.php?rev_id=12781#r12781
2016-08-03 15:00caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=12782#r12782
2016-08-03 15:12caristuDescription Updatedbug_revision_view_page.php?rev_id=12785#r12785
2016-08-03 15:22caristuRelationship addedrelated to 0033618
2016-08-04 08:01caristuDescription Updatedbug_revision_view_page.php?rev_id=12789#r12789
2016-08-05 07:54caristuDescription Updatedbug_revision_view_page.php?rev_id=12798#r12798
2016-08-08 12:33hgbotCheckin
2016-08-08 12:33hgbotNote Added: 0088882
2016-08-08 12:33hgbotStatusscheduled => resolved
2016-08-08 12:33hgbotResolutionopen => fixed
2016-08-08 12:33hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/768f344264132beeec88a87c7f25fa256559749d [^]
2016-08-08 13:17hgbotCheckin
2016-08-08 13:17hgbotNote Added: 0088889
2016-08-08 14:03hgbotCheckin
2016-08-08 14:03hgbotNote Added: 0088892
2016-08-08 14:09caristuRelationship addedrelated to 0031104
2016-08-10 10:29caristuRelationship addedrelated to 0033669
2016-08-11 18:40hudsonbotCheckin
2016-08-11 18:40hudsonbotNote Added: 0089044
2016-08-11 18:40hudsonbotCheckin
2016-08-11 18:40hudsonbotNote Added: 0089045
2016-08-11 18:40hudsonbotCheckin
2016-08-11 18:40hudsonbotNote Added: 0089046
2016-08-25 11:18caristuReview Assigned To => alostale
2016-08-25 11:18caristuIssue Monitored: alostale
2016-08-30 10:46alostaleNote Added: 0089537
2016-08-30 10:46alostaleStatusresolved => closed
2016-08-30 10:46alostaleFixed in Version => 3.0PR16Q4
2016-08-30 10:46alostaleNote Edited: 0089537bug_revision_view_page.php?bugnote_id=0089537#r12967
2016-08-30 10:58alostaleRelationship addedrelated to 0033853

Notes
(0088882)
hgbot   
2016-08-08 12:33   
Repository: erp/devel/pi
Changeset: 768f344264132beeec88a87c7f25fa256559749d
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Aug 08 12:32:51 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/768f344264132beeec88a87c7f25fa256559749d [^]

fixes issue 33588: extra DS calls having summary functions and lazy filtering

When working with the grid having summary functions, several flows were performing datasource requests for recalculating the summaries:
- Open a tab having a grid that already contains a summary function.
- After saving a new record
- After updating an existing record
- After deleting a record
- After switching into form view and saving the record
- After selecting/replacing a summary function

Having the summary row displayed during those actions, Smartclient was recalculating the grid automatically. Now, if the lazy filtering is enabled, the summary row is hidden to prevent the recalculation. Thus, the summary function will be recalculated once the filter/sorting action is requested by the user.

---
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
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
(0088889)
hgbot   
2016-08-08 13:17   
Repository: erp/devel/pi
Changeset: 655bd2d28fbadaa35afb6455b1256ee9ca7123f3
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Aug 08 13:16:59 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/655bd2d28fbadaa35afb6455b1256ee9ca7123f3 [^]

related to issue 33588: updated lazy filterting description and help

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_COLUMN.xml
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_ELEMENT.xml
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_FIELD.xml
---
(0088892)
hgbot   
2016-08-08 14:03   
Repository: erp/devel/pi
Changeset: 58339302a39135a1b64ce69d5daa4a4c885016dd
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Aug 08 14:02:38 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/58339302a39135a1b64ce69d5daa4a4c885016dd [^]

related to issue 33588: reverting field name wrongly changed

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_FIELD.xml
---
(0089044)
hudsonbot   
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
(0089045)
hudsonbot   
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
(0089046)
hudsonbot   
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
(0089537)
alostale   
2016-08-30 10:46   
code reviewed

tested with and without saved views and with lazy and eager filtering for all cases reported