Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0027329
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] Web POSmajorN/A2014-08-13 19:482016-11-10 18:16
ReporterOrekariaView Statuspublic 
Assigned ToRetail 
PriorityhighResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0027329: Stabilization: Overhaul the loading process (since the url is entered until the webpos has loaded)

DescriptionThe loading process is vital to get a stable app
Making it easier to debug and easier to know where to add that new code helps stabilization and lowers the risk of new issues
In addition in can be more easily profiled and can provide performance improvements
Steps To ReproduceInsert a console.debug in the initialization of every object (including backbone and enyo objects)
Open a new browser tab
Open the console
Insert the WebPOS url
Login
Wait until the WebPOS has loaded

- Verify that generic initializations, backbone initializations, enyo initializations, events processing and asynchronous calls are more mixed than desirable
- Verify that the application is started to load before the javascript file has been processed
- Verify that, sometimes, there are errors and its hard to see what caused them

Insert a random fail in an asynchronous response
- Verify that there is code depending on the successful result of that asynchronous call, that is still trying to be executed

Tests
- Verify that there are login errors
- Verify that tomcat and javascript errors populate the logs

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on defect 0027328RR14Q4 closedOrekaria Retail Modules Stabilization: The OfflinePrinter model can follow the same initialization as the other models 
depends on defect 0027332RR14Q4 closedOrekaria Retail Modules [API Deprecation] OB.UTILS is no longer a valid namespace and OB.UTIL is missing 2 files 
depends on defect 0027341RR14Q4 closedOrekaria Retail Modules Stabilization: org.openbravo.retail.discounts should depend on org.openbravo.mobile.core 
depends on defect 0027342RR14Q4 closedOrekaria Retail Modules Stabilization: Unuseful code in ob-terminal-model.js - setUserModelOnline 
depends on defect 0027343RR14Q4 closedOrekaria Retail Modules Stabilization: Do not initialize backbone objects in the defaults declaration 
depends on defect 0027345RR14Q4 closedOrekaria Retail Modules Stabilization: backbone models should not be instanciated in the variables definition 
depends on defect 0027348RR14Q4 closedOrekaria Retail Modules Stabilization: Refactor the MobileCoreComponentProvider for better readability and more atomic commits 
depends on defect 0027350RR14Q4 closedOrekaria Retail Modules Stabilization: Checking if the HookManager is available is not necessary 
depends on defect 0027349RR14Q4 closedOrekaria Retail Modules [API Deprecation] The HookManager does not have to depend on the OB.MobileApp.model object 
depends on defect 0027351RR14Q4 closedOrekaria Retail Modules Stabilization: The globalResources in the Component Providers are being created hundreds of times and the code is thread unsafe 
depends on defect 0027352RR14Q4 closedOrekaria Retail Modules Stabilization: The main.js file is containing code that should be in the login-model.js file 
depends on defect 0027353RR14Q4 closedOrekaria Retail Modules Stabilization: The route in the initialization of the terminal model is no longer needed 
depends on defect 0027354RR14Q4 closedOrekaria Retail Modules Stabilization: The 'initializedCommonComponents' event is being attached after the 'initializeCommonComponents' is executed 
depends on defect 0026589 closedOrekaria Retail Modules Stabilization: When the backend generates a new uuid.js, chrome does not update/delete the Web SQL database 
depends on feature request 0027362RR14Q4 closedOrekaria Retail Modules Stabilization, performance, developer tools: it would be nice to add checks, etc while not in production 
depends on defect 0027366RR14Q4 closedOrekaria Retail Modules Stabilization: OB.POS.terminal is being called instead of OB.MobileApp.view 
depends on defect 0027367RR14Q4 closedOrekaria Retail Modules Stabilization: OB.POS.terminal.terminal is used instead of OB.MobileApp.model 
depends on defect 0027371 closedOrekaria Retail Modules Stabilization: The WebPOS manifest does not have the correct data 
depends on defect 0027380 closedOrekaria Retail Modules Stabilization: After log in, sometimes, the server is returning a 401: non authorized code 
depends on defect 0027386RR14Q4 closedOrekaria Retail Modules Stabilization: Some models are making aync requests to the server before they are of any use 
depends on defect 0027389 newRetail Retail Modules Stabilization: Remove unused external javascript libraries 
depends on defect 0027399 closedmario_castello Retail Modules Stabilization: Raname the HookManager references in the LevelPricing and ScalableLevelPricing retail modules 
depends on feature request 0027400RR14Q4 closedOrekaria Retail Modules Stabilization: Overhaul Version management 
depends on defect 0027403 acknowledgedRetail Retail Modules Stabilization: Discounts should not execute actions until the javascript generated file has been processed 
depends on defect 0027404 closedOrekaria Retail Modules Stabilization: Revisit global namespace references 
depends on defect 0026919 closedOrekaria Retail Modules Stabilization: SQLTransaction errors shown on login 
depends on defect 0027408RR14Q4 closedOrekaria Retail Modules Stabilization: The localDB database version should be set in a better place 
depends on defect 0027415RR15Q2 closedaaroncalero Retail Modules Stabilization: alert("") should never be used 
depends on feature request 0027417 closedOrekaria Retail Modules Stabilization: add a main.js file to any module in which centralize versions, deprecations, etc 
depends on design defect 0027426 closedOrekaria Retail Modules Stabilization: The Business layer should not contain Interface objects 
depends on design defect 0027427RR14Q4 closedOrekaria Retail Modules Stabilization: OB.DAL should not be an enyo component 
depends on design defect 0027428RR14Q4 closedOrekaria Retail Modules Stabilization: OB.Data.Registry should not be an enyo object 
depends on defect 0027429RR14Q4 closedOrekaria Retail Modules Stabilization: Revisit the aync timeouts 
depends on feature request 0027430 newRetail Retail Modules Stabilization: Add debug logic to test the different online and caching states 
depends on defect 0027446RR14Q4 closedOrekaria Retail Modules Stabilization: When the termInfo is invalid the page will not properly load 
depends on feature request 0027447RR14Q4 closedOrekaria Retail Modules Stabilization: Add a new method to clean the local storage and reload the web page 
depends on defect 0027448RR14Q4 closedOrekaria Retail Modules Stabilization: When the response is null an uncaught exception is thrown 
depends on defect 0027451RR14Q4 closedOrekaria Retail Modules Stabilization: When the database is locked an uncaught exception is shown 
depends on feature request 0026894RR14Q4 closedOrekaria Retail Modules Stabilization: Improve the synchronization management 
depends on defect 0027456 closedOrekaria Retail Modules Stabilization: In ob-terminal-model, the calls are overlapping 
depends on defect 0027464RR14Q4 closedOrekaria Retail Modules Stabilization: When the local database is corrupted, the loginUsingCache method will fail to find the current user 
depends on defect 0027465RR14Q4 closedOrekaria Retail Modules Stabilization: When 'setUserModelOnline' fails to save the current user info, the loading process fails 
depends on design defect 0027466RR14Q4 closedOrekaria Retail Modules Stabilization: The route (OBRoute) object should be use to redirect to the proper webpage 
depends on defect 0027506RR14Q4 closedOrekaria Retail Modules Stabilization: The 'pay' button should not be enabled if the order can't be payed 
depends on defect 0027287RR14Q4 closedOrekaria Retail Modules Stabilization: The 'pay' button should not be enabled by default on WebPOS load 
depends on defect 0027292RR14Q4 closedOrekaria Retail Modules Hide unexpected error message: Uncaught Application server is not available 
depends on defect 0027167RR14Q4 closedOrekaria Retail Modules When the javascript files contain an error, the WebPOS fails to load showing an uncaught error 
depends on defect 0027559RR14Q4 closedOrekaria Retail Modules Stabilization: 'saveLogClient' should not try to save if the local database is not ready 
depends on defect 0027554 closedOrekaria Retail Modules When switching from backend to WebPOS first an error is shown and then the login page is shown 
depends on feature request 0027569RR14Q4 closedOrekaria Retail Modules Stabilization: get better log output from ob-datasource.js 
depends on defect 0027555RR14Q4 closedmtaal Retail Modules With slow system generated js file is not there when already requested, wrong filename 
depends on defect 0027606RR15Q4 closedOrekaria Retail Modules Stabilization: When the terminal in use is changed, the locaStorage should be cleared 
depends on defect 0027646 closedOrekaria Retail Modules Stabilization: Revisit the use of OB.POS.modelterminal 
depends on design defect 0027672RR14Q4 closedOrekaria Retail Modules Stabilization: The SynchronizationHelper should be inside the OB.UTIL namespace 
depends on defect 0027661RR14Q4 closedmtaal Retail Modules Stabilization: Index.jsp is not expiring so updates do not show up in the browser without clearing the cache 
depends on design defect 0027682 closedOrekaria Retail Modules Stabilization: Setting 'loginUtilsParams' should be with the other model initializations 
depends on defect 0027676RR14Q4 closedmtaal Retail Modules Starting for the first time, visiting first webpos, error is shown in the console and the webpos UI won't load 
depends on defect 0028030RR14Q4 closedmigueldejuana Retail Modules Stabilization: the 'ad_user' table model is defining a source that is unused and in a wrong namespace 
depends on defect 0027986RR14Q4 closedOrekaria Retail Modules Stabilization: Revisit log levels after the introduction of the Debug mode 
depends on feature request 0028159 newAugustoMauch Openbravo ERP Stabilization: smartbuild could delete the contents of the WebContent/js/gen directory 
depends on feature request 0028217 newRetail Retail Modules Stabilization: Create a basic API for the asynchronous calls 
depends on feature request 0029377RR15Q3 closedOrekaria Retail Modules Stabilization: RR15Q2 related 
depends on defect 0029396RR15Q3 closedRetail Retail Modules Stabilization: RR15Q3 related 
depends on defect 0028428RR15Q3 closedaaroncalero Retail Modules Improve master data loading of WebPOS 
related to defect 0027339RR14Q4 closedOrekaria Retail Modules Stabilization: When the server is not available and there is not enough cache data, the app should wait until available 
related to defect 0027365RR14Q4 closedOrekaria Retail Modules Stabilization: The ob-i18n.js file contains unuseful code 
blocks design defect 0027216 newmarvintm Retail Modules Stabilization: Web POS should not login if the database is not consistent or a table is empty 
blocks design defect 0027228 newmarvintm Retail Modules Stabilization: Web POS should validate that models have been imported properly to Web POS 
blocks defect 0027337 acknowledgedRetail Retail Modules Stabilization: No tomcat errors while running the WebPOS 
blocks feature request 0027409RR14Q4 closedOrekaria Retail Modules Stabilization: Add more and better log to help developers and support 
blocks defect 0027413 newRetail Retail Modules Stabilization: It should never ever be necessary to clear cache. 
blocks feature request 0027171 newRetail Retail Modules Stabilization: Be able to gather and receive the exceptions raised in any WebPOS all over the world 
blocks defect 0027449RR14Q4 closedOrekaria Retail Modules Stabilization: When some errors are shown to the user, the loading picture is still there 
Not all the children of this issue are yet resolved or closed.

