Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035825Openbravo ERPA. Platformpublic2017-04-24 18:322017-05-29 17:43
caristu 
caristu 
immediateminoralways
closedfixed 
5
 
3.0PR17Q3 
alostale
Core
Automated tests
2017-04-12
pi
http://code.openbravo.com/erp/devel/pi/rev/c17655a6fb3ffb29cdd5d73073615ba9d60cd941 [^]
No
0035825: Default org/warehouse not sorted properly in profile widget
After the changes introduced in the following project[1]. The default organization/warehouse selected when changing the role in the user profile window is not taken using the alphabetical order. This is causing failures in some CI tests[2],[3].


[1] http://wiki.openbravo.com/wiki/Projects:Login_Process_Perfomance_Improvements [^]
[2] http://ci.openbravo.com/view/qa/job/qa-pi-aprinreg-pgsql/714/ [^]
[3] http://ci.openbravo.com/view/qa/job/qa-pi-aproutreg-pgsql/719/ [^]
1) Log-in
2) In the user profile window, select the "F&B España, S.A. - Finance" role.
3) The organization taken by default is "F&B España, S.A" instead of "F&B España - Región Norte"
No tags attached.
caused by feature request 0035553 closed caristu Improve scalability of the login process 
Issue History
2017-04-24 18:32caristuNew Issue
2017-04-24 18:32caristuAssigned To => caristu
2017-04-24 18:32caristuModules => Core
2017-04-24 18:32caristuRegression level => Automated tests
2017-04-24 18:32caristuRegression date => 2017-04-12
2017-04-24 18:32caristuRegression introduced in release => pi
2017-04-24 18:32caristuRegression introduced by commit => http://code.openbravo.com/erp/devel/pi/rev/c17655a6fb3ffb29cdd5d73073615ba9d60cd941 [^]
2017-04-24 18:32caristuTriggers an Emergency Pack => No
2017-04-24 18:32caristuRelationship addedcaused by 0035553
2017-04-24 18:46hgbotCheckin
2017-04-24 18:46hgbotNote Added: 0096139
2017-04-24 18:46hgbotStatusnew => resolved
2017-04-24 18:46hgbotResolutionopen => fixed
2017-04-24 18:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a49574c6de23574338713a7e36086476e5fce9fe [^]
2017-04-24 18:46caristuReview Assigned To => alostale
2017-04-28 08:50alostaleNote Added: 0096250
2017-04-28 08:50alostaleStatusresolved => closed
2017-04-28 08:50alostaleFixed in Version => 3.0PR17Q3
2017-05-29 17:43hudsonbotCheckin
2017-05-29 17:43hudsonbotNote Added: 0096903

Notes
(0096139)
hgbot   
2017-04-24 18:46   
Repository: erp/devel/pi
Changeset: a49574c6de23574338713a7e36086476e5fce9fe
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Apr 24 18:41:02 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a49574c6de23574338713a7e36086476e5fce9fe [^]

fixes bug 35825: Default org/warehouse not sorted properly in profile widget

After the changes introduced on issue 0035553, the content of the profile widget fields (role, organization, warehouse) is sorted in the client side. The sorting was already being done when displaying the pick lists, but the value map used by those fields was not being sorted.

The default value of the org/warehouse fields when changing the role is the first value of their respective value maps. For this reason, since now the value maps for those fields is always sorted: the OB.User.userInfo object is instantiated with the mentioned value maps sorted by identifier, thanks to the call to 'sortByProperty' added in the user-info.js.ftl template.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/templates/user-info.js.ftl
---
(0096250)
alostale   
2017-04-28 08:50   
code reviewed + tested
(0096903)
hudsonbot   
2017-05-29 17:43   
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/1ee70113bdc4 [^]
Maturity status: Test