Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027400Retail ModulesWeb POSpublic2014-08-21 10:452014-09-30 17:15
Orekaria 
Orekaria 
normalmajoralways
closedfixed 
5
 
RR14Q4RR14Q4 
marvintm
No
0027400: Stabilization: Overhaul Version management
Stabilization: Overhaul the version management logic

We lack a way to execute different/upgraded code depending on the version e.g: when we introduce a new feature backward compatible and we want the developer to be warned about the new feature


We lack a way to handle version changes:

at least for:
- major, minor version of the WebPOS (Q2, Q3, etc)
- localDB.version
- uuid

maybe also for:
- modules versions


we would like to insert the major.minor version in the generated javascript file
e.g, the first line being:

  // mobile.core vQ2.4
  

Open login-model.js
Verify that his code is present:

        localDB: {
          size: 4 * 1024 * 1024,
          name: 'WEBPOS',
          displayName: 'Openbravo Web POS',
          version: '0.7'
        },

No tags attached.
depends on feature request 0027362RR14Q4 closed Orekaria Stabilization, performance, developer tools: it would be nice to add checks, etc while not in production 
blocks feature request 0027329 new Retail Stabilization: Overhaul the loading process (since the url is entered until the webpos has loaded) 
blocks defect 0027332RR14Q4 closed Orekaria [API Deprecation] OB.UTILS is no longer a valid namespace and OB.UTIL is missing 2 files 
blocks defect 0027349RR14Q4 closed Orekaria [API Deprecation] The HookManager does not have to depend on the OB.MobileApp.model object 
blocks defect 0027408RR14Q4 closed Orekaria Stabilization: The localDB database version should be set in a better place 
blocks defect 0029347 closed Orekaria Stabilization: Normalize version related values 
Issue History
2014-08-21 10:45OrekariaNew Issue
2014-08-21 10:45OrekariaAssigned To => Orekaria
2014-08-21 10:45OrekariaTriggers an Emergency Pack => No
2014-08-21 10:45OrekariaRelationship addedblocks 0027329
2014-08-21 10:46OrekariaSummaryStabilization: Overhaul the version management logic => Stabilization: Overhaul Version management
2014-08-21 10:47OrekariaDescription Updatedbug_revision_view_page.php?rev_id=6394#r6394
2014-08-21 10:48OrekariaDescription Updatedbug_revision_view_page.php?rev_id=6395#r6395
2014-08-21 10:52OrekariaDescription Updatedbug_revision_view_page.php?rev_id=6396#r6396
2014-08-21 12:09OrekariaRelationship addedblocks 0027332
2014-08-21 14:08OrekariaStatusnew => scheduled
2014-08-21 14:08Orekariafix_in_branch => pi
2014-08-21 14:09OrekariaRelationship addedblocks 0027349
2014-08-21 14:42OrekariaRelationship addedblocks 0027408
2014-08-21 14:53hgbotCheckin
2014-08-21 14:53hgbotNote Added: 0069576
2014-08-21 21:06OrekariaRelationship addeddepends on 0027362
2014-08-21 21:33hgbotCheckin
2014-08-21 21:33hgbotNote Added: 0069582
2014-08-21 21:45hgbotCheckin
2014-08-21 21:45hgbotNote Added: 0069584
2014-08-22 01:22hgbotCheckin
2014-08-22 01:22hgbotNote Added: 0069588
2014-08-22 01:31hgbotCheckin
2014-08-22 01:31hgbotNote Added: 0069589
2014-08-22 21:03hgbotCheckin
2014-08-22 21:03hgbotNote Added: 0069619
2014-08-23 00:04hgbotCheckin
2014-08-23 00:04hgbotNote Added: 0069626
2014-08-25 13:14OrekariaStatusscheduled => acknowledged
2014-09-02 21:55OrekariaStatusacknowledged => scheduled
2014-09-02 21:56OrekariaStatusscheduled => resolved
2014-09-02 21:56OrekariaFixed in Version => RR14Q4
2014-09-02 21:56OrekariaResolutionopen => fixed
2014-09-15 15:24marvintmReview Assigned To => marvintm
2014-09-15 15:24marvintmStatusresolved => closed
2014-09-29 13:33hgbotCheckin
2014-09-29 13:33hgbotNote Added: 0070495
2014-09-29 13:33hgbotCheckin
2014-09-29 13:33hgbotNote Added: 0070496
2014-09-30 04:03hgbotCheckin
2014-09-30 04:03hgbotNote Added: 0070521
2014-09-30 17:15hgbotCheckin
2014-09-30 17:15hgbotNote Added: 0070570
2015-03-19 12:59OrekariaRelationship addedblocks 0029347

Notes
(0069576)
hgbot   
2014-08-21 14:53   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 3a87183f47690e8ff72b76a9f6a9720eb57062a7
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Thu Aug 21 14:53:08 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3a87183f47690e8ff72b76a9f6a9720eb57062a7 [^]

Related to issue 27400: The new OB.UTIL.VersionManagement class has been introduced...
This class has a method called 'deprecated', in which deprecated code will be executed
A warning is sent to the console if in developement
Further improvements would be nice, like version checking



