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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0027400
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] Web POSmajoralways2014-08-21 10:452014-09-30 17:15
ReporterOrekariaView Statuspublic 
Assigned ToOrekaria 
PrioritynormalResolutionfixedFixed in VersionRR14Q4
StatusclosedFix in branchpiFixed in SCM revision
ProjectionnoneETAnoneTarget VersionRR14Q4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0027400: Stabilization: Overhaul Version management

DescriptionStabilization: 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
  

Steps To ReproduceOpen login-model.js
Verify that his code is present:

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

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on feature request 0027362RR14Q4 closedOrekaria Stabilization, performance, developer tools: it would be nice to add checks, etc while not in production 
blocks feature request 0027329 newRetail Stabilization: Overhaul the loading process (since the url is entered until the webpos has loaded) 
blocks defect 0027332RR14Q4 closedOrekaria [API Deprecation] OB.UTILS is no longer a valid namespace and OB.UTIL is missing 2 files 
blocks defect 0027349RR14Q4 closedOrekaria [API Deprecation] The HookManager does not have to depend on the OB.MobileApp.model object 
blocks defect 0027408RR14Q4 closedOrekaria Stabilization: The localDB database version should be set in a better place 
blocks defect 0029347 closedOrekaria Stabilization: Normalize version related values 

-  Notes
(0069576)
hgbot (developer)
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 (developer)
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 (developer)
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 (developer)
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 (developer)
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 (developer)
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 (developer)
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 (developer)
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 (developer)
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 (developer)
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 (developer)
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
---

- Issue History
Date Modified Username Field Change
2014-08-21 10:45 Orekaria New Issue
2014-08-21 10:45 Orekaria Assigned To => Orekaria
2014-08-21 10:45 Orekaria Triggers an Emergency Pack => No
2014-08-21 10:45 Orekaria Relationship added blocks 0027329
2014-08-21 10:46 Orekaria Summary Stabilization: Overhaul the version management logic => Stabilization: Overhaul Version management
2014-08-21 10:47 Orekaria Description Updated View Revisions
2014-08-21 10:48 Orekaria Description Updated View Revisions
2014-08-21 10:52 Orekaria Description Updated View Revisions
2014-08-21 12:09 Orekaria Relationship added blocks 0027332
2014-08-21 14:08 Orekaria Status new => scheduled
2014-08-21 14:08 Orekaria fix_in_branch => pi
2014-08-21 14:09 Orekaria Relationship added blocks 0027349
2014-08-21 14:42 Orekaria Relationship added blocks 0027408
2014-08-21 14:53 hgbot Checkin
2014-08-21 14:53 hgbot Note Added: 0069576
2014-08-21 21:06 Orekaria Relationship added depends on 0027362
2014-08-21 21:33 hgbot Checkin
2014-08-21 21:33 hgbot Note Added: 0069582
2014-08-21 21:45 hgbot Checkin
2014-08-21 21:45 hgbot Note Added: 0069584
2014-08-22 01:22 hgbot Checkin
2014-08-22 01:22 hgbot Note Added: 0069588
2014-08-22 01:31 hgbot Checkin
2014-08-22 01:31 hgbot Note Added: 0069589
2014-08-22 21:03 hgbot Checkin
2014-08-22 21:03 hgbot Note Added: 0069619
2014-08-23 00:04 hgbot Checkin
2014-08-23 00:04 hgbot Note Added: 0069626
2014-08-25 13:14 Orekaria Status scheduled => acknowledged
2014-09-02 21:55 Orekaria Status acknowledged => scheduled
2014-09-02 21:56 Orekaria Status scheduled => resolved
2014-09-02 21:56 Orekaria Fixed in Version => RR14Q4
2014-09-02 21:56 Orekaria Resolution open => fixed
2014-09-15 15:24 marvintm Review Assigned To => marvintm
2014-09-15 15:24 marvintm Status resolved => closed
2014-09-29 13:33 hgbot Checkin
2014-09-29 13:33 hgbot Note Added: 0070495
2014-09-29 13:33 hgbot Checkin
2014-09-29 13:33 hgbot Note Added: 0070496
2014-09-30 04:03 hgbot Checkin
2014-09-30 04:03 hgbot Note Added: 0070521
2014-09-30 17:15 hgbot Checkin
2014-09-30 17:15 hgbot Note Added: 0070570
2015-03-19 12:59 Orekaria Relationship added blocks 0029347


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker