int-gui-oracle - Build # 1171 - Fixed:

Check console output at http://builds.openbravo.com/job/int-gui-oracle/1171/ to 
view the results.


Committers since last success:

Changes for Build #1169

    Augusto Mauch <[email protected]> 
    Fixes issue 24403: Datasource returns to grid the minimum amount of 
properties

When a grid in a generated window makes a fetch request to its datasource, the 
datasource now returns the minimum amount of properties, that is:
- Properties that are part of the entity identifier
- Properties currently displayed in the grid
- Properties that are part of the display logic of toolbar buttons

Summary of changes:
- ob-view-grid.js.ftl: It contains the list of properties the always have to be 
fetched from the datasource regardless of the properties shown in the grid
- OBViewFieldHandler.java: Stores the list of properties that are part of the 
display logic of buttons
- OBViewGridComponent.java: Returns the list of properties that are part of the 
entity identifier or that are part of the display logic of a button.
- ob-view-form: in the call to the FIC, include the list of fields that are 
shown in the grid.
- FormInitializationComponent.java: In the setValuesInRequest method,
  * fetch from the database the values of all columns, not only of the columns 
that have an associated field
  * do not try to overwrite the values of the properties not shown in the grid 
with the values stored in the request
- ob-view-grid.js:
  * When a new column in shown in the grid make a request to the datasource
  * Do not allow to show a new column in the grid if it is being edited
  * When making a request to the datasource, include the required properties in 
the request. This is not applied if the datasource is being called to export 
the grid.
  * Added methods to be able to process the FIC return (used in 
ob-standard-view.js)
- ob-standard-view.js
  * When a grid record is edited, make a call to the FIC in EDIT mode (it used 
to be done in SETSESSION mode). It needs to be done in EDIT mode to obtain the 
values of the records that are not shown in the grid but are shown in the form.
        
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
        
modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-grid.js.ftl
        
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
        
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFieldHandler.java
        
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewGridComponent.java
        
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
        
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
        
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
        
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js

    Asier Lostalé <[email protected]> 
    merged back DAL ws included properties
      
    Augusto Mauch <[email protected]> 
    [rest webservices with selected properties] Fix access to 3rd-level 
properties
        src/org/openbravo/service/rest/DalWebService.java

    Augusto Mauch <[email protected]> 
    [rest webservices with selected properties] Prevents Java API change
        src/org/openbravo/dal/xml/EntityXMLConverter.java

    Augusto Mauch <[email protected]> 
    [rest webservices with selected properties] First commit

This changeset implements the functionality that enables to specify the list of 
properties that will be exported in a XML Rest Webservice call (this 
functionality was already implemented for Json Rest Webservices).

Changes done:
- DalWebService.java: If the _selectedProperties is included in the request 
parameters the string is parsed to obtain two maps (propertiesToBeFeched and 
childPropertiesToBeFeched) that will contain the list of child and non child 
property for each entity being exported (i.e. when an entity is beign exported 
its child entities can also be exported in the process). Then these two maps 
are passed to the EntityXMLConverter.
- EntityXMLConverter.java: Filters out the properties not included in the 
propertiesToBeFetched or childPropertiesToBeFetched maps, but only if they are 
not empty. If they are empty (because the _selectedProperties parameter was not 
included in the URL) then all properties are returned (the child properties 
will only be returned if the includeChildren parameter is not set to false).

Example:
Let's suppose that someone wants to retrieve the list of all windows, including 
its tabs and its fields. Only these properties are required:
- ADWindow: id, name
- ADTab: id, name, tabLevel
- ADField: id, name, description

The request to the xml webservice should be like this:

http://localhost:8080/openbravo/ws/dal/ADWindow/100?_selectedProperties=id,name,aDTabList,aDTabList.id,aDTabList.name,aDTabList.tabLevel,aDTabList.aDFieldList,aDTabList.aDFieldList.id,aDTabList.aDFieldList.name,aDTabList.aDFieldList.description

'id', 'name' and 'aDTabList' are properties of the ADWindow entity. The 
aDTabList property is a child entity of ADWindow. If no more properties were 
specified, then only the id and the identifier of each tab would be returned.
'aDTabList.id','aDTabList.name','aDTabList.tabLevel' and 
'aDTabList.aDFieldList' are properties of the adTabList entity.
'aDTabList.aDFieldList.id','aDTabList.aDFieldList.name' and 
'aDTabList.aDFieldList.description'

When the _selectedProperties parameter is parsed, these two maps will be 
generated:
- properties: a map with the list of not child properties to be exported for 
each entity:
      {_top=[id, name],aDTabList=[id, name, tabLevel], 
aDTabList.aDFieldList=[id, name, description]}
- childProperties: a map with the list of child properties to be exported for 
each entity:
      {_top=[id, aDTabList],aDTabList=[id, aDFieldList]}
        src/org/openbravo/dal/xml/EntityXMLConverter.java
        src/org/openbravo/service/rest/DalWebService.java

    Víctor Martínez Romanos <[email protected]> 
    Fixed bug 24490: Sales Representative not filled automatically in Project

Implemented this feature in SE_Project_BPartner callout as it is already done
at the Sales Order or Sales Invoice windows
        src/org/openbravo/erpCommon/ad_callouts/SE_Project_BPartner.java

Changes for Build #1170

    Gorka Ion Damián <[email protected]> 
    Related to issue 24505.Temporarily disable test.
        src-test/org/openbravo/test/security/AccessLevelTest.java

Changes for Build #1171

    Asier Lostalé <[email protected]> 
    fixed bug 24504, fixed bug 24502, related to bug 24403, related to bug 24402

  Backout of fix for issue #24403 as it creates regressions #24504 and #24502
        
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
        
modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-grid.js.ftl
        
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
        
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFieldHandler.java
        
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewGridComponent.java
        
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
        
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
        
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
        
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js

    Stefan Hühner <[email protected]> 
    Fixed 24506: Improve performance/reduce gc time  of bankstatement import.
The code searching for matching business partners in the import of
bankstatementlines is loading a very high number of bp entities into
memory over the course of an import (example 10k bp's loaded for importing
250 lines).
That causes sub-sequent calls to flush() to be very slow (>=30 seconds) as those
need to iterate over all the objects in the hibernate session.

As all those bp's are not modified during the import they can be directly 
removed
(evicted) from the hibernate session as there's no need to keep them there and
check if they have been modified at flush() time.
        
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_BankStatementImport.java

 


Last 20 lines of the console output:

[...truncated 10681 lines...]

report:
     [echo] Generating test report.
[junitreport] Processing 
/srv/hudson/workspace/int-gui-oracle/SANDBOX/automation/pi/last-results/int-smoke-oracle-inc/report/TESTS-TestSuites.xml
 to /tmp/null1588784443
[junitreport] Loading stylesheet 
jar:file:/usr/share/ant/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Transform time: 12474ms
[junitreport] Deleting: /tmp/null1588784443

BUILD SUCCESSFUL
Total time: 14 seconds
[int-gui-oracle] $ /bin/sh -xe /tmp/hudson94768627263520511.sh
+ /srv/hudson/bin/run no-screenshot.sh 
SANDBOX/automation/pi/last-results/int-smoke-oracle-inc/screenshots
[locks-and-latches] Releasing all the locks
[locks-and-latches] All the locks released
Archiving artifacts
Recording test results
Email was triggered for: Fixed
Trigger Success was overridden by another trigger and will not send an email.
Sending email for trigger: Fixed
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-builds mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-builds

Reply via email to