Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0029838 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | major | have not tried | 2015-05-11 09:31 | 2015-05-15 11:25 | |||
Reporter | AugustoMauch | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR15Q2.1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | f1124f44f626 | ||||
Projection | none | ETA | none | Target Version | 3.0PR15Q2.1 | |||
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 | Production - Confirmed Stable | |||||||
Regression date | 2014-11-19 | |||||||
Regression introduced in release | 3.0PR15Q1 | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/3221fd5a8661d7f9dfbfd6d4255bace9834e6535 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0029838: Unlimited grid datasource request under certain circumstances | |||||||
Description | If the user scrolls down a grid till reaching the second page, and then performs a filter that returns less than a page, the filtered records will be shown but an unlimited amoutn of grid requests will be done until the user closes the window. | |||||||
Steps To Reproduce | - Open the Country and Region window - Scroll down until you see Iraq - Open the browser developer tools and select the Network tab - Enter Q in the name filter editor - The names that contain Q will be displayed, but the grid will show empty lines for more rows. Also, unlimited requests to the Country datasource will be done, you can check it in the developer tools | |||||||
Tags | Approved | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0077360) hgbot (developer) 2015-05-12 22:34 |
Repository: erp/backports/3.0PR15Q2.1 Changeset: f1124f44f6260ed08f8b07b26fe839ddd3a5a274 Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Mon May 11 10:53:02 2015 +0200 URL: http://code.openbravo.com/erp/backports/3.0PR15Q2.1/rev/f1124f44f6260ed08f8b07b26fe839ddd3a5a274 [^] Fixes bug 29838: Prevents unlimited datasource requests when filtering the grid The problem was that the logic to check that if a datasource request was triggered by scrolling up in a grid that did not have its initial rows loaded (see [1]) did not work well when the user filtered the grid after having scrolled down the grid till loading its second page. This caused the totalRows property of the grid to be miscalculated, and this triggered the undefinite amount of datasource requests. The logic to check if the request was triggered by scrolling up has been changed. Now, instead of checking low-level smartclient properties like lastScrollTop, we check if there are rows loaded in the positions just after the page that was just received. Only in that case we want to prevent resetting the totalRows property of the ResultSet with the value returned by the datasource. [1] https://code.openbravo.com/erp/devel/pi/rev/c51dce7e9fd3c47915464ab4f565a9d1cee60e3b [^] --- M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js --- |
(0077484) alostale (manager) 2015-05-15 11:25 |
code reviewed + tested |
Issue History | |||
Date Modified | Username | Field | Change |
2015-05-11 10:19 | AugustoMauch | Type | defect => backport |
2015-05-11 10:19 | AugustoMauch | Target Version | => 3.0PR15Q2.1 |
2015-05-11 11:27 | dmitry_mezentsev | Tag Attached: Approved | |
2015-05-12 22:33 | AugustoMauch | Issue Monitored: alostale | |
2015-05-12 22:33 | AugustoMauch | Review Assigned To | => alostale |
2015-05-12 22:34 | hgbot | Checkin | |
2015-05-12 22:34 | hgbot | Note Added: 0077360 | |
2015-05-12 22:34 | hgbot | Status | scheduled => resolved |
2015-05-12 22:34 | hgbot | Resolution | open => fixed |
2015-05-12 22:34 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR15Q2.1/rev/f1124f44f6260ed08f8b07b26fe839ddd3a5a274 [^] |
2015-05-13 17:28 | alostale | Assigned To | platform => AugustoMauch |
2015-05-15 11:25 | alostale | Note Added: 0077484 | |
2015-05-15 11:25 | alostale | Status | resolved => closed |
2015-05-15 11:25 | alostale | Fixed in Version | => 3.0PR15Q2.1 |
Copyright © 2000 - 2009 MantisBT Group |