Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033626Openbravo ERPA. Platformpublic2016-08-04 15:302016-12-23 08:19
caristu 
NaroaIriarte 
highminoralways
closedfixed 
5
 
3.0PR17Q1 
alostale
Core
No
0033626: Unneeded datasource request after cancelling a newly created record in grid view having summary functions
Unneeded datasource request after cancelling a newly created record in grid view having summary functions
1) Go to the [Unit of Measure] window
2) Add a summary field in any column
3) Create a new record in grid view
4) Cancel the edition. Notice that an unneeded datasource request is done for the summary field recalculation
Performance
related to defect 0033853 closed NaroaIriarte summary functions: extra DS requests when relocating grid column 
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 0036459 closed caristu error thrown when refreshing after cancelling row creation before FIC response is processed 
Issue History
2016-08-04 15:30caristuNew Issue
2016-08-04 15:30caristuAssigned To => platform
2016-08-04 15:30caristuModules => Core
2016-08-04 15:30caristuTriggers an Emergency Pack => No
2016-08-04 15:30caristuRelationship addedrelated to 0033618
2016-08-04 15:30caristuAssigned Toplatform => caristu
2016-08-04 15:38caristuTag Attached: Performance
2016-08-10 14:26caristuRelationship addedrelated to 0033669
2016-08-30 14:00caristuRelationship addedrelated to 0033853
2016-08-30 14:00caristuAssigned Tocaristu => platform
2016-08-30 14:00caristuStatusnew => acknowledged
2016-12-01 13:20alostalePriorityhigh => normal
2016-12-01 14:05alostalePrioritynormal => urgent
2016-12-01 14:05alostalePriorityurgent => high
2016-12-05 12:57NaroaIriarteAssigned Toplatform => NaroaIriarte
2016-12-12 16:11NaroaIriarteStatusacknowledged => scheduled
2016-12-15 09:09NaroaIriarteReview Assigned To => alostale
2016-12-15 09:10hgbotCheckin
2016-12-15 09:10hgbotNote Added: 0092398
2016-12-15 09:10hgbotStatusscheduled => resolved
2016-12-15 09:10hgbotResolutionopen => fixed
2016-12-15 09:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f3f3a148df371d6c09bf7e44cde87a5a1e234243 [^]
2016-12-16 08:55alostaleNote Added: 0092458
2016-12-16 08:55alostaleStatusresolved => new
2016-12-16 08:55alostaleResolutionfixed => open
2016-12-16 10:55NaroaIriarteStatusnew => acknowledged
2016-12-16 10:55NaroaIriarteStatusacknowledged => scheduled
2016-12-16 11:01hgbotCheckin
2016-12-16 11:01hgbotNote Added: 0092468
2016-12-16 11:01hgbotStatusscheduled => resolved
2016-12-16 11:01hgbotResolutionopen => fixed
2016-12-16 11:01hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/f3f3a148df371d6c09bf7e44cde87a5a1e234243 [^] => http://code.openbravo.com/erp/devel/pi/rev/a385ae18b6f5ce2af500146bf6c4eeb11741fe89 [^]
2016-12-16 18:39hudsonbotCheckin
2016-12-16 18:39hudsonbotNote Added: 0092717
2016-12-16 18:39hudsonbotCheckin
2016-12-16 18:39hudsonbotNote Added: 0092726
2016-12-23 08:19alostaleNote Added: 0092956
2016-12-23 08:19alostaleStatusresolved => closed
2016-12-23 08:19alostaleFixed in Version => 3.0PR17Q1
2017-08-22 09:18caristuRelationship addedrelated to 0036459

Notes
(0092398)
hgbot   
2016-12-15 09:10   
Repository: erp/devel/pi
Changeset: f3f3a148df371d6c09bf7e44cde87a5a1e234243
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Wed Dec 14 14:28:50 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/f3f3a148df371d6c09bf7e44cde87a5a1e234243 [^]

Fixed issue 33626: Unneeded ds request when cancelling a record fixed

There was an uneeded ds request when there was a summary function and a new record edition was cancelled in grid view.
To fix this, the showGridSummary property has been set to false before the call to the function "handleUpdate". This avoids one flow of smartclient which was triggerin a ds request.
After that the "setShowGridsummary" function is invoked, to show again the summary function values.

---
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
---
(0092458)
alostale   
2016-12-16 08:55   
Reopening:

1. Go to the [Unit of Measure] window
2. Create a new record in grid view
3. Cancel the edition.
  ->ERROR: Summary function row appears
(0092468)
hgbot   
2016-12-16 11:01   
Repository: erp/devel/pi
Changeset: a385ae18b6f5ce2af500146bf6c4eeb11741fe89
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Fri Dec 16 11:00:19 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a385ae18b6f5ce2af500146bf6c4eeb11741fe89 [^]

Fixed issue 33626: Code review improvements

When a record was cancelled i grid view, without any summary row defined in any column, the summary function grid was shown with the text "no items to show" this has been fixed by adding a condition to the ob-view-grid.discardEdits function. Now, the summary grid will only be shown when there actually exists a summary function in any column.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0092717)
hudsonbot   
2016-12-16 18:39   
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/dc8bf00badd0 [^]
Maturity status: Test
(0092726)
hudsonbot   
2016-12-16 18:39   
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/dc8bf00badd0 [^]
Maturity status: Test
(0092956)
alostale   
2016-12-23 08:19   
code reviewed

tested with and without summary functions:

1. cancelling new record in grid and in form
2. cancelling editing of existing record in grid and in form