Hi all,

This failure seems to be caused by one recent commit [1] although we still
have to check whether it's an unexpected side effect or the behaviour has
changed and the tests should be adapted to match it.

Regards,
PL

[1] https://code.openbravo.com/erp/devel/pi/rev/1724b65a331a


On Wed, Aug 7, 2013 at 12:04 AM, <[email protected]> wrote:

> int-gui-oracle - Build # 1169 - Failure:
>
> Check console output at
> http://builds.openbravo.com/job/int-gui-oracle/1169/ 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
>
>
>
>
> Last 20 lines of the console output:
>
> [...truncated 9459 lines...]
>     [junit] Driver info:
> com.openbravo.test.integration.selenium.RemoteWebDriver
>     [junit] Capabilities [{platform=LINUX, acceptSslCerts=true,
> javascriptEnabled=true, browserName=firefox, rotatable=false,
> locationContextEnabled=true,
> webdriver.remote.sessionid=5d64b332-25c0-4912-94d4-03b12d4b438c,
> version=13.0, cssSelectorsEnabled=true, databaseEnabled=true,
> handlesAlerts=true, browserConnectionEnabled=true, webStorageEnabled=true,
> nativeEvents=false, applicationCacheEnabled=true, takesScreenshot=true}])
>     [junit]
>
> BUILD FAILED
> /srv/hudson/workspace/int-gui-oracle/SANDBOX/automation/pi/src-test/com/openbravo/test/integration/erp/modules/client/application/testsuites/build.xml:31:
> The following error occurred while executing this line:
> /srv/hudson/workspace/int-gui-oracle/SANDBOX/automation/pi/src-test/com/openbravo/test/integration/erp/modules/client/application/testsuites/standardview/build.xml:30:
> The following error occurred while executing this line:
> /srv/hudson/workspace/int-gui-oracle/SANDBOX/automation/pi/src-test/com/openbravo/test/integration/erp/modules/client/application/testsuites/standardview/grid/build.xml:40:
> The following error occurred while executing this line:
> /srv/hudson/workspace/int-gui-oracle/SANDBOX/automation/pi/src-test/com/openbravo/test/integration/erp/modules/client/application/testsuites/standardview/grid/build.xml:133:
> The following error occurred while executing this line:
> /srv/hudson/workspace/int-gui-oracle/SANDBOX/automation/pi/build.xml:69:
> Test
> com.openbravo.test.integration.erp.modules.client.application.testsuites.standardview.grid.GRD0110_MoveToNextRecordWhileEditingInGrid
> failed
>
> Total time: 73 minutes 41 seconds
> Build step 'Execute shell' marked build as failure
> [locks-and-latches] Releasing all the locks
> [locks-and-latches] All the locks released
> Archiving artifacts
> Recording test results
> Email was triggered for: Failure
> Sending email for trigger: Failure
>
>
> ------------------------------------------------------------------------------
> 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
>
>
------------------------------------------------------------------------------
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