Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0050721Openbravo ERPA. Platformpublic2022-11-03 12:552022-11-08 08:02
caristu 
alostale 
highminorhave not tried
closedfixed 
5
 
PR23Q1 
Core
No
0050721: Compilation should fail if a merged module is present in the modules source folder
Compilation should fail if a merged module is present in the modules source folder
1) Install the following module in a clean pi environment[1]. Note that this module is already merged in org.openbravo.v3 module.
2) Run ant smartbuild -Dlocal=no. The compilation finishes successfully.

[1] https://gitlab.com/openbravo/product/unsupported/modules/org.openbravo.financial.cashflowforecast [^]
No tags attached.
related to feature request 0035130 closed rqueralta Openbravo ERP Integrate module Cashflow Forecast into Openbravo 3 distribution 
related to feature request 00350893.0PR17Q2 closed nonofrancisco Openbravo ERP Integrate module Aging Balance Report into Openbravo 3 distribution 
related to design defect 0049908 closed ranjith_qualiantech_com POS2 Remove incorrect implicit dependency on bytotal module 
Issue History
2022-11-03 12:55caristuNew Issue
2022-11-03 12:55caristuAssigned To => Triage Platform Base
2022-11-03 12:55caristuModules => Core
2022-11-03 12:55caristuTriggers an Emergency Pack => No
2022-11-03 13:23alostaleNote Added: 0142885
2022-11-07 09:08hgbotNote Added: 0143128
2022-11-07 15:48alostaleRelationship addedrelated to 0049908
2022-11-08 07:55hgbotNote Added: 0143202
2022-11-08 07:55hgbotResolutionopen => fixed
2022-11-08 07:55hgbotStatusnew => closed
2022-11-08 07:55hgbotFixed in Version => PR23Q1
2022-11-08 07:55hgbotNote Added: 0143203
2022-11-08 07:56alostaleAssigned ToTriage Platform Base => alostale
2022-11-08 08:02caristuRelationship addedrelated to 0035130
2022-11-08 08:02caristuRelationship addedrelated to 0035089

Notes
(0142885)
alostale   
2022-11-03 13:23   
Note there is already some build validation [1] that is partially implementing it. It checks a (outdated?) list of modules merged in OB3 distro, but it does not take into account any other.

Could we change this so it checks any merged module?

---
[1] https://gitlab.com/openbravo/product/openbravo/-/blob/master/src-util/buildvalidation/src/org/openbravo/buildvalidation/MergeDependenciesCheck.java [^]
(0143128)
hgbot   
2022-11-07 09:08   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/750 [^]
(0143202)
hgbot   
2022-11-08 07:55   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/750 [^]
(0143203)
hgbot   
2022-11-08 07:55   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: cec5c25a21149c67cfd918f00ee32858008e1d16
Author: Asier Lostalé <asier.lostale@openbravo.com>
Date: 08-11-2022 06:55:54
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/cec5c25a21149c67cfd918f00ee32858008e1d16 [^]

fixes ISSUE-50721: can update database having merged modules

When updating database, it was not checked merged modules are not present as
sources. If a module is merged in another one, a validation should prevent
updating database until the merged module is uninstalled.

There was a buildvalidation to perform this, but it was partial. It has been
changed to:

  * Be generic, before only a set of "known" merges was checked.
  * Execute always, before only when updaing from <=17Q1 was executed

---
A src-util/buildvalidation/build/classes/org/openbravo/buildvalidation/MergeDependenciesCheck$Module.class
M src-util/buildvalidation/build.xml
M src-util/buildvalidation/build/classes/org/openbravo/buildvalidation/MergeDependenciesCheck$1.class
M src-util/buildvalidation/build/classes/org/openbravo/buildvalidation/MergeDependenciesCheck$MergedModule.class
M src-util/buildvalidation/build/classes/org/openbravo/buildvalidation/MergeDependenciesCheck.class
M src-util/buildvalidation/src/org/openbravo/buildvalidation/MergeDependenciesCheck.java
---