Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051071Retail ModulesWeb POSpublic2022-12-05 16:372022-12-14 11:36
shuehner 
shuehner 
normalmajorhave not tried
closedfixed 
5
 
RR23Q1 
No
0051071: Cleanup (delete) all modulescript not running on install and only required for updates from <16Q1
Issue 51068 blocks upgrades from versions older than 16Q1.

With such updates no longer (directly) possible any code which runs on upgrades from <16Q1 is no longer needed.

This issue is about the removal of modulescript from retail.pack (and modules contained in there) which:
- Have executeOnInstall=false
- ExecutionLimits.endversion<=16Q1


51068 change ensures that old version (before update) is at least 16Q1 (x.x.28207)
Any modulescript defined with ExecutionLimits end-version before that (and moduleId of a module contained in backoffice repo) which is not also running during install.source => is no longer needed.
No tags attached.
depends on feature request 0051068PR23Q1 closed shuehner Openbravo ERP Block direct upgrades from version older than 16Q1 to latest version 
Issue History
2022-12-05 16:37shuehnerNew Issue
2022-12-05 16:37shuehnerAssigned To => shuehner
2022-12-05 16:37shuehnerModules => Core
2022-12-05 16:37shuehnerTriggers an Emergency Pack => No
2022-12-05 16:37shuehnerIssue generated from0051069
2022-12-05 16:38shuehnerRelationship addeddepends on 0051068
2022-12-05 17:00hgbotNote Added: 0144424
2022-12-14 10:29hgbotNote Added: 0144650
2022-12-14 10:29hgbotNote Added: 0144651
2022-12-14 10:29hgbotNote Added: 0144652
2022-12-14 10:29hgbotNote Added: 0144653
2022-12-14 10:31shuehnerProjectOpenbravo ERP => Retail Modules
2022-12-14 10:31shuehnerNote Added: 0144659
2022-12-14 10:31shuehnerCategoryA. Platform => Web POS
2022-12-14 10:32shuehnerStatusnew => scheduled
2022-12-14 10:32shuehnerStatusscheduled => resolved
2022-12-14 10:32shuehnerFixed in Version => RR23Q1
2022-12-14 10:32shuehnerResolutionopen => fixed
2022-12-14 10:32shuehnerNote Added: 0144660
2022-12-14 10:32shuehnerStatusresolved => closed
2022-12-14 11:21hgbotNote Added: 0144667
2022-12-14 11:34hgbotNote Added: 0144668
2022-12-14 11:36hgbotNote Added: 0144669

Notes
(0144424)
hgbot   
2022-12-05 17:00   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1009 [^]
(0144650)
hgbot   
2022-12-14 10:29   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: ab3be44517719daabe1133ad6593acbd8cea22bd
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 14-12-2022 09:19:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/ab3be44517719daabe1133ad6593acbd8cea22bd [^]

Related to ISSUE-51071: Remove obsolete old modulescripts from <14Q2

Those modulescripts will never be called anymore because they:
- have executeOnInstall=false
- ExecutionLimits.endversion<=14Q2
- Issue 51068 blocks direct updates from version <16Q1

---
R build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue24147.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue25555.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixWrongPaymentScheduled.class
R build/classes/org/openbravo/retail/posterminal/modulescript/InsertDiscountPreference.class
R build/classes/org/openbravo/retail/posterminal/modulescript/InsertDiscountPreferenceData.class
R build/classes/org/openbravo/retail/posterminal/modulescript/ModuleScriptPosterminal.class
R src-db/database/model/functions/OBPOS_FIXISSUE24147.xml
R src-db/database/model/functions/OBPOS_FIXISSUE25555.xml
R src-db/database/model/functions/OBPOS_FIXWRONGPAYMENTSCHEDULED.xml
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue24147.java
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue25555.java
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixWrongPaymentScheduled.java
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/InsertDiscountPreference.java
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/InsertDiscountPreference_Data.xsql
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/ModuleScriptPosterminal.java
---
(0144651)
hgbot   
2022-12-14 10:29   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: e285c92cf2affe52815fcb4a2b382a9aaa3a252c
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 14-12-2022 09:19:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/e285c92cf2affe52815fcb4a2b382a9aaa3a252c [^]

Related to ISSUE-51071: Remove obsolete old modulescripts from <15Q1

Those modulescripts will never be called anymore because they:
- have executeOnInstall=false
- ExecutionLimits.endversion<=15Q1
- Issue 51068 blocks direct updates from version <16Q1

---
R build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue24409.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue24409Data.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue25963.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue25963Data.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue26444.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue26444Data.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue27695.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue27695Data.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue28722.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue28722Data.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixErrorTableData.class
R build/classes/org/openbravo/retail/posterminal/modulescript/FixErrorTableDataData.class
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue24409.java
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue24409_Data.xsql
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue25963.java
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue25963_Data.xsql
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue26444.java
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue26444_Data.xsql
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue27695.java
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue27695_Data.xsql
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue28722.java
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue28722_Data.xsql
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixErrorTableData.java
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixErrorTableData_Data.xsql
---
(0144652)
hgbot   
2022-12-14 10:29   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 6ea70225885f01e4d1adbba6e78d52b3c1a48b26
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 14-12-2022 09:19:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/6ea70225885f01e4d1adbba6e78d52b3c1a48b26 [^]

Related to ISSUE-51071: Remove obsolete old modulescripts from <16Q1

Those modulescripts will never be called anymore because they:
- have executeOnInstall=false
- ExecutionLimits.endversion<=16Q1
- Issue 51068 blocks direct updates from version <16Q1

---
R build/classes/org/openbravo/retail/posterminal/modulescript/EnableTerminalAuthForNewInstances.class
R build/classes/org/openbravo/retail/posterminal/modulescript/EnableTerminalAuthForNewInstancesData.class
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/EnableTerminalAuthForNewInstances.java
R src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/EnableTerminalAuthForNewInstances_Data.xsql
---
(0144653)
hgbot   
2022-12-14 10:29   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1009 [^]
(0144659)
shuehner   
2022-12-14 10:31   
Moving to right project, was wrongly reported in backoffice instead of WebPos
(0144660)
shuehner   
2022-12-14 10:32   
Close manually.
Was reported in wrong project which is why MR being merged didn't resolve/close that automatically.
(0144667)
hgbot   
2022-12-14 11:21   
Merge Request created: https://gitlab.com/openbravo/ci/mobile-api/-/merge_requests/13 [^]
(0144668)
hgbot   
2022-12-14 11:34   
Repository: https://gitlab.com/openbravo/ci/mobile-api [^]
Changeset: b843eb41a2de61f2d38ae4ac687a853390a83973
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 14-12-2022 11:18:38
URL: https://gitlab.com/openbravo/ci/mobile-api/-/commit/b843eb41a2de61f2d38ae4ac687a853390a83973 [^]

Related to ISSUE-51071: Accept api change

Those 3 pl-functions where just called from 3 modulescript removed in
this issue.
As the modulescripts are obsolete and removed those functions were
obsolete as well and are removed.

---
R model/modules/org.openbravo.retail.posterminal/src-db/database/model/functions/OBPOS_FIXISSUE24147.xml
R model/modules/org.openbravo.retail.posterminal/src-db/database/model/functions/OBPOS_FIXISSUE25555.xml
R model/modules/org.openbravo.retail.posterminal/src-db/database/model/functions/OBPOS_FIXWRONGPAYMENTSCHEDULED.xml
---
(0144669)
hgbot   
2022-12-14 11:36   
Merge request merged: https://gitlab.com/openbravo/ci/mobile-api/-/merge_requests/13 [^]