Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034270 | Retail Modules | Web POS | public | 2016-10-21 12:29 | 2016-11-22 19:12 |
|
Reporter | mtaal | |
Assigned To | mtaal | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | RR17Q1 | Fixed in Version | RR17Q1 | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0034270: Make it easier to enable offline in a module |
Description | Currently a user needs to write specific code to make his/her module offline capable:
Implement a specific POSAppCacheResourceProvider adding code to read css/img etc. See attached file for an example.
And in some cases also implement a MobileCoreApplicationCacheComponent.
|
Steps To Reproduce | See mobile warehouse module recent developments as an example. |
Proposed Solution | - Move the POSAppCacheResourceProvider concept to mobile.core
- Provide a base implementation for the AppCacheResourceProvider so that it is easier for a module to extend it without much code
This also allows modules to add offline behavior to for example mobile warehouse or procurement. |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | OrderPreparationAppCacheProvider.java (2,366) 2016-10-21 12:29 https://issues.openbravo.com/file_download.php?file_id=9947&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2016-10-21 12:29 | mtaal | New Issue | |
2016-10-21 12:29 | mtaal | Assigned To | => mtaal |
2016-10-21 12:29 | mtaal | OBNetwork customer | => No |
2016-10-21 12:29 | mtaal | Triggers an Emergency Pack | => No |
2016-10-21 12:29 | mtaal | File Added: OrderPreparationAppCacheProvider.java | |
2016-10-23 11:15 | hgbot | Checkin | |
2016-10-23 11:15 | hgbot | Note Added: 0090789 | |
2016-10-23 11:15 | hgbot | Status | new => resolved |
2016-10-23 11:15 | hgbot | Resolution | open => fixed |
2016-10-23 11:15 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6e967b9921b3bc52521240dbac032777708e5cf5 [^] |
2016-10-23 11:16 | hgbot | Checkin | |
2016-10-23 11:16 | hgbot | Note Added: 0090790 | |
2016-10-24 16:03 | mtaal | Review Assigned To | => marvintm |
2016-11-02 12:10 | hgbot | Checkin | |
2016-11-02 12:10 | hgbot | Note Added: 0091058 | |
2016-11-02 12:11 | hgbot | Checkin | |
2016-11-02 12:11 | hgbot | Note Added: 0091059 | |
2016-11-02 12:13 | hgbot | Checkin | |
2016-11-02 12:13 | hgbot | Note Added: 0091060 | |
2016-11-22 19:12 | marvintm | Status | resolved => closed |
2016-11-22 19:12 | marvintm | Fixed in Version | => RR17Q1 |
Notes |
|
(0090789)
|
hgbot
|
2016-10-23 11:15
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 6e967b9921b3bc52521240dbac032777708e5cf5
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Oct 23 11:14:22 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6e967b9921b3bc52521240dbac032777708e5cf5 [^]
Fixes issue 34270: Make it easier to enable offline in a module
Move generic application cache component to mobile core from posterminal. Move also the extension mechanism which allows modules to more easily add artifacts to the appcache, to mobile core from posterminal.
Provide a base app cache resource provider which has the generic code needed by modules. A module only needs to extend this class and does not need to add logic to have most artifacts made available offline.
MobileCoreApplicationCacheComponent.java: code from pos terminal application cache component
cache-manifest.ftl: change to allow additional resources to be added to the appcache
BaseCoreAppCacheResourceProvider.java: base implementation of appcacheresourceprovider to be extended by modules
CoreAppCacheResourceProvider.java: the base interface for appcacheresourceproviders, is a 'move' from posterminal to mobile core to make it more generic
---
M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java
M src/org/openbravo/mobile/core/templates/cache-manifest.ftl
A src/org/openbravo/mobile/core/BaseCoreAppCacheResourceProvider.java
A src/org/openbravo/mobile/core/CoreAppCacheResourceProvider.java
---
|
|
|
(0090790)
|
hgbot
|
2016-10-23 11:16
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 1f02e304aa83528c012c80ec5e1d11324b5bdf61
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Oct 23 11:15:42 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1f02e304aa83528c012c80ec5e1d11324b5bdf61 [^]
Related to issue 34270: Make it easier to enable offline in a module
Code has been moved to mobile.core.
---
M src/org/openbravo/retail/posterminal/ApplicationCacheComponent.java
M src/org/openbravo/retail/posterminal/POSAppCacheResourceProvider.java
---
|
|
|
(0091058)
|
hgbot
|
2016-11-02 12:10
|
|
Repository: erp/pmods/org.openbravo.retail.complementary
Changeset: c11651f11ef3b4d30b30b4cddbc0188143e929c5
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Nov 02 12:10:01 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.complementary/rev/c11651f11ef3b4d30b30b4cddbc0188143e929c5 [^]
Related to issue 34270: Make it easier to enable offline in a module
Resolve depracation warning and set module dependency
---
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
M src/org/openbravo/retail/complementary/ComplementaryAppCacheProvider.java
---
|
|
|
(0091059)
|
hgbot
|
2016-11-02 12:11
|
|
Repository: erp/pmods/org.openbravo.retail.discounts.combo
Changeset: 007879f6bd8cc10ed44f9827c989821960938841
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Nov 02 12:10:51 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/007879f6bd8cc10ed44f9827c989821960938841 [^]
Related to issue 34270: Make it easier to enable offline in a module
Resolve depracation warning and set module dependency
---
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
M src/org/openbravo/retail/discounts/combo/master/CombosAppCacheProvider.java
---
|
|
|
(0091060)
|
hgbot
|
2016-11-02 12:13
|
|
Repository: erp/pmods/org.openbravo.retail.discounts.bytotal
Changeset: 15cdff4107c4a381342e6f049ae8f660b8ed52d2
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Nov 02 12:12:19 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/15cdff4107c4a381342e6f049ae8f660b8ed52d2 [^]
Related to issue 34270: Make it easier to enable offline in a module
Resolve depracation warning and set module dependency
---
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
M src/org/openbravo/retail/discounts/bytotal/master/DiscountsByTotalAppCacheProvider.java
---
|
|