-  Notes
(0070469)
hgbot (developer)
2014-09-28 04:51

Repository: tools/automation/pi-mobile
Changeset: 9876858ea2514a02effcfb733ce7bf312aef2911
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Sep 28 04:51:07 2014 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/9876858ea2514a02effcfb733ce7bf312aef2911 [^]

Related to issue 27329: added 3 LoginLogout tests
- TenLoginLogout
- TenLoginLogoutWithRefresh
- TenLoginWithoutLogout

---
M src-test/org/openbravo/retail/integrationtest/tests/general/loginout/LoginoutTestSuite.java
A src-test/org/openbravo/retail/integrationtest/tests/general/loginout/TenLoginLogout.java
A src-test/org/openbravo/retail/integrationtest/tests/general/loginout/TenLoginLogoutWithRefresh.java
A src-test/org/openbravo/retail/integrationtest/tests/general/loginout/TenLoginWithoutLogout.java
---
(0079072)
dmitry_mezentsev (developer)
2015-07-27 11:05

FR cannot be Critical

- Issue History
Date Modified Username Field Change
2014-08-13 19:48 Orekaria New Issue
2014-08-13 19:48 Orekaria Assigned To => Orekaria
2014-08-13 19:48 Orekaria Triggers an Emergency Pack => No
2014-08-13 19:49 Orekaria Relationship added depends on 0027328
2014-08-13 19:50 Orekaria Relationship added blocks 0027216
2014-08-13 19:50 Orekaria Relationship added blocks 0027228
2014-08-13 23:00 Orekaria Relationship added depends on 0027332
2014-08-14 13:19 Orekaria Relationship added blocks 0027337
2014-08-14 18:06 Orekaria Relationship added related to 0027339
2014-08-14 19:21 Orekaria Relationship added related to 0027340
2014-08-14 23:06 Orekaria Relationship added depends on 0027341
2014-08-15 01:46 Orekaria Relationship added depends on 0027342
2014-08-15 11:30 Orekaria Relationship added depends on 0027343
2014-08-15 22:51 Orekaria Relationship added depends on 0027345
2014-08-16 12:04 Orekaria Relationship added depends on 0027348
2014-08-16 12:10 Orekaria Summary Stabilization: The loading process (since the url is open until the webpos has loaded) would please organization => Stabilization: Overhaul the loading process (since the url is entered until the webpos has loaded)
2014-08-16 12:10 Orekaria Description Updated View Revisions
2014-08-16 14:08 Orekaria Relationship added depends on 0027350
2014-08-16 14:09 Orekaria Relationship added depends on 0027349
2014-08-16 15:33 Orekaria Steps to Reproduce Updated View Revisions
2014-08-16 15:35 Orekaria Steps to Reproduce Updated View Revisions
2014-08-17 00:16 Orekaria Relationship added depends on 0027351
2014-08-17 01:19 Orekaria Relationship added depends on 0027352
2014-08-17 01:58 Orekaria Relationship added depends on 0027353
2014-08-17 03:20 Orekaria Steps to Reproduce Updated View Revisions
2014-08-17 03:22 Orekaria Steps to Reproduce Updated View Revisions
2014-08-17 16:41 Orekaria Relationship added depends on 0027354
2014-08-17 18:08 Orekaria Relationship added depends on 0026589
2014-08-18 15:10 Orekaria Relationship replaced blocks 0026589
2014-08-18 18:43 Orekaria Relationship added depends on 0027362
2014-08-18 21:25 Orekaria Relationship added related to 0027365
2014-08-18 22:13 Orekaria Relationship added depends on 0027366
2014-08-18 22:17 Orekaria Relationship added depends on 0027367
2014-08-19 13:01 Orekaria Relationship added depends on 0027371
2014-08-19 21:34 Orekaria Relationship added depends on 0027380
2014-08-20 12:58 Orekaria Relationship added depends on 0027386
2014-08-20 13:40 Orekaria Relationship added depends on 0027389
2014-08-21 09:58 Orekaria Relationship added depends on 0027399
2014-08-21 10:45 Orekaria Relationship added depends on 0027400
2014-08-21 11:44 Orekaria Relationship added depends on 0027403
2014-08-21 11:51 Orekaria Relationship added depends on 0027404
2014-08-21 23:17 Orekaria Relationship added depends on 0026919
2014-08-22 00:04 Orekaria Relationship added depends on 0027408
2014-08-22 00:21 Orekaria Steps to Reproduce Updated View Revisions
2014-08-22 00:25 Orekaria Steps to Reproduce Updated View Revisions
2014-08-22 00:26 Orekaria Steps to Reproduce Updated View Revisions
2014-08-22 02:46 Orekaria Relationship added depends on 0027409
2014-08-22 09:17 Orekaria Relationship added depends on 0027413
2014-08-22 09:27 Orekaria Relationship added depends on 0027414
2014-08-22 09:47 Orekaria Relationship replaced blocks 0027413
2014-08-22 09:49 Orekaria Relationship replaced blocks 0027414
2014-08-22 09:51 Orekaria Relationship replaced depends on 0026589
2014-08-22 09:55 Orekaria Relationship added depends on 0027171
2014-08-22 09:55 Orekaria Relationship replaced blocks 0027171
2014-08-22 10:19 Orekaria Relationship added depends on 0027415
2014-08-22 10:59 Orekaria Relationship replaced blocks 0027409
2014-08-22 11:05 Orekaria Relationship added depends on 0027417
2014-08-22 11:51 Orekaria Relationship added depends on 0027419
2014-08-22 11:51 Orekaria Relationship deleted depends on 0027419
2014-08-22 22:42 Orekaria Relationship added depends on 0027426
2014-08-22 22:54 Orekaria Relationship added depends on 0027427
2014-08-22 22:57 Orekaria Relationship added depends on 0027428
2014-08-23 01:47 Orekaria Relationship added depends on 0027429
2014-08-23 01:49 Orekaria Relationship added depends on 0027430
2014-08-23 12:40 Orekaria Relationship added depends on 0027431
2014-08-23 15:25 Orekaria Relationship deleted depends on 0027431
2014-08-24 00:47 Orekaria Relationship added depends on 0027446
2014-08-24 00:54 Orekaria Relationship added depends on 0027447
2014-08-24 07:17 Orekaria Relationship added depends on 0027448
2014-08-24 07:20 Orekaria Relationship added blocks 0027449
2014-08-24 07:56 Orekaria Relationship added depends on 0027450
2014-08-24 08:00 Orekaria Relationship added depends on 0027451
2014-08-24 17:40 Orekaria Relationship added depends on 0026894
2014-08-24 23:23 Orekaria Relationship added depends on 0027456
2014-08-26 01:50 Orekaria Relationship added depends on 0027464
2014-08-26 02:03 Orekaria Relationship added depends on 0027465
2014-08-26 02:10 Orekaria Relationship added depends on 0027466
2014-08-29 11:09 Orekaria Relationship added depends on 0027506
2014-08-29 11:14 Orekaria Relationship added depends on 0027287
2014-09-01 11:22 Orekaria Relationship added depends on 0027292
2014-09-02 21:08 Orekaria Relationship added depends on 0027167
2014-09-07 18:58 Orekaria Relationship added related to 0027549
2014-09-09 00:40 Orekaria Relationship added depends on 0027559
2014-09-09 22:08 Orekaria Relationship added depends on 0027554
2014-09-09 23:41 Orekaria Relationship added depends on 0027569
2014-09-12 17:41 Orekaria Relationship added depends on 0027555
2014-09-15 13:59 Orekaria Relationship added depends on 0027606
2014-09-20 09:27 Orekaria Relationship added depends on 0027646
2014-09-22 16:21 mtaal Target Version RR14Q4 =>
2014-09-24 17:43 Orekaria Relationship added depends on 0027672
2014-09-24 17:43 Orekaria Relationship added depends on 0027661
2014-09-25 11:05 Orekaria Relationship added depends on 0027682
2014-09-25 23:02 Orekaria Relationship added depends on 0027676
2014-09-28 04:51 hgbot Checkin
2014-09-28 04:51 hgbot Note Added: 0070469
2014-10-30 13:31 Orekaria Relationship added depends on 0028030
2014-10-31 09:14 Orekaria Relationship added depends on 0027986
2014-11-12 15:57 Orekaria Relationship added depends on 0028159
2014-11-18 18:02 Orekaria Relationship added depends on 0028217
2015-03-25 16:48 Orekaria Relationship added blocks 0029377
2015-03-25 23:07 Orekaria Relationship replaced depends on 0029377
2015-03-27 12:58 Orekaria Relationship added depends on 0027396
2015-03-27 12:58 Orekaria Relationship added depends on 0029396
2015-03-27 12:59 Orekaria Relationship deleted depends on 0027396
2015-05-07 15:35 Orekaria Relationship added depends on 0028428
2015-07-27 11:05 dmitry_mezentsev Note Added: 0079072
2015-07-27 11:07 dmitry_mezentsev Severity critical => major
2016-11-10 18:16 Orekaria Assigned To Orekaria => Retail


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker