Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0044605Openbravo ERPZ. Otherspublic2020-07-13 17:062020-09-03 08:47
shuehner 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
 
Core
No
0044605: module creating wiki documentation is causing wiki edits with formal changes only (missing stable ordering)
Code from this module:
https://gitlab.com/openbravo/tools/wiki/org.openbravo.utility.wikidoc [^]

which is used in ci job called 'documentation' running weekly

is uploading different version of wiki 'randomly' because it create same content but in different order.

Apart of being conceptually wrong also makes:
- Reviewing history of changes in wiki very hard
- Probably having performance, database size impact in the wiki server itself (unclear how big)

Example change:
diff -ur wiki-updated-dump/Warehouse-Management.wiki wiki-pi/Warehouse-Management.wiki
--- wiki-updated-dump/Warehouse-Management.wiki 2020-07-13 15:24:11.698113035 +0200
+++ wiki-pi/Warehouse-Management.wiki 2020-07-13 15:10:33.704009145 +0200
@@ -24,8 +24,8 @@
 ==== Setup ====
 {{ManualDoc:SectionWarehouse Management Setup(Openbravo Admin)}}
 
-*[[Process Price Difference Adjustment | Process Price Difference Adjustment]]
 *[[Reset Unit Cost | Reset Unit Cost]]
+*[[Process Price Difference Adjustment | Process Price Difference Adjustment]]
 *[[Warehouse and Storage Bins | Warehouse and Storage Bins]]
 *[[Costing Rules | Costing Rules]]
 *[[Costing Algorithm | Costing Algorithm]]
-
Review code reading content from database and review if every query does have an explicit 'stable' order by.
Doing SQL queries without and 'order by' by definition can have random output order even if 'most of the time' the order is the same.
No tags attached.
related to defect 0044606 new Triage Platform Base module creating wiki documentation is not running cleanly but has errors and warnings 
png WikiBeforeAfter.png (265,844) 2020-08-30 11:48
https://issues.openbravo.com/file_download.php?file_id=14919&type=bug
Issue History
2020-07-13 17:06shuehnerNew Issue
2020-07-13 17:06shuehnerAssigned To => platform
2020-07-13 17:06shuehnerModules => Core
2020-07-13 17:06shuehnerTriggers an Emergency Pack => No
2020-07-13 17:08shuehnerNote Added: 0121421
2020-07-13 17:10shuehnerRelationship addedrelated to 0044606
2020-07-13 17:11shuehnerNote Added: 0121422
2020-08-30 11:32hgbotNote Added: 0122449
2020-08-30 11:48AugustoMauchFile Added: WikiBeforeAfter.png
2020-08-30 11:49AugustoMauchNote Added: 0122450
2020-08-30 11:52AugustoMauchAssigned Toplatform => AugustoMauch
2020-08-30 11:53AugustoMauchStatusnew => scheduled
2020-09-03 08:47hgbotResolutionopen => fixed
2020-09-03 08:47hgbotStatusscheduled => closed
2020-09-03 08:47hgbotNote Added: 0122559
2020-09-03 08:47hgbotNote Added: 0122560
2020-09-03 08:47hgbotNote Added: 0122561

Notes
(0121421)
shuehner   
2020-07-13 17:08   
One day to find those formal wrong edits is to check 'User contributions' page of the DocBot wiki user which can be found at this link:
http://wiki.openbravo.com/wiki/Special:Contributions/DocBot [^]

Example unwanted edit:
http://wiki.openbravo.com/w/index.php?title=ERP/3.0/Developers_Guide/Database_Model/org.openbravo.userinterface.selector/OBUISEL_Selector_Field&diff=prev&oldid=253321 [^]

History of that wiki page shows lots of edit from which many are unwanted and effect of same bug:
http://wiki.openbravo.com/w/index.php?title=ERP/3.0/Developers_Guide/Database_Model/org.openbravo.userinterface.selector/OBUISEL_Selector_Field&action=history [^]
(0121422)
shuehner   
2020-07-13 17:11   
Note that the same module has a couple of minor issues reported in the related 44606 bug. When fixing / testing this bug if possible would be good to address those 44606 issues also.
(0122449)
hgbot   
2020-08-30 11:32   
Merge Request created: https://gitlab.com/openbravo/tools/wiki/org.openbravo.utility.wikidoc/-/merge_requests/1 [^]
(0122450)
AugustoMauch   
2020-08-30 11:49   
Attached a comparison of the Warehouse Management window before and after the changes
(0122559)
hgbot   
2020-09-03 08:47   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/tools/wiki/org.openbravo.utility.wikidoc [^]
Changeset: 1080f8a8435dc8a3e7a63aea7fa005c17a846eb7
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 2020-08-30T11:28:19+02:00
URL: https://gitlab.com/openbravo/tools/wiki/org.openbravo.utility.wikidoc/-/commit/1080f8a8435dc8a3e7a63aea7fa005c17a846eb7 [^]

Fixes ISSUE-44605: Sort menu entries to prevent unneeded wiki changes

---
M src/org/openbravo/utility/wikidoc/document/SectionPage.java
---
(0122560)
hgbot   
2020-09-03 08:47   
Merge request merged: https://gitlab.com/openbravo/tools/wiki/org.openbravo.utility.wikidoc/-/merge_requests/1 [^]
(0122561)
hgbot   
2020-09-03 08:47   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/tools/wiki/org.openbravo.utility.wikidoc [^]
Changeset: 76e21af42384d53028aea755f19ba62610cbbd21
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 2020-08-30T11:46:56+02:00
URL: https://gitlab.com/openbravo/tools/wiki/org.openbravo.utility.wikidoc/-/commit/76e21af42384d53028aea755f19ba62610cbbd21 [^]

Fixes ISSUE-44605: Sort columns to prevent unneeded wiki changes in database model

---
M src/org/openbravo/utility/wikidoc/model/db/TablePage.java
---