int-basic-oracle - Build # 2256 - Failure:

Check console output at https://ci.openbravo.com/job/int-basic-oracle/2256/ to 
view the results.


Committers since last success:

Changes for Build #2256

    Augusto Mauch <[email protected]> null
    Related with issue 37451: Adds tests

Tests have been added to check that the datasource returns properly the results 
using the updated criteria.

Selenium tests with the current infrastructure are not possible, since when 
they filter the grid, they do not
select the checkboxes of the foreign key combo boxes, they just enter the text 
in the filter input, and if done
that way the issue is not reproducible.
        src-test/src/org/openbravo/test/datasource/NonIdForeignKeyFilters.java
        src-test/src/org/openbravo/test/AllWebserviceTests.java

    Augusto Mauch <[email protected]> null
    Fixes issue 37451: Fixes filtering of fks that dont use ids as key

The problem was that the foreign keys that did not use and id column as key 
(i.e. ad_country.ad_language) were not being properly
filtered locally in smartclient, because the criteria used the id of the 
referenced record, that was not available in the browser (it
was available in the query done in the back end, that is why only the 
client-side filtering was not working).

For instance, if the ad_language foreign key reference uses as key 
ad_language.ad_language instead of ad_language.ad_language_id, the criteria
will no longer be:

{
  fieldName: 'language',
  operator: 'equals',
  value: '192'
}

Now it will be:

{
  fieldName: 'language',
  operator: 'equals',
  value: 'en_US'
}

The AdvancedQueryBuilder has been adapted to support the new type of criteria.

There are also changes on ob-grid.js and ob-formitem-fk-filter to ensure that 
the criteria is properly displayed in the filter input.
        
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
        
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
        
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/ForeignKeyUIDefinition.java
        
modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java




Last 20 lines of the console output:

[...truncated 16702 lines...]
+ (( i=0 ))
+ (( i<12 ))
++ jps
++ grep Bootstrap
++ true
+ '[' '' = '' ']'
+ break
++ jps
++ grep Bootstrap
++ true
+ '[' '' '!=' '' ']'
+ true
+ '[' 0 '!=' 0 ']'
+ echo

POST BUILD TASK : SUCCESS
END OF POST BUILD TASK : 0
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-builds mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-builds

Reply via email to