Openbravo Issue Tracking System - POS2
View Issue Details
0054737POS2Corepublic2024-02-21 16:092024-02-26 19:13
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
24Q2 
No
0054737: Build process improvement: include missing dependencies, support standalone infrastructure modules
The current build process for core2 applications has 2 problems:
- It does not properly retrieve all dependencies. I.e. when building POS2, it includes all the modules in the natural tree of POS and POS2, but it does not automatically include all ancestor of modules that depend on those applications (see attached image MissingModule.png, where camerabarcodescanner would not be included because it is not part of the natural tree of POS. currently it is include by adding an artificial dependency from it to camerabarcodescanner.posterminal, thus making it part of the natural tree of POS).
- It does not support including infrastructure modules that i.e. extend core2 but that are not part of the natural tree of any application. One example of this type of module is the module to support fast authentication. See attached image MissingModule2.png
- Create a POS2 environment
- Remove the dependency from org.openbravo.retail.camerabarcodescanner to org.openbravo.retail.camerabarcodescanner.posterminal [1]
- Run ant build in core2 to build the POS2 application. Note that the ob-init file of org.openbravo.retail.camerabarcodescanner is not included in web-jspack/org.openbravo.core2/src/generated/POS2-modules-init.js, and the application won't start

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.camerabarcodescanner/-/blob/master/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml?ref_type=heads#L17 [^]
No tags attached.
has duplicate feature request 0054632 closed Triage Platform Base Support deploying infrastructure modules without direct dependency with a core2 application 
related to defect 0054921 closed eugen_hamuraru User actions defined in standalone infrastructure modules cannot be securized 
png MissingModule.png (65,970) 2024-02-21 16:09
https://issues.openbravo.com/file_download.php?file_id=19486&type=bug
png

png MissingModule2.png (47,257) 2024-02-21 16:09
https://issues.openbravo.com/file_download.php?file_id=19487&type=bug
png
Issue History
2024-02-21 16:09AugustoMauchNew Issue
2024-02-21 16:09AugustoMauchAssigned To => AugustoMauch
2024-02-21 16:09AugustoMauchTriggers an Emergency Pack => No
2024-02-21 16:09AugustoMauchFile Added: MissingModule.png
2024-02-21 16:09AugustoMauchFile Added: MissingModule2.png
2024-02-22 08:20hgbotNote Added: 0161069
2024-02-22 08:20hgbotNote Added: 0161070
2024-02-22 08:21hgbotNote Added: 0161071
2024-02-23 09:05hgbotNote Added: 0161174
2024-02-23 10:26AugustoMauchStatusnew => scheduled
2024-02-26 19:13hgbotNote Added: 0161276
2024-02-26 19:13hgbotResolutionopen => fixed
2024-02-26 19:13hgbotStatusscheduled => closed
2024-02-26 19:13hgbotFixed in Version => 24Q2
2024-02-26 19:13hgbotNote Added: 0161277
2024-02-26 19:13hgbotNote Added: 0161278
2024-02-26 19:13hgbotNote Added: 0161279
2024-02-27 08:04caristuRelationship addedhas duplicate 0054632
2024-03-12 11:00caristuRelationship addedrelated to 0054921

Notes
(0161069)
hgbot   
2024-02-22 08:20   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1150 [^]
(0161070)
hgbot   
2024-02-22 08:20   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.camerabarcodescanner/-/merge_requests/16 [^]
(0161071)
hgbot   
2024-02-22 08:21   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1381 [^]
(0161174)
hgbot   
2024-02-23 09:05   
Merge request closed: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1150 [^]
(0161276)
hgbot   
2024-02-26 19:13   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1381 [^]
(0161277)
hgbot   
2024-02-26 19:13   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: fc364268b9dbb9766510cc4eacba2cf6ccb56a18
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 26-02-2024 19:12:20
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/fc364268b9dbb9766510cc4eacba2cf6ccb56a18 [^]

Fixes ISSUE-54737: Adds support for standalone infrastructure modules

Some modules can be flagged as being standalone infrastructure modules by including an ob-config file
with the property "standaloneInfra" set to true.

The ob-init file of those modules will be included in the -modules-init.js file, even if they are not part of
the natural tree of the application module. Also its labels and lists will be included in *-labels-<language>.json
and POS2-lists-<language>.json respectively.

If the natural tree of infrastructure modules is included, we risk including modules that belong to other applications. I.e. when compiling
POS2 we would be including SSMS, because org.openbravo.retail.camerabarcodescanner is an infrastructure module and SSMS is in its natural
tree

---
M src/org/openbravo/core2/Core2Constants.java
M src/org/openbravo/core2/build/ModuleInfoGenerator.java
M src/org/openbravo/core2/build/ReactBuildUtils.java
---
(0161278)
hgbot   
2024-02-26 19:13   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.camerabarcodescanner [^]
Changeset: 89a2a505f926156c9bd4ab2964dd0e7f05245949
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 21-02-2024 23:58:13
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.camerabarcodescanner/-/commit/89a2a505f926156c9bd4ab2964dd0e7f05245949 [^]

Related to ISSUE-54737: Flags module as standalone infra, removes unneeded dependency to org.openbravo.retail.camerabarcodescanner.posterminal

---
A web-jspack/org.openbravo.retail.camerabarcodescanner/ob-config.json
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
---
(0161279)
hgbot   
2024-02-26 19:13   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.camerabarcodescanner/-/merge_requests/16 [^]