Examples of use:
- the HookManager API change
- the removal of the OB.UTILS namespace

---
M src/org/openbravo/mobile/core/MobileCoreComponentProvider.java
A web/org.openbravo.mobile.core/source/utils/ob-versionmanagement.js
---
(0069582)
hgbot   
2014-08-21 21:33   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: a395c1fbc5a581e1082afec57948df2cd62afa7b
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Thu Aug 21 21:21:44 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a395c1fbc5a581e1082afec57948df2cd62afa7b [^]

Related to issue 27400: OB.UTIL.VersionManagement 0.2:

Release Management request: be able to retrieve all the deprecations even if they have not been executed

Changes made:
- the deprecations will first be registered with the registerDeprecation method
- the deprecations will be executed with the deprecated method
- massive use of the OB.UTIL.DEBUG methods

Result:
- this changes allows to retrieve all the deprecations with the getDeprecations method even if they have not been used

---
M web/org.openbravo.mobile.core/source/utils/ob-versionmanagement.js
---
(0069584)
hgbot   
2014-08-21 21:45   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 186450fa14833dd7f146ad09a7800b1568fa7a5b
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Thu Aug 21 21:41:51 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/186450fa14833dd7f146ad09a7800b1568fa7a5b [^]

Related to issue 27400: Removed the OB.UTILS deprecation as it has to be attached to another issue

---
M web/org.openbravo.mobile.core/source/utils/ob-versionmanagement.js
---
(0069588)
hgbot   
2014-08-22 01:22   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 4c868331d74c3e25abad0f947b3cc25e2f6e676f
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Fri Aug 22 01:22:45 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/4c868331d74c3e25abad0f947b3cc25e2f6e676f [^]

Related to issue 27400: Added mobile.core database default version and refactored

---
M web/org.openbravo.mobile.core/source/utils/ob-versionmanagement.js
---
(0069589)
hgbot   
2014-08-22 01:31   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 303b35cb1281a1ffb315901c9990c7f628dc63e5
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Fri Aug 22 01:30:25 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/303b35cb1281a1ffb315901c9990c7f628dc63e5 [^]

Related to issue 27400: Added more mobile.core database default version and better names

---
M web/org.openbravo.mobile.core/source/utils/ob-versionmanagement.js
---
(0069619)
hgbot   
2014-08-22 21:03   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: d0501ee26f72181d2c78db0c8f3da497b90802c1
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Fri Aug 22 21:01:31 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/d0501ee26f72181d2c78db0c8f3da497b90802c1 [^]

Related to issue 27400 and issue 27349: The registering of the deprecations has been moved...
... to the ob-versionmanagement.js file
Registering deprecations in that file, will allow easy maintenable global deprecations and cleaner code

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
M web/org.openbravo.mobile.core/source/utils/ob-versionmanagement.js
---
(0069626)
hgbot   
2014-08-23 00:04   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: a76e8cb5942d6cfe0f1d472a740acfd67ed15cf5
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sat Aug 23 00:04:31 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a76e8cb5942d6cfe0f1d472a740acfd67ed15cf5 [^]

Related to issue 27400: Removed unnecessary code

---
M web/org.openbravo.mobile.core/source/utils/ob-versionmanagement.js
---
(0070495)
hgbot   
2014-09-29 13:33   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: b353fca305542a3a3783a63428a6ac51e47a8f4b
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Sep 29 13:31:54 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/b353fca305542a3a3783a63428a6ac51e47a8f4b [^]

Related to issue 27400: the versions have been changed to use the year and the dbVersion is the main module version

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
M web/org.openbravo.mobile.core/source/utils/ob-versionmanagement.js
---
(0070496)
hgbot   
2014-09-29 13:33   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 41361a5a5ce3ac8b8dba6114145feef1ee1438d3
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Sep 29 13:32:31 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/41361a5a5ce3ac8b8dba6114145feef1ee1438d3 [^]

Related to issue 27400: the versions have been changed to use the year and the dbVersion is the main module version

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
M web/org.openbravo.retail.posterminal/js/main.js
---
(0070521)
hgbot   
2014-09-30 04:03   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: ce92460656dec75de7ab37c77e9c9bbd8957dfc7
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue Sep 30 03:30:39 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ce92460656dec75de7ab37c77e9c9bbd8957dfc7 [^]

Related to issue 27400: VersionManagement: removed non used deprecation definition

---
M web/org.openbravo.mobile.core/source/utils/ob-versionmanagement.js
---
(0070570)
hgbot   
2014-09-30 17:15   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 99cb331bd4bf4e1c25b07a276e333d329ee06065
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue Sep 30 17:15:08 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/99cb331bd4bf4e1c25b07a276e333d329ee06065 [^]

Related to issue 27400: VersionManagement: the buildVersionString is now public
- added the current version to the Login window

---
M web/org.openbravo.mobile.core/source/component/ob-login.js
M web/org.openbravo.mobile.core/source/utils/ob-versionmanagement.js